Function: vip-escape-to-emacs
vip-escape-to-emacs is an interactive and byte-compiled function
defined in vip.el.gz.
Signature
(vip-escape-to-emacs ARG &optional EVENTS)
Documentation
Escape to Emacs mode for one Emacs command.
ARG is used as the prefix value for the executed command. If EVENTS is a list of events, which become the beginning of the command.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/obsolete/vip.el.gz
;; escape to emacs mode temporarily
(defun vip-escape-to-emacs (arg &optional events)
"Escape to Emacs mode for one Emacs command.
ARG is used as the prefix value for the executed command. If
EVENTS is a list of events, which become the beginning of the command."
(interactive "P")
(let (com (old-map (current-local-map)))
(if events (setq unread-command-events
(append events unread-command-events)))
(setq prefix-arg arg)
(use-local-map vip-emacs-local-map)
(unwind-protect
(setq com (key-binding (read-key-sequence nil)))
(use-local-map old-map))
(command-execute com prefix-arg)
(setq prefix-arg nil) ;; reset prefix arg
))