[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Toolbar problems with GDB mode.

From: Nick Roberts
Subject: Re: Toolbar problems with GDB mode.
Date: Sun, 5 Jan 2003 23:20:13 +0000

 > Is this menu defined in a local map or a in the global map?  In other
 > words, is this a bug in GUD or a bug in Emacs' handling of menus?

Its on the local map (gud-minor-map). I think the patch below is the right fix
for `M-x gdb' as toolbar and menubar are reset if the user kills the GUD
buffer or types quit there. If you agree, I will install it after making
further changes so that it works for `M-x gdba' too.


--- gud.el.~1.170.~     Sun Dec 22 00:01:30 2002
+++ gud.el      Sun Jan  5 23:07:43 2003
@@ -2423,6 +2423,12 @@
              (gud-filter proc ""))))))
 (defun gud-sentinel (proc msg)
+  (dolist (buffer (buffer-list))
+    (save-excursion
+      (set-buffer buffer)
+      (when gud-minor-mode
+       (setq gud-minor-mode nil)
+       (kill-local-variable 'tool-bar-map))))
   (cond ((null (buffer-name (process-buffer proc)))
         ;; buffer killed
         ;; Stop displaying an arrow in a source file.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]