[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Automatically raising the Speedbar frame
From: |
Eric Ludlam |
Subject: |
Re: Automatically raising the Speedbar frame |
Date: |
08 Jul 2003 09:35:25 -0400 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 |
>>> "Raffael Herzog" <devnull@raffael.ch> seems to think that:
>Hi,
>
>I really like Speedbar very much, but it has one major
>disadvantage: Whenever I switched to a different
>application, Speedbar stays in the background, when I
>switch back to Emacs (it isn't really useful in the
>background... :)
>
>Is there a way to automatically raise the speedbar frame
>whenever I activate an Emacs frame?
>
>I already tried:
>
>(defadvice handle-switch-frame (after raise-speedbar)
> (if speedbar-frame
> (raise-frame speedbar-frame)))
>(ad-activate 'handle-switch-frame)
>
>but this didn't help much because handle-switch-frame
>doesn't get called when I re-activate the same frame that
>had the focus before, which is normally the case.
>
>Maybe I just missed the right hook?
You can change speedbar-frame-parameters to add auto-raise to t. This
will cause the frame to auto-raise when you pass the mouse over it.
Otherwise I'm not too familiar with various frame raise/lower hooks.
I've looked into problems similar to this but didn't figure anything
out.
Eric