From: Lars Ingebrigtsen Date: Mon, 8 Mar 2021 19:37:31 +0000 (+0100) Subject: Make semantic/idle not move point after last change X-Git-Tag: emacs-28.0.90~3358 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=612095220d158a7e8d1d1fb74b264b375ceee508;p=emacs.git Make semantic/idle not move point after last change * lisp/cedet/semantic/idle.el (semantic--eldoc-info): Don't move point (bug#46999). --- diff --git a/lisp/cedet/semantic/idle.el b/lisp/cedet/semantic/idle.el index 0f997474ded..2b6d11f4580 100644 --- a/lisp/cedet/semantic/idle.el +++ b/lisp/cedet/semantic/idle.el @@ -734,7 +734,8 @@ Call `semantic-idle-summary-current-symbol-info' for getting the current tag to display information." (or (eq major-mode 'emacs-lisp-mode) (not (semantic-idle-summary-useful-context-p)) - (let* ((found (semantic-idle-summary-current-symbol-info)) + (let* ((found (save-excursion + (semantic-idle-summary-current-symbol-info))) (str (cond ((stringp found) found) ((semantic-tag-p found) (funcall semantic-idle-summary-function