Function: artist-shift-has-changed
artist-shift-has-changed is a byte-compiled function defined in
artist.el.gz.
Signature
(artist-shift-has-changed SHIFT-STATE EV)
Documentation
From the last SHIFT-STATE and EV, determine if the shift-state has changed.
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/artist.el.gz
;;
;; Mouse routines
;;
(defsubst artist-shift-has-changed (_shift-state _ev)
"From the last SHIFT-STATE and EV, determine if the shift-state has changed."
;; This one simply doesn't work.
;;
;; There seems to be no way to tell whether the user has pressed shift
;; while dragging the cursor around when we are in a track-mouse
;; form. Calling (event-modifiers ev) yields nil :-( Neither is the
;; (event-basic-type ev) of any help (it is simply `mouse-movement').
;;
;; So this doesn't work:
;; (cond ((and shift-state (not (artist-event-is-shifted ev))) t)
;; ((and (not shift-state) (artist-event-is-shifted ev)) t)
;; (t nil))
nil)