Keep point in the *eldoc* buffer in eldoc-display-in-echo-area
* lisp/emacs-lisp/eldoc.el (eldoc-display-in-echo-area): Use 'save-excursion' to keep point position in *eldoc* buffer. Suggested by Andrii Kolomoiets <andreyk.mad@gmail.com>.
This commit is contained in:
parent
d23723cfb2
commit
0287c51768
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue