[Top][All Lists]

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

Re: [PATCH] left-fringe for speedbar

From: Nick Roberts
Subject: Re: [PATCH] left-fringe for speedbar
Date: Mon, 14 Nov 2005 11:26:50 +1300

 > Would it work to test explicitly for speedbar mode?
 > ([break]     menu-item "Set Breakpoint" gud-break
 >                 :enable (not gud-running)
 >                 :visible (not (or (eq major-mode 'speedbar-mode) 
 >                                (and (memq gud-minor-mode '(gdbmi gdba))
 >                                     (> (car (window-fringes)) 0)))))

No I don't think so.  When there is more than one frame the tool-bar of the
frame without focus is not determined by the buffer local values of the
selected window but by those of the window that becomes selected if that frame
is given focus (the function frame-selected-window hints at this concept as
it can have frame as an argument).

Try this: 

1) Put the GUD buffer in full frame (with fringes).
2) Do C-x 5 2 to generate an identical frame.
3) M-x set-fringe-style RET none so that one frame has no fringes.
4) Click alternately on each frame.
5) The extra icons disappear and appear _simultaneously_ on both frames
   depending on whether the fringes are present on the frame with focus or not.

Ideally the extra icons should be present in the frame with fringes and not
in the frame without them.


reply via email to

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