Eldoc: play nice with mode-line-format-right-align (bug#68547)
* lisp/emacs-lisp/eldoc.el (eldoc-minibuffer-message): Avoid nesting 'mode-line-format', since that breaks 'mode-line-format-right-align'.
This commit is contained in:
parent
ce836aafaa
commit
412cc0212d
1 changed files with 5 additions and 3 deletions
|
@ -312,9 +312,11 @@ Otherwise, it displays the message like `message' would."
|
|||
(not (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)))
|
||||
(funcall
|
||||
(if (listp mode-line-format) #'append #'list)
|
||||
(list "" '(eldoc-mode-line-string
|
||||
(" " eldoc-mode-line-string " ")))
|
||||
mode-line-format)))
|
||||
(setq eldoc-mode-line-string
|
||||
(when (stringp format-string)
|
||||
(apply #'format-message format-string args)))
|
||||
|
|
Loading…
Add table
Reference in a new issue