]> git.eshelyaron.com Git - emacs.git/commit
Avoid recomputing the whole table in 'vtable--recompute-numerical'
authorAdam Porter <adam@alphapapa.net>
Thu, 21 Mar 2024 07:13:28 +0000 (02:13 -0500)
committerEshel Yaron <me@eshelyaron.com>
Sun, 24 Mar 2024 14:14:12 +0000 (15:14 +0100)
commitb84c256895af9d6c48b682de27e3be9c99e0f749
tree14c74167695ed0d466953bd2b98d081256411410
parent59f7cea1041558e3550efbbbd5e6a4e0ddcbedb9
Avoid recomputing the whole table in 'vtable--recompute-numerical'

Each element of LINE being tested is a list, the first element of
which is the value actually being represented in the table.
Previously, the 'numberp' test would always fail, because it was
being compared with the list rather than the intended value in it;
that could cause the whole table to be recomputed, sometimes
unnecessarily.
* lisp/emacs-lisp/vtable.el (vtable--recompute-numerical): Test the
car of ELEM, not ELEM itself, which is a list.  (Bug#69927)

(cherry picked from commit b3f04eb68499f285e05b5b74e9cbd67f3140fb3c)
lisp/emacs-lisp/vtable.el