Function: window-tool-bar--last-command-triggers-refresh-p
window-tool-bar--last-command-triggers-refresh-p is a byte-compiled
function defined in window-tool-bar.el.gz.
Signature
(window-tool-bar--last-command-triggers-refresh-p)
Documentation
Test if the recent command or event should trigger a tool bar refresh.
Source Code
;; Defined in /usr/src/emacs/lisp/window-tool-bar.el.gz
(defun window-tool-bar--last-command-triggers-refresh-p ()
"Test if the recent command or event should trigger a tool bar refresh."
(let ((type (event-basic-type last-command-event)))
(and
;; Assume that key presses and button presses are the only user
;; interactions that can alter the tool bar. Specifically, this
;; excludes mouse movement, mouse wheel scroll, and pinch.
(not (member type window-tool-bar--ignored-event-types))
;; Assume that any command that triggers shift select cannot
;; alter the tool bar. This excludes pure navigation commands.
(not (window-tool-bar--command-triggers-shift-select-p last-command))
;; Assume that self-insert-command won't alter the tool bar.
;; This is the most commonly executed command.
(not (eq last-command 'self-insert-command)))))