# HG changeset patch
# User Nick Roberts <nickrob@snap.net.nz>
# Date 1139954541 0
# Node ID 7e09779fccb53eaa01175c59ce0e675bfa55f12f
# Parent  b3582497ee7413f334021c38353a76fa6c4dc12b
(gdb): Improve doc string.
(gdb-script-font-lock-keywords): Expand allowed character set.

diff -r b3582497ee74 -r 7e09779fccb5 lisp/progmodes/gud.el
--- a/lisp/progmodes/gud.el	Tue Feb 14 22:01:13 2006 +0000
+++ b/lisp/progmodes/gud.el	Tue Feb 14 22:02:21 2006 +0000
@@ -656,8 +656,13 @@
 ;;;###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 @@
 (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).