aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2015-01-20 20:15:20 +0200
committerEli Zaretskii2015-01-20 20:15:20 +0200
commit310f7074519c3ea83e669effb87b2fc5a0d37f67 (patch)
tree17006ca789f298a4cde0289a35263f5b807e34f6
parent3ee38f2000944d50adb2c65bd1af11c464c87950 (diff)
downloademacs-310f7074519c3ea83e669effb87b2fc5a0d37f67.tar.gz
emacs-310f7074519c3ea83e669effb87b2fc5a0d37f67.zip
lisp/button.el (button-activate, push-button): Doc fix. (Bug#19628)
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/button.el20
2 files changed, 15 insertions, 9 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 8a3d6570c84..20efe68bff6 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12015-01-20 Eli Zaretskii <eliz@gnu.org>
2
3 * button.el (button-activate, push-button): Doc fix. (Bug#19628)
4
12015-01-16 Samer Masterson <samer@samertm.com> (tiny change) 52015-01-16 Samer Masterson <samer@samertm.com> (tiny change)
2 6
3 * pcomplete.el (pcomplete-parse-arguments): Parse arguments 7 * pcomplete.el (pcomplete-parse-arguments): Parse arguments
diff --git a/lisp/button.el b/lisp/button.el
index 189a1c23a4d..e7602dd7050 100644
--- a/lisp/button.el
+++ b/lisp/button.el
@@ -224,10 +224,10 @@ changes to a supertype are not reflected in its subtypes)."
224 prop val)))) 224 prop val))))
225 225
226(defun button-activate (button &optional use-mouse-action) 226(defun button-activate (button &optional use-mouse-action)
227 "Call BUTTON's action property. 227 "Call BUTTON's `action' property.
228If USE-MOUSE-ACTION is non-nil, invoke the button's mouse-action 228If USE-MOUSE-ACTION is non-nil, invoke the button's `mouse-action'
229instead of its normal action; if the button has no mouse-action, 229property instead of `action'; if the button has no `mouse-action',
230the normal action is used instead. 230the value of `action' is used instead.
231 231
232The action can either be a marker or a function. If it's a 232The action can either be a marker or a function. If it's a
233marker then goto it. Otherwise it it is a function then it is 233marker then goto it. Otherwise it it is a function then it is
@@ -429,11 +429,13 @@ instead of starting at the next button."
429(defun push-button (&optional pos use-mouse-action) 429(defun push-button (&optional pos use-mouse-action)
430 "Perform the action specified by a button at location POS. 430 "Perform the action specified by a button at location POS.
431POS may be either a buffer position or a mouse-event. If 431POS may be either a buffer position or a mouse-event. If
432USE-MOUSE-ACTION is non-nil, invoke the button's mouse-action 432USE-MOUSE-ACTION is non-nil, invoke the button's `mouse-action'
433instead of its normal action; if the button has no mouse-action, 433property instead of its `action' property; if the button has no
434the normal action is used instead. The action may be either a 434`mouse-action', the value of `action' is used instead.
435function to call or a marker to display and is invoked using 435
436`button-activate' (which see). 436The action in both cases may be either a function to call or a
437marker to display and is invoked using `button-activate' (which
438see).
437 439
438POS defaults to point, except when `push-button' is invoked 440POS defaults to point, except when `push-button' is invoked
439interactively as the result of a mouse-event, in which case, the 441interactively as the result of a mouse-event, in which case, the