Closed DamienCassou closed 2 years ago
I confirm the behavior but I think it is an abuse of the modeline. Why not emitting a message that would appear next to the command line?
I think it is an abuse of the modeline
could be but this is how Emacs maintainers have implemented it. Fortunately, there is a eldoc-message-function
variable that nano-modeline could override to show the information in a different place (but where?).
Why not emitting a message that would appear next to the command line?
What do you mean by "the command line"?
I meant the minibuffer. When you display a message when the minbuffer is active, it is displayed next to the text.
When you display a message when the minbuffer is active, it is displayed next to the text.
I forgot about that. Then the solution is simple:
(setq eldoc-message-function #'message)
It seems to work well.
Can you make a PR to set it or do we let the user do it?
What do you think about PR #38?
When nano-modeline is at the top, eldoc stops showing eldoc messages.
How to reproduce:
emacs -Q
string-trim
functionexpected: the signature of the
string-trim
function appears somewhere actual: no signature appearsThis is because
eldoc-minibuffer-message
changesmode-line-format
butnano-modeline
(whennano-modeline-position
istop
) only displays the header-line.Possible solutions:
I can investigate a PR if you tell me what solution you have in mind.