Function: viper-mouse-catch-frame-switch
viper-mouse-catch-frame-switch is an interactive and byte-compiled
function defined in viper-mous.el.gz.
Signature
(viper-mouse-catch-frame-switch EVENT ARG)
Documentation
Catch the event of switching frame.
Usually is bound to a down-mouse event to work properly. See sample
bindings in the Viper manual.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/emulation/viper-mous.el.gz
(defun viper-mouse-catch-frame-switch (_event arg)
"Catch the event of switching frame.
Usually is bound to a `down-mouse' event to work properly. See sample
bindings in the Viper manual."
(interactive "e\nP")
(setq viper-frame-of-focus nil)
;; pass prefix arg along to viper-mouse-click-search/insert-word
(setq prefix-arg arg)
(if (eq last-command 'handle-switch-frame)
(setq viper-frame-of-focus viper-current-frame-saved))
;; make Emacs forget that it executed viper-mouse-catch-frame-switch
(setq this-command last-command))