win-switch icon indicating copy to clipboard operation
win-switch copied to clipboard

problems with semantic-stickyfunc-mode

Open 4DA opened this issue 10 years ago • 3 comments

Hi. Winswitch visual feedback messes with semantic's semantic-stickyfunc-mode

Here is the screenshot: img

4DA avatar Feb 17 '15 12:02 4DA

Thanks for the information, and my apologies for my delayed response.

Can you clarify what problem I should be seeing in the screenshot? Is it the extra orange/yellow bar appearing in the bottom-let window? I'm not sure what the specific problem is.

I'll give semantic-stickyfunc-mode a try, but any information you can give me would be helpful.

In the interim, the only thing the visual feedback does is transiently tweak the active mode line face. So I'm wondering if that extra orange line is semantic using the mode-line face elsewhere. Understanding the nature of the problem you are seeing will help me narrow this down.

For a quick fix in the meantime, in a mode where semantick-stickyfunc-mode is active (e.g., in a hook) you can turn off visual feedback with

(setq win-switch-provide-visual-feedback nil)

which can also be done by customize. If you like the echo-area message as feedback but don't want the transient mode line changes, you can do

(setq win-switch-on-feedback-function 'win-switch-on-alert)
(setq win-switch-off-feedback-function 'win-switch-off-alert)

which I think will be nicer than no feedback at all. (These can also be customized.) You might want something more contingent, however. I'll test and post a more complete version of this later on today.

genovese avatar Feb 21 '15 15:02 genovese

Is it the extra orange/yellow bar appearing in the bottom-let window? On two left windows semantic top bar is colored with color for selected active window (it's orange in my config) whether it shouldn't.

Moreover i think that semantic top bar shouldn't be touched at all, bottom modeline coloring should be enough.

Thanks.

4DA avatar Feb 21 '15 21:02 4DA

I've been unable to reproduce the problem. See the screenshot below, which shows semantic-stickyfunc-mode active while switching windows. Do you still get the problem if you start emacs with the -q, load win-switch, and start global-semantic-stickyfunc-mode?

Semantic's stickyfunc-mode uses the window's header-line to display its tags. By default, the header-line uses the header-line face which is not touched by win-switch at all. If, however, the header-line-format includes a string with a face property mode-line, that would be inherited and would show the similar changes. That doesn't seem to likely, though. What is the value of your header-line-format in the effected buffers?

Thanks, Chris

stickyfunc-win-switch

genovese avatar Feb 22 '15 02:02 genovese