[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.
Nick
--- 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.
- Re: Toolbar problems with GDB mode., (continued)
- Re: Toolbar problems with GDB mode., Jan D., 2003/01/03
- Re: Toolbar problems with GDB mode., Nick Roberts, 2003/01/03
- Re: Toolbar problems with GDB mode., Jan D., 2003/01/04
- Re: Toolbar problems with GDB mode., Nick Roberts, 2003/01/04
- Re: Toolbar problems with GDB mode., Jan D., 2003/01/04
- Re: Toolbar problems with GDB mode., Kevin Rodgers, 2003/01/07
- Re: Toolbar problems with GDB mode., Nick Roberts, 2003/01/07
- Re: Toolbar problems with GDB mode., Jan D., 2003/01/10
- Re: Toolbar problems with GDB mode., Nick Roberts, 2003/01/10
- Re: Toolbar problems with GDB mode., Richard Stallman, 2003/01/04
- Re: Toolbar problems with GDB mode.,
Nick Roberts <=
- Re: Toolbar problems with GDB mode., Stefan Monnier, 2003/01/11
- Re: Toolbar problems with GDB mode., Nick Roberts, 2003/01/11
- Re: Toolbar problems with GDB mode., Stefan Monnier, 2003/01/12
Re: Toolbar problems with GDB mode., Eli Zaretskii, 2003/01/04