]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix regression in vtable-goto-object
authorLars Ingebrigtsen <larsi@gnus.org>
Wed, 9 Mar 2022 16:37:36 +0000 (17:37 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Wed, 9 Mar 2022 16:37:47 +0000 (17:37 +0100)
* lisp/emacs-lisp/vtable.el (vtable-goto-object): Fix moving to
the object.

lisp/emacs-lisp/vtable.el

index 2c61996637ff4f60c2cb143a14ac462190bc681f..d8577c19762cf39933eaddf764c25bd8223849a3 100644 (file)
@@ -167,7 +167,7 @@ Return the position of the object if found, and nil if not."
   (let ((start (point)))
     (vtable-beginning-of-table)
     (save-restriction
-      (narrow-to-region (point) (vtable-end-of-table))
+      (narrow-to-region (point) (save-excursion (vtable-end-of-table)))
       (if (text-property-search-forward 'vtable-object object #'eq)
           (progn
             (forward-line -1)