[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
jdb line fix for gud
From: |
Jan Nieuwenhuizen |
Subject: |
jdb line fix for gud |
Date: |
Mon, 26 Jan 2004 12:16:33 +0100 |
User-agent: |
Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux) |
Hi,
Find a small fix for jdb below. Is this acceptable, or should `[.,]'
be replaced by the actual LOCALE's thousands separator (how?).
Jan.
Index: ChangeLog
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/ChangeLog,v
retrieving revision 1.5622
diff -p -u -r1.5622 ChangeLog
--- ChangeLog 25 Jan 2004 23:59:57 -0000 1.5622
+++ ChangeLog 26 Jan 2004 11:02:59 -0000
@@ -1,3 +1,9 @@
+2004-01-26 Jan Nieuwenhuizen <address@hidden>
+
+ * progmodes/gud.el (gud-jdb-marker-filter): Add period as optional
+ thousands separator; fixes <class>:<line-number> regexp for
+ non-english locales.
+
2004-01-25 Glenn Morris <address@hidden>
* progmodes/fortran.el (fortran-break-before-delimiters): Doc fix.
Index: progmodes/gud.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/progmodes/gud.el,v
retrieving revision 1.15
diff -p -u -r1.15 gud.el
--- progmodes/gud.el 7 Jan 2004 23:22:34 -0000 1.15
+++ progmodes/gud.el 26 Jan 2004 11:02:59 -0000
@@ -1967,14 +1967,14 @@ nil)
;; FIXME: Java ID's are UNICODE strings, this matches ASCII
;; ID's only.
;;
- ;; The "," in the last square-bracket is necessary because of
- ;; Sun's total disrespect for backwards compatibility in
+ ;; The ".," in the last square-bracket are necessary because
+ ;; of Sun's total disrespect for backwards compatibility in
;; reported line numbers from jdb - starting in 1.4.0 they
- ;; introduced a comma at the thousands position (how
- ;; ingenious!)
+ ;; print line numbers using LOCALE, inserting a comma or a
+ ;; period at the thousands positions (how ingenious!).
"\\(\[[0-9]+\] \\)*\\([a-zA-Z0-9.$_]+\\)\\.[a-zA-Z0-9$_<>(),]+ \
-\\(([a-zA-Z0-9.$_]+:\\|line=\\)\\([0-9,]+\\)"
+\\(([a-zA-Z0-9.$_]+:\\|line=\\)\\([0-9.,]+\\)"
gud-marker-acc)
;; A good marker is one that:
@@ -2001,7 +2001,7 @@ nil)
(string-to-int
(let
((numstr (match-string 4 gud-marker-acc)))
- (if (string-match "," numstr)
+ (if (string-match "[.,]" numstr)
(replace-match "" nil nil numstr)
numstr)))))
(message "Could not find source file.")))
--
Jan Nieuwenhuizen <address@hidden> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien | http://www.lilypond.org
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- jdb line fix for gud,
Jan Nieuwenhuizen <=