]> code.delx.au - gnu-emacs/commitdiff
(gdb): Improve doc string.
authorNick Roberts <nickrob@snap.net.nz>
Tue, 14 Feb 2006 22:02:21 +0000 (22:02 +0000)
committerNick Roberts <nickrob@snap.net.nz>
Tue, 14 Feb 2006 22:02:21 +0000 (22:02 +0000)
(gdb-script-font-lock-keywords): Expand allowed character set.

lisp/progmodes/gud.el

index b927c76547643f95a42abf4916699ee328d444ca..1d5172a1a527b935e2a3ff316fd6045209865354 100644 (file)
@@ -656,8 +656,13 @@ required by the caller."
 ;;;###autoload
 (defun gdb (command-line)
   "Run gdb on program FILE in buffer *gud-FILE*.
-The directory containing FILE becomes the initial working directory
-and source-file directory for your debugger."
+The directory containing FILE becomes the initial working
+directory and source-file directory for your debugger.  By
+default this command starts GDB using a graphical interface.  See
+`gdba' for more information.
+
+To run GDB in text command mode, set `gud-gdb-command-name' to
+\"gdb --fullname\" and include the pathname, if necessary."
   (interactive (list (gud-query-cmdline 'gdb)))
 
   (if (and gud-comint-buffer
@@ -3120,7 +3125,7 @@ class of the file (using s to separate nested class ids)."
 (defvar gdb-script-font-lock-keywords
   '(("^define\\s-+\\(\\(\\w\\|\\s_\\)+\\)" (1 font-lock-function-name-face))
     ("\\$\\(\\w+\\)" (1 font-lock-variable-name-face))
-    ("^\\s-*\\([a-z]+\\)" (1 font-lock-keyword-face))))
+    ("^\\s-*\\(\\(\\w\\|\\s_\\)+\\)" (1 font-lock-keyword-face))))
 
 ;; FIXME: The keyword "end" associated with "document"
 ;; should have font-lock-keyword-face (currently font-lock-doc-face).