summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChong Yidong <cyd@gnu.org>2011-12-11 21:17:07 +0800
committerChong Yidong <cyd@gnu.org>2011-12-11 21:17:07 +0800
commitee957461818e4568cd105c29fab5ee4a06184629 (patch)
tree5b7e1909726e1b8e614ee961d72bd0a277aa8f8c
parentd93a1e346748314203e81d68a07fbe3cd727f28f (diff)
downloademacs-ee957461818e4568cd105c29fab5ee4a06184629.tar.gz
* progmodes/gdb-mi.el (gdb): Set comint-prompt-regexp
which is required for completion via gud-gdb-fetch-lines-filter. Fixes: debbugs:10274
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/progmodes/gdb-mi.el3
2 files changed, 8 insertions, 0 deletions
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 <cyd@gnu.org>
+
+ * 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 <eric.hanchrow@gmail.com>
* 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)