Function: window-tool-bar--call-button
window-tool-bar--call-button is an interactive and byte-compiled
function defined in window-tool-bar.el.gz.
Signature
(window-tool-bar--call-button)
Documentation
Call the button that was clicked on in the tab line.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/window-tool-bar.el.gz
(defun window-tool-bar--call-button ()
"Call the button that was clicked on in the tab line."
(interactive)
(when (mouse-event-p last-command-event)
(let ((posn (event-start last-command-event)))
;; Commands need to execute with the right buffer and window
;; selected. The selection needs to be permanent for isearch.
(select-window (posn-window posn))
(let* ((str (posn-string posn))
(key (get-text-property (cdr str) 'tool-bar-key (car str)))
(cmd (lookup-key (window-tool-bar--get-keymap) (vector key))))
(call-interactively cmd)))))