diff options
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/ChangeLog | 4 | ||||
-rw-r--r-- | lisp/progmodes/gdb-mi.el | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 391a34206f4..2be81a92c90 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2011-07-04 Wang Diancheng <dcwang@kingbase.com.cn> (tiny change) + + * progmodes/gdb-mi.el (gdb): Use completion-at-point. + 2011-07-04 Stefan Monnier <monnier@iro.umontreal.ca> * files.el (find-file): Use pop-to-buffer-same-window (bug#8911). diff --git a/lisp/progmodes/gdb-mi.el b/lisp/progmodes/gdb-mi.el index 61055ef4342..225d1eb8604 100644 --- a/lisp/progmodes/gdb-mi.el +++ b/lisp/progmodes/gdb-mi.el @@ -786,7 +786,10 @@ detailed description of this mode. (define-key gud-minor-mode-map [left-margin C-mouse-3] 'gdb-mouse-jump) - (local-set-key "\C-i" 'gud-gdb-complete-command) + (add-hook 'completion-at-point-functions #'gud-gdb-completion-at-point + nil 'local) + (local-set-key "\C-i" 'completion-at-point) + (setq gdb-first-prompt t) (setq gud-running nil) |