[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 6468435: Make "M-x pdb" use "[:graph:]" to match fi
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] master 6468435: Make "M-x pdb" use "[:graph:]" to match file names |
Date: |
Sat, 6 Jul 2019 05:10:11 -0400 (EDT) |
branch: master
commit 64684356595be58ec939939997d16bc8cf624825
Author: Stefan Kangas <address@hidden>
Commit: Eli Zaretskii <address@hidden>
Make "M-x pdb" use "[:graph:]" to match file names
* lisp/progmodes/gud.el (gud-pdb-marker-regexp): Use "[:graph:]" to
match file name in prompt. (Bug#34489)
---
lisp/progmodes/gud.el | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el
index 4306f5d..6b152b7 100644
--- a/lisp/progmodes/gud.el
+++ b/lisp/progmodes/gud.el
@@ -1605,8 +1605,12 @@ and source-file directory for your debugger."
;; Last group is for return value, e.g. "> test.py(2)foo()->None"
;; Either file or function name may be omitted: "> <string>(0)?()"
+;;
+;; We use [:graph:] to be very allowing with regards to which
+;; characters we match in the file name shown in the prompt.
+;; (Of course, this matches the "<string>" case too.)
(defvar gud-pdb-marker-regexp
- "^> \\([-a-zA-Z0-9_/.:@
\\]*\\|<string>\\)(\\([0-9]+\\))\\([a-zA-Z0-9_]*\\|\\?\\|<module>\\)()\\(->[^\n\r]*\\)?[\n\r]")
+ "^> \\([[:graph:]
\\]*\\)(\\([0-9]+\\))\\([a-zA-Z0-9_]*\\|\\?\\|<module>\\)()\\(->[^\n\r]*\\)?[\n\r]")
(defvar gud-pdb-marker-regexp-file-group 1)
(defvar gud-pdb-marker-regexp-line-group 2)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 6468435: Make "M-x pdb" use "[:graph:]" to match file names,
Eli Zaretskii <=