aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Heuer1994-03-07 20:13:50 +0000
committerKarl Heuer1994-03-07 20:13:50 +0000
commite886137a18e3447da913136ccd1d96d5ce5e45d0 (patch)
tree8c713dea9e3cdb68b026446642b880c383390e37
parentb492f73b1822f06e0f83cc340ebe4accdcc7c2f4 (diff)
downloademacs-e886137a18e3447da913136ccd1d96d5ce5e45d0.tar.gz
emacs-e886137a18e3447da913136ccd1d96d5ce5e45d0.zip
(gdb): Use a minibuffer map with TAB to complete a filename.
-rw-r--r--lisp/gud.el10
1 files changed, 9 insertions, 1 deletions
diff --git a/lisp/gud.el b/lisp/gud.el
index 208c80b87fd..7e1c3180953 100644
--- a/lisp/gud.el
+++ b/lisp/gud.el
@@ -213,6 +213,14 @@ we're in the GUD buffer)."
213(defun gud-gdb-find-file (f) 213(defun gud-gdb-find-file (f)
214 (find-file-noselect f)) 214 (find-file-noselect f))
215 215
216(defvar gdb-minibuffer-local-map nil
217 "Keymap for minibuffer prompting of gdb startup command.")
218(if gdb-minibuffer-local-map
219 ()
220 (setq gdb-minibuffer-local-map (copy-keymap minibuffer-local-map))
221 (define-key
222 gdb-minibuffer-local-map "\C-i" 'comint-dynamic-complete-filename))
223
216;;;###autoload 224;;;###autoload
217(defun gdb (command-line) 225(defun gdb (command-line)
218 "Run gdb on program FILE in buffer *gud-FILE*. 226 "Run gdb on program FILE in buffer *gud-FILE*.
@@ -223,7 +231,7 @@ and source-file directory for your debugger."
223 (if (consp gud-gdb-history) 231 (if (consp gud-gdb-history)
224 (car gud-gdb-history) 232 (car gud-gdb-history)
225 "gdb ") 233 "gdb ")
226 nil nil 234 gdb-minibuffer-local-map nil
227 '(gud-gdb-history . 1)))) 235 '(gud-gdb-history . 1))))
228 (gud-overload-functions '((gud-massage-args . gud-gdb-massage-args) 236 (gud-overload-functions '((gud-massage-args . gud-gdb-massage-args)
229 (gud-marker-filter . gud-gdb-marker-filter) 237 (gud-marker-filter . gud-gdb-marker-filter)