]> git.eshelyaron.com Git - emacs.git/commit
'vtable-update-object' can now be called with one argument
authorAdam Porter <adam@alphapapa.net>
Sat, 9 Mar 2024 05:43:14 +0000 (23:43 -0600)
committerEshel Yaron <me@eshelyaron.com>
Sun, 24 Mar 2024 14:15:12 +0000 (15:15 +0100)
commit536f806ed6d8c4e054af29d5d5a436ace409bdbb
treecd0eeb01609d8b6b876ea437900b30b233ee2b1c
parent7c2b8e34d1a87fe2f26c542057afc1df634690b0
'vtable-update-object' can now be called with one argument

It's often necessary to update the representation of a single
object in a table (e.g a struct, whose identity does not change
when its slots'
values are changed).  To do so, now the function may be called
like this:

  (vtable-update-object table object)

Instead of like this:

  (vtable-update-object table object object)

This also documents the behavior of the just-discovered limitation filed
as bug#69837.
* lisp/emacs-lisp/vtable.el (vtable-update-object): Make 'old-object'
argument optional.  (Bug#69666)

* doc/misc/vtable.texi (Interface Functions): Update documentation.

* etc/NEWS: Add news entry.

(cherry picked from commit 393f58c85aeb78f814866ccaad9ae7efd3fa6766)
doc/misc/vtable.texi
etc/NEWS
lisp/emacs-lisp/vtable.el