mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 09:14:18 +00:00
Make forward-button support help-echo function (bug#37515)
* lisp/button.el (forward-button): Support help-echo function.
This commit is contained in:
parent
648a6b7e91
commit
ed9402f819
1 changed files with 3 additions and 0 deletions
|
|
@ -513,6 +513,9 @@ Returns the button found."
|
|||
nil
|
||||
(user-error (if wrap "No buttons!" "No more buttons")))
|
||||
(let ((msg (and display-message (button-get button 'help-echo))))
|
||||
(when (functionp msg)
|
||||
(setq msg (funcall msg (selected-window) (current-buffer)
|
||||
(button-start button))))
|
||||
(when msg
|
||||
(message "%s" msg)))
|
||||
button)))
|
||||
|
|
|
|||
Loading…
Reference in a new issue