aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Roberts2006-04-30 23:10:48 +0000
committerNick Roberts2006-04-30 23:10:48 +0000
commit1a2416ede302cdcf126c9876bdac5f4ae31fb223 (patch)
tree8497a601523cff5421c4980819d8e17e979d5157
parent9abc5f4519ebcaf74a937581784fe4e73c2e8a06 (diff)
downloademacs-1a2416ede302cdcf126c9876bdac5f4ae31fb223.tar.gz
emacs-1a2416ede302cdcf126c9876bdac5f4ae31fb223.zip
(gud-def): Add %c case.
(gud-speedbar-buttons): Don'bind case-fold-search unnecessarily. (gud-format-command): Make match case sensitive. Match on %F.
-rw-r--r--lisp/progmodes/gud.el23
1 files changed, 13 insertions, 10 deletions
diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el
index 1549150dfa8..11259aa3965 100644
--- a/lisp/progmodes/gud.el
+++ b/lisp/progmodes/gud.el
@@ -303,13 +303,15 @@ Uses `gud-<MINOR-MODE>-directories' to find the source files."
303optional doc string DOC. Certain %-escapes in the string arguments 303optional doc string DOC. Certain %-escapes in the string arguments
304are interpreted specially if present. These are: 304are interpreted specially if present. These are:
305 305
306 %f name (without directory) of current source file. 306 %f -- Name (without directory) of current source file.
307 %F name (without directory or extension) of current source file. 307 %F -- Name (without directory or extension) of current source file.
308 %d directory of current source file. 308 %d -- Directory of current source file.
309 %l number of current source line 309 %l -- Number of current source line.
310 %e text of the C lvalue or function-call expression surrounding point. 310 %e -- Text of the C lvalue or function-call expression surrounding point.
311 %a text of the hexadecimal address surrounding point 311 %a -- Text of the hexadecimal address surrounding point.
312 %p prefix argument to the command (if any) as a number 312 %p -- Prefix argument to the command (if any) as a number.
313 %c -- Fully qualified class name derived from the expression
314 surrounding point (jdb only).
313 315
314 The `current' source file is the file of the current buffer (if 316 The `current' source file is the file of the current buffer (if
315we're in a C file) or the source file current at the last break or 317we're in a C file) or the source file current at the last break or
@@ -446,8 +448,7 @@ required by the caller."
446 (when (or gdb-force-update 448 (when (or gdb-force-update
447 (not (save-excursion 449 (not (save-excursion
448 (goto-char (point-min)) 450 (goto-char (point-min))
449 (let ((case-fold-search t)) 451 (looking-at "Watch Expressions:"))))
450 (looking-at "Watch Expressions:")))))
451 (erase-buffer) 452 (erase-buffer)
452 (insert "Watch Expressions:\n") 453 (insert "Watch Expressions:\n")
453 (if gdb-speedbar-auto-raise 454 (if gdb-speedbar-auto-raise
@@ -2804,7 +2805,9 @@ Obeying it means displaying in another window the specified file and line."
2804 (let ((insource (not (eq (current-buffer) gud-comint-buffer))) 2805 (let ((insource (not (eq (current-buffer) gud-comint-buffer)))
2805 (frame (or gud-last-frame gud-last-last-frame)) 2806 (frame (or gud-last-frame gud-last-last-frame))
2806 result) 2807 result)
2807 (while (and str (string-match "\\([^%]*\\)%\\([adeflpc]\\)" str)) 2808 (while (and str
2809 (let ((case-fold-search nil))
2810 (string-match "\\([^%]*\\)%\\([adefFlpc]\\)" str)))
2808 (let ((key (string-to-char (match-string 2 str))) 2811 (let ((key (string-to-char (match-string 2 str)))
2809 subst) 2812 subst)
2810 (cond 2813 (cond