summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2019-07-30 15:21:29 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2019-07-30 15:21:29 +0200
commitb75fb81e362b8afbf37da0d2480676269430694c (patch)
tree82e1f67de4a7f4340b46a2219ed573c9be1c1def /etc
parent99156a03bfee8304cf2644470dceb668e6262c98 (diff)
downloademacs-b75fb81e362b8afbf37da0d2480676269430694c.tar.gz
Extend button.el to take callback data
* doc/lispref/display.texi (Button Buffer Commands) (Button Buffer Commands): Document this. * lisp/button.el (backward-button, forward-button): Accept a NO-ERROR parameter. (button-activate): Make it possible to have specific data in the callback action.
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS6
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 1587eab1e29..cdf4bb29042 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -1968,6 +1968,12 @@ valid event type.
* Lisp Changes in Emacs 27.1
++++
+** Buttons (created with 'make-button' and related functions) can
+now use the 'button-data' property. If present, the data in this
+property will be passed on to the 'action' function instead of the
+button itself in 'button-activate'.
+
** 'defcustom' now takes a ':local' keyword that can be either t or
'permanent', which mean that the variable should be automatically
buffer-local. 'permanent' also sets the variable's 'permanent-local'