changeset 69359:e184d816a2b1

(gdb-remove-text-properties): Rename from gdb-remove-mouse-face and remove help-echo too. (gdb-enqueue-input): Correct conditional clause.
author Nick Roberts <nickrob@snap.net.nz>
date Fri, 10 Mar 2006 20:06:33 +0000
parents aa7eed467b01
children e5e4303f8050
files lisp/progmodes/gdb-ui.el
diffstat 1 files changed, 8 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/gdb-ui.el	Fri Mar 10 19:59:19 2006 +0000
+++ b/lisp/progmodes/gdb-ui.el	Fri Mar 10 20:06:33 2006 +0000
@@ -1036,11 +1036,12 @@
 ;; is a query, or other non-top-level prompt.
 
 (defun gdb-enqueue-input (item)
-  (if (and gdb-prompting (not gud-running))
-      (progn
-	(gdb-send-item item)
+  (if (not gud-running)
+      (if gdb-prompting
+	  (progn
+	    (gdb-send-item item)
 	(setq gdb-prompting nil))
-    (push item gdb-input-queue)))
+	(push item gdb-input-queue))))
 
 (defun gdb-dequeue-input ()
   (let ((queue gdb-input-queue))
@@ -1191,7 +1192,7 @@
      ((eq sink 'user)
       (progn
 	(setq gud-running t)
-	(gdb-remove-mouse-face)
+	(gdb-remove-text-properties)
 	(if gdb-use-separate-io-buffer
 	    (setq gdb-output-sink 'inferior))))
      (t
@@ -1302,14 +1303,14 @@
 (defconst gdb-buffer-list
 '(gdb-stack-buffer gdb-locals-buffer gdb-registers-buffer gdb-threads-buffer))
 
-(defun gdb-remove-mouse-face ()
+(defun gdb-remove-text-properties ()
   (dolist (buffertype gdb-buffer-list)
     (let ((buffer (gdb-get-buffer buffertype)))
       (if buffer
 	  (with-current-buffer buffer
 	    (let ((inhibit-read-only t))
 	      (remove-text-properties
-	       (point-min) (point-max) '(mouse-face))))))))
+	       (point-min) (point-max) '(mouse-face nil help-echo nil))))))))
 
 ;; GUD displays the selected GDB frame.  This might might not be the current
 ;; GDB frame (after up, down etc).  If no GDB frame is visible but the last