diff options
| author | Lars Ingebrigtsen | 2020-12-11 21:30:25 +0100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2020-12-11 21:30:25 +0100 |
| commit | 70f7f0b1fd6576752f4cfef8f2e597f3e8a56123 (patch) | |
| tree | 0e7fada32c01f8a481446fcb3f3de41f31ace9a1 | |
| parent | 711e7bf29cd405a69466feddb5ff9b9a5dfd2a03 (diff) | |
| download | emacs-70f7f0b1fd6576752f4cfef8f2e597f3e8a56123.tar.gz emacs-70f7f0b1fd6576752f4cfef8f2e597f3e8a56123.zip | |
button-buttonize doc string clarification
* lisp/button.el (button-buttonize): Clarify what happens when
DATA isn't present.
| -rw-r--r-- | lisp/button.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/button.el b/lisp/button.el index 8dbb763281a..a6f70436f74 100644 --- a/lisp/button.el +++ b/lisp/button.el | |||
| @@ -615,7 +615,9 @@ button at point is the button to describe." | |||
| 615 | 615 | ||
| 616 | (defun button-buttonize (string callback &optional data) | 616 | (defun button-buttonize (string callback &optional data) |
| 617 | "Make STRING into a button and return it. | 617 | "Make STRING into a button and return it. |
| 618 | When clicked, CALLBACK will be called with the optional DATA parameter." | 618 | When clicked, CALLBACK will be called with the DATA as the |
| 619 | function argument. If DATA isn't present (or is nil), the button | ||
| 620 | itself will be used instead as the function argument." | ||
| 619 | (propertize string | 621 | (propertize string |
| 620 | 'face 'button | 622 | 'face 'button |
| 621 | 'button t | 623 | 'button t |