summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/eldoc.el
diff options
context:
space:
mode:
authorYuuki Harano <masm+github@masm11.me>2020-11-29 02:12:15 +0900
committerYuuki Harano <masm+github@masm11.me>2020-11-29 02:12:15 +0900
commitd46a223d8595e8edb67c6361033625797503cacf (patch)
treecf7e27daa93bfd05663dbbb2555b4682843ed40f /lisp/emacs-lisp/eldoc.el
parent62abc054041a592ca617ab228d61469dd7923a3f (diff)
parent769dc33df7ec9ac81aa52c336d2a61c32ddbd50f (diff)
downloademacs-d46a223d8595e8edb67c6361033625797503cacf.tar.gz
emacs-d46a223d8595e8edb67c6361033625797503cacf.tar.bz2
emacs-d46a223d8595e8edb67c6361033625797503cacf.zip
Merge branch 'master' into feature/pgtk
Diffstat (limited to 'lisp/emacs-lisp/eldoc.el')
-rw-r--r--lisp/emacs-lisp/eldoc.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/eldoc.el b/lisp/emacs-lisp/eldoc.el
index 78cb8f08c34..d81060ef165 100644
--- a/lisp/emacs-lisp/eldoc.el
+++ b/lisp/emacs-lisp/eldoc.el
@@ -591,7 +591,8 @@ Honor `eldoc-echo-area-use-multiline-p' and
;; format the *eldoc* buffer, using as most of its
;; contents as we know will fit.
(with-current-buffer (eldoc--format-doc-buffer docs)
- (eldoc--echo-area-substring available)))
+ (save-excursion
+ (eldoc--echo-area-substring available))))
(t ;; this is the "truncate brutally" situation
(let ((string
(with-current-buffer (eldoc--format-doc-buffer docs)