From: Karl Heuer Date: Mon, 7 Mar 1994 20:13:50 +0000 (+0000) Subject: (gdb): Use a minibuffer map with TAB to complete a filename. X-Git-Tag: emacs-19.34~9614 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e886137a18e3447da913136ccd1d96d5ce5e45d0;p=emacs.git (gdb): Use a minibuffer map with TAB to complete a filename. --- 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)." (defun gud-gdb-find-file (f) (find-file-noselect f)) +(defvar gdb-minibuffer-local-map nil + "Keymap for minibuffer prompting of gdb startup command.") +(if gdb-minibuffer-local-map + () + (setq gdb-minibuffer-local-map (copy-keymap minibuffer-local-map)) + (define-key + gdb-minibuffer-local-map "\C-i" 'comint-dynamic-complete-filename)) + ;;;###autoload (defun gdb (command-line) "Run gdb on program FILE in buffer *gud-FILE*. @@ -223,7 +231,7 @@ and source-file directory for your debugger." (if (consp gud-gdb-history) (car gud-gdb-history) "gdb ") - nil nil + gdb-minibuffer-local-map nil '(gud-gdb-history . 1)))) (gud-overload-functions '((gud-massage-args . gud-gdb-massage-args) (gud-marker-filter . gud-gdb-marker-filter)