]> code.delx.au - gnu-emacs/commitdiff
(gdb-send): Remove warning face from errors
authorNick Roberts <nickrob@snap.net.nz>
Fri, 24 Jun 2005 01:32:24 +0000 (01:32 +0000)
committerNick Roberts <nickrob@snap.net.nz>
Fri, 24 Jun 2005 01:32:24 +0000 (01:32 +0000)
after fresh input.
(gdb-var-create-handler): Put name of expression in quotes.

lisp/progmodes/gdb-ui.el

index 5977783475ac9c5aeb1e37cca9956df740cb2cbf..7653ff90a2f89fc194ede7ba1d1341edba0f1191 100644 (file)
@@ -432,7 +432,7 @@ Also display the main routine in the disassembly buffer if present."
            (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 @@ The key should be one of the cars in `gdb-buffer-rules-assoc'."
 (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