]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/emacs-lisp/vtable.el (vtable-update-object): Fix.
authorAdam Porter <adam@alphapapa.net>
Sat, 9 Mar 2024 04:28:52 +0000 (22:28 -0600)
committerEshel Yaron <me@eshelyaron.com>
Fri, 15 Mar 2024 08:59:28 +0000 (09:59 +0100)
The order of the arguments to 'seq-position' was wrong, and it did not
compare the correct values.  (Bug#69664)

(cherry picked from commit 013114664ef4923872ffad26a97f4d314c9a84bf)

lisp/emacs-lisp/vtable.el

index 02020552e7f47816b031278a71d0965cb8831961..5cf8d8854bbb53e2ab49ff63738ce68ac446508d 100644 (file)
@@ -300,7 +300,9 @@ If it can't be found, return nil and don't move point."
         (error "Can't find the old object"))
       (setcar (cdr objects) object))
     ;; Then update the cache...
-    (let* ((line-number (seq-position old-object (car (vtable--cache table))))
+    (let* ((line-number (seq-position (car (vtable--cache table)) old-object
+                                      (lambda (a b)
+                                        (equal (car a) b))))
            (line (elt (car (vtable--cache table)) line-number)))
       (unless line
         (error "Can't find cached object"))