changeset 63732:64e2bf63ca16

(gdb-send): Remove warning face from errors after fresh input. (gdb-var-create-handler): Put name of expression in quotes.
author Nick Roberts <nickrob@snap.net.nz>
date Fri, 24 Jun 2005 01:32:24 +0000
parents 4121439fd904
children 7cbe9f7cc3cc b7da78284d4c
files lisp/progmodes/gdb-ui.el
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/gdb-ui.el	Fri Jun 24 01:31:50 2005 +0000
+++ b/lisp/progmodes/gdb-ui.el	Fri Jun 24 01:32:24 2005 +0000
@@ -432,7 +432,7 @@
 	    (setq gdb-var-changed t)))
       (if (re-search-forward "Undefined command" nil t)
 	  (message-box "Watching expressions requires gdb 6.0 onwards")
-	(message "No symbol %s in current context." expr)))))
+	(message "No symbol \"%s\" in current context." expr)))))
 
 (defun gdb-var-evaluate-expression-handler (varnum changed)
   (with-current-buffer (gdb-get-create-buffer 'gdb-partial-output-buffer)
@@ -776,6 +776,8 @@
 (defun gdb-send (proc string)
   "A comint send filter for gdb.
 This filter may simply queue input for a later time."
+  (with-current-buffer gud-comint-buffer
+    (remove-text-properties (point-min) (point-max) '(face)))
   (let ((item (concat string "\n")))
     (if gud-running
       (progn