]> git.eshelyaron.com Git - emacs.git/commitdiff
Make semantic/idle not move point after last change
authorLars Ingebrigtsen <larsi@gnus.org>
Mon, 8 Mar 2021 19:37:31 +0000 (20:37 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 8 Mar 2021 19:37:40 +0000 (20:37 +0100)
* lisp/cedet/semantic/idle.el (semantic--eldoc-info): Don't move
point (bug#46999).

lisp/cedet/semantic/idle.el

index 0f997474ded0ba6a2715da8fdd5effb99526c632..2b6d11f4580e650b5d6b26df2140d032ff7d30ff 100644 (file)
@@ -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