summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorAdam Porter <adam@alphapapa.net>2024-03-08 23:43:14 -0600
committerEli Zaretskii <eliz@gnu.org>2024-03-21 12:41:44 +0200
commit393f58c85aeb78f814866ccaad9ae7efd3fa6766 (patch)
tree741c23c6956027a84692a93428f432ef9b1d5f02 /etc
parentfe24a8c3c091c1e051fe6a8c1ec4fd30ca052ca7 (diff)
downloademacs-393f58c85aeb78f814866ccaad9ae7efd3fa6766.tar.gz
'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.
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS9
1 files changed, 9 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 69e61d91b0e..ba0e4c80fa0 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -2197,6 +2197,15 @@ aforementioned functions:
(and (arrayp executing-kbd-macro)
(>= executing-kbd-macro-index (length executing-kbd-macro))))
++++
+** 'vtable-update-object' updates an existing object with just two arguments.
+It is now possible to update the representation of an object in a vtable
+by calling 'vtable-update-object' with just the vtable and the object as
+arguments. (Previously the 'old-object' argument was required which, in
+this case, would mean repeating the object in the argument list.) When
+replacing an object with a different one, passing both the new and old
+objects is still necessary.
+
* Changes in Emacs 30.1 on Non-Free Operating Systems