Prevent eldoc from changing the mode line
* lisp/emacs-lisp/eldoc.el (eldoc-minibuffer-message): Don't change the mode line if it is not displayed. (Bug#28697)
This commit is contained in:
parent
c9d71b31bf
commit
035d7ac7e4
1 changed files with 2 additions and 1 deletions
|
@ -264,12 +264,13 @@ Otherwise work like `message'."
|
|||
(or (window-in-direction 'above (minibuffer-window))
|
||||
(minibuffer-selected-window)
|
||||
(get-largest-window)))
|
||||
(when mode-line-format
|
||||
(unless (and (listp mode-line-format)
|
||||
(assq 'eldoc-mode-line-string mode-line-format))
|
||||
(setq mode-line-format
|
||||
(list "" '(eldoc-mode-line-string
|
||||
(" " eldoc-mode-line-string " "))
|
||||
mode-line-format)))
|
||||
mode-line-format))))
|
||||
(setq eldoc-mode-line-string
|
||||
(when (stringp format-string)
|
||||
(apply #'format-message format-string args)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue