From: Stefan Kangas Date: Mon, 9 Sep 2019 02:14:50 +0000 (+0200) Subject: Match Python 3 code object names in "M-x pdb" X-Git-Tag: emacs-27.0.90~1553^2~1 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4042dad139d922723aabcfaef5662db8204fb355;p=emacs.git 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) --- diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el index 30d4b199110..235546ef2e4 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 "" case too.) (defvar gud-pdb-marker-regexp - "^> \\([[:graph:] \\]*\\)(\\([0-9]+\\))\\([a-zA-Z0-9_]*\\|\\?\\|\\)()\\(->[^\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)