diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2019-07-30 15:21:29 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2019-07-30 15:21:29 +0200 |
commit | b75fb81e362b8afbf37da0d2480676269430694c (patch) | |
tree | 82e1f67de4a7f4340b46a2219ed573c9be1c1def /etc | |
parent | 99156a03bfee8304cf2644470dceb668e6262c98 (diff) | |
download | emacs-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/NEWS | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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' |