summaryrefslogtreecommitdiff
path: root/lisp/progmodes/gdb-mi.el
diff options
context:
space:
mode:
authorWang Diancheng <dcwang@kingbase.com.cn>2011-07-04 13:50:55 -0400
committerStefan Monnier <monnier@iro.umontreal.ca>2011-07-04 13:50:55 -0400
commitf932a347844c88e1586ffe3995c9a60ccd74668e (patch)
tree85bf2dbc2078885bd9154859ef7af49da7602e12 /lisp/progmodes/gdb-mi.el
parent6e9b2be9e608802dfe46a34638aabeb99a701d8c (diff)
downloademacs-f932a347844c88e1586ffe3995c9a60ccd74668e.tar.gz
emacs-f932a347844c88e1586ffe3995c9a60ccd74668e.tar.bz2
emacs-f932a347844c88e1586ffe3995c9a60ccd74668e.zip
* lisp/progmodes/gdb-mi.el (gdb): Use completion-at-point.
Diffstat (limited to 'lisp/progmodes/gdb-mi.el')
-rw-r--r--lisp/progmodes/gdb-mi.el5
1 files changed, 4 insertions, 1 deletions
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)