From: Chong Yidong Date: Sun, 11 Dec 2011 13:17:07 +0000 (+0800) Subject: * progmodes/gdb-mi.el (gdb): Set comint-prompt-regexp X-Git-Tag: emacs-pretest-24.0.93~182 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ee957461818e4568cd105c29fab5ee4a06184629;p=emacs.git * progmodes/gdb-mi.el (gdb): Set comint-prompt-regexp which is required for completion via gud-gdb-fetch-lines-filter. Fixes: debbugs:10274 --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a22655727d9..aab22dba4ee 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2011-12-11 Chong Yidong + + * progmodes/gdb-mi.el (gdb): Set comint-prompt-regexp, required + for completion via gud-gdb-fetch-lines-filter (Bug#10274). + 2011-12-11 Eric Hanchrow * window.el (other-window): Fix docstring. diff --git a/lisp/progmodes/gdb-mi.el b/lisp/progmodes/gdb-mi.el index ab40dff24f1..86d4a72f408 100644 --- a/lisp/progmodes/gdb-mi.el +++ b/lisp/progmodes/gdb-mi.el @@ -811,6 +811,9 @@ detailed description of this mode. (define-key gud-minor-mode-map [left-margin C-mouse-3] 'gdb-mouse-jump) + (set (make-local-variable 'comint-prompt-regexp) + "^(.*gdb[+]?) *") + (add-hook 'completion-at-point-functions #'gud-gdb-completion-at-point nil 'local) (local-set-key "\C-i" 'completion-at-point)