emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 4042dad: Match Python 3 code object names in "M-x p


From: Stefan Kangas
Subject: [Emacs-diffs] master 4042dad: Match Python 3 code object names in "M-x pdb"
Date: Sun, 8 Sep 2019 22:37:13 -0400 (EDT)

branch: master
commit 4042dad139d922723aabcfaef5662db8204fb355
Author: Stefan Kangas <address@hidden>
Commit: Stefan Kangas <address@hidden>

    Match Python 3 code object names in "M-x pdb"
    
    * lisp/progmodes/gud.el (gud-pdb-marker-regexp): Match Python 3 code
    object names.  (Bug#11679)
---
 lisp/progmodes/gud.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el
index 30d4b19..235546e 100644
--- a/lisp/progmodes/gud.el
+++ b/lisp/progmodes/gud.el
@@ -1610,7 +1610,9 @@ and source-file directory for your debugger."
 ;; characters we match in the file name shown in the prompt.
 ;; (Of course, this matches the "<string>" case too.)
 (defvar gud-pdb-marker-regexp
-  "^> \\([[:graph:] 
\\]*\\)(\\([0-9]+\\))\\([a-zA-Z0-9_]*\\|\\?\\|<module>\\)()\\(->[^\n\r]*\\)?[\n\r]")
+  (concat "^> \\([[:graph:] \\]*\\)(\\([0-9]+\\))\\([a-zA-Z0-9_]*\\|\\?\\|"
+          
"<\\(?:module\\|listcomp\\|dictcomp\\|setcomp\\|genexpr\\|lambda\\|\\)>"
+          "\\)()\\(->[^\n\r]*\\)?[\n\r]"))
 
 (defvar gud-pdb-marker-regexp-file-group 1)
 (defvar gud-pdb-marker-regexp-line-group 2)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]