rougier / nano-modeline

GNU Emacs / N Λ N O Modeline
GNU General Public License v3.0
175 stars 31 forks source link

with v0.3 mode-line still showing when using top position #24

Closed hans-d closed 1 year ago

hans-d commented 2 years ago

I'm using anno-modeline with posotion top. On v0.2, the (bottom) mode-line was nicely hidden.

On v0.3 however, the mode-line is still showing.

So far, not been able to hunt down this in the code changes

hans-d commented 2 years ago

casued by (add-hook 'window-configuration-change-hook #'nano-modeline-update-windows)

On removing the hook, all was ok.

hans-d commented 2 years ago

seems to be this one: (one-window-p t)

hans-d commented 2 years ago

current workaround: add (remove-hook 'window-configuration-change-hook #'nano-modeline-update-windows) after require - until investigated / fixed

aaronjensen commented 2 years ago

Also:

(setq no-mode-line t)

That's a built-in work-around AFIACT and it's what I do now.

The reason it is as it is is that it expects a face to be applied to the mode-line to constraint its height. This is what gives the gray line above the echo area in screenshots of nano.

Of note is that this is not mentioned in the README or is it present in nano-theme. I only know about it because I used to use parts of nano-emacs.

The current function to determine whether or not to render it is problematic as well when you have a buffer that is in more than one window. It gets confused.

artelse commented 2 years ago

I'm having the same problem; i.e. a dark empty mode-line at the bottom and a normal one at the top. Strangely enough, when I set the nano-modeline-position to bottom it shows it at the top and vice versa. After fiddling with top/ bottom, the bottom bar will disappear and top bar is shown, however with a bottom positioning setting.

rougier commented 2 years ago

I wanted to have a single line separating the minibuffer from all the windows and this is the reason for the hook that show a 1 pixel height modeline for the bottom window and no modeline for other windows. It is far from perfect as you noticed but I did not find a proper way to do it. Ideally, minibuffer should be in charge of displaying this line but I think it is not really possible.

rougier commented 2 years ago

Maybe I'll disable it until I find a proper solution.

rougier commented 1 year ago

Fixed with the new simpler branch.