Function: vi-do-old-mode-C-c-command
vi-do-old-mode-C-c-command is an interactive and byte-compiled
function defined in vi.el.gz.
Signature
(vi-do-old-mode-C-c-command ARG)
Documentation
This is a hack for accessing mode specific C-c commands in vi-mode.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/obsolete/vi.el.gz
(defun vi-do-old-mode-C-c-command (arg)
"This is a hack for accessing mode specific C-c commands in vi-mode."
(interactive "P")
(let ((cmd (lookup-key vi-mode-old-local-map
(concat "\C-c" (char-to-string (read-char))))))
(if (catch 'exit-vi-mode ; kludge hack due to dynamic binding
; of case-fold-search
(if (null cmd)
(progn (ding) nil)
(let ((case-fold-search vi-mode-old-case-fold)) ; a hack
(setq prefix-arg arg)
(command-execute cmd nil)
nil)))
(progn
(vi-back-to-old-mode)
(setq prefix-arg arg)
(command-execute cmd nil)))))