[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-26 035d7ac: Prevent eldoc from changing the mode lin
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] emacs-26 035d7ac: Prevent eldoc from changing the mode line |
Date: |
Sat, 21 Oct 2017 04:42:34 -0400 (EDT) |
branch: emacs-26
commit 035d7ac7e42f1e1e82f4948e19ef8d8188bb902c
Author: Nick Helm <address@hidden>
Commit: Eli Zaretskii <address@hidden>
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)
---
lisp/emacs-lisp/eldoc.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lisp/emacs-lisp/eldoc.el b/lisp/emacs-lisp/eldoc.el
index cba9a00..ad08977 100644
--- a/lisp/emacs-lisp/eldoc.el
+++ b/lisp/emacs-lisp/eldoc.el
@@ -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)))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] emacs-26 035d7ac: Prevent eldoc from changing the mode line,
Eli Zaretskii <=