diff options
| -rw-r--r-- | lisp/button.el | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/button.el b/lisp/button.el index ca6f0d3b6ea..9112e518b0d 100644 --- a/lisp/button.el +++ b/lisp/button.el | |||
| @@ -513,6 +513,9 @@ Returns the button found." | |||
| 513 | nil | 513 | nil |
| 514 | (user-error (if wrap "No buttons!" "No more buttons"))) | 514 | (user-error (if wrap "No buttons!" "No more buttons"))) |
| 515 | (let ((msg (and display-message (button-get button 'help-echo)))) | 515 | (let ((msg (and display-message (button-get button 'help-echo)))) |
| 516 | (when (functionp msg) | ||
| 517 | (setq msg (funcall msg (selected-window) (current-buffer) | ||
| 518 | (button-start button)))) | ||
| 516 | (when msg | 519 | (when msg |
| 517 | (message "%s" msg))) | 520 | (message "%s" msg))) |
| 518 | button))) | 521 | button))) |