Commits

Anonymous committed 6aee2b0

* progmodes/gdb-mi.el (gdb): Set comint-prompt-regexp
which is required for completion via gud-gdb-fetch-lines-filter.

Comments (0)

Files changed (2)

+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.

lisp/progmodes/gdb-mi.el

   (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)