?
Current Path : /usr/share/emacs/24.3/lisp/emulation/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : //usr/share/emacs/24.3/lisp/emulation/viper.elc |
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:11:01 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/emulation/viper.el ;;; in Emacs version 24.3.1 ;;; with all optimizations. ;;; This file uses dynamic docstrings, first added in Emacs 19.29. ;;; This file does not contain utf-8 non-ASCII characters, ;;; and so can be loaded in Emacs versions earlier than 23. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; #@30 The current version of Viper (defconst viper-version "3.14.1 of August 15, 2009" (#$ . 558)) (byte-code "\300\301!\210\300\302!\210\300\303!\207" [require advice viper-init viper-keym] 2) #@105 Viper customization file. If set by the user, this must be done _before_ Viper is loaded in `~/.emacs'. (defvar viper-custom-file-name (convert-standard-filename "~/.viper") (#$ . 753)) (byte-code "\300\301\302\303\304\305\306\307&\210\310\311!\210\300\312\302\313\304\305\306\301&\210\314\315\316\317\320\321\322\323\306\312& \207" [custom-declare-group viper nil "Vi emulation within Emacs.\nNOTE: Viper customization should be saved in `viper-custom-file-name', which\ndefaults to `~/.viper'." :prefix "viper-" :group emulations require viper-cmd viper-misc "Miscellaneous Viper customization." custom-declare-variable viper-always t "Non-nil means, arrange for vi-state to be a default when appropriate.\nThis is different from `viper-mode' variable in that `viper-mode' determines\nwhether to use Viper in the first place, while `viper-always', if nil, lets\nuser decide when to invoke Viper in a major mode." :type boolean :tag "Always Invoke Viper"] 10) (defvar viper-saved-non-viper-variables nil) (byte-code "\300\301\302\303\304\305\306\307\310\311& \210\300\312\313\314\304\315\310\311&\210\300\316\317\320\304\321\310\311&\210\300\322\323\324\304\325\310\311&\207" [custom-declare-variable viper-mode (cond (noninteractive nil) (t 'ask)) "To Viperize or not to Viperize.\nIf t, viperize Emacs. If nil -- don't. If `ask', ask the user.\nThis variable is used primarily when Viper is being loaded.\n\nMust be set in your init file before Viper is loaded.\nDO NOT set this variable interactively, unless you are using the customization\nwidget." :type (choice (const nil) (const t) (const ask)) :tag "Set Viper Mode on Loading" :group viper-misc viper-vi-state-mode-list '(fundamental-mode makefile-mode awk-mode m4-mode xrdb-mode winmgr-mode autoconf-mode cvs-edit-mode html-mode html-helper-mode emacs-lisp-mode lisp-mode lisp-interaction-mode jde-mode java-mode cc-mode c-mode c++-mode objc-mode fortran-mode f90-mode basic-mode bat-mode asm-mode prolog-mode flora-mode sql-mode text-mode indented-text-mode tex-mode latex-mode bibtex-mode ps-mode diff-mode idl-mode perl-mode cperl-mode javascript-mode tcl-mode python-mode sh-mode ksh-mode csh-mode gnus-article-mode mh-show-mode) "Major modes that require Vi command state." (repeat symbol) viper-emacs-state-mode-list '(Custom-mode dired-mode efs-mode tar-mode browse-kill-ring-mode recentf-mode recentf-dialog-mode occur-mode mh-folder-mode gnus-group-mode gnus-summary-mode completion-list-mode help-mode Info-mode Buffer-menu-mode compilation-mode rcirc-mode jde-javadoc-checker-report-mode view-mode vm-mode vm-summary-mode) "A list of major modes that should come up in Emacs state.\nNormally, Viper would bring buffers up in Emacs state, unless the corresponding\nmajor mode has been placed on `viper-vi-state-mode-list' or\n`viper-insert-state-mode-list'. So, don't place a new mode on this list,\nunless it is coming up in a wrong Viper state." (repeat symbol) viper-insert-state-mode-list '(internal-ange-ftp-mode comint-mode gud-mode inferior-emacs-lisp-mode erc-mode eshell-mode shell-mode) "A list of major modes that should come up in Vi Insert state." (repeat symbol)] 10) (defalias 'viper-apply-major-mode-modifiers #[(&optional symbol value) "\203 L\210\303\304\n\"\207" [symbol value viper-major-mode-modifier-list mapcar #[(triple) "\301@A@\302\3038!#\207" [triple viper-modify-major-mode eval 2] 6]] 3]) #@612 List specifying how to modify the various major modes to enable some Viperisms. The list has the structure: ((mode viper-state keymap) (mode viper-state keymap) ...). If `mode' is on the list, the `keymap' will be made active (on the minor-mode-map-alist) in the specified viper state. If you change this list, have to restart Emacs for the change to take effect. However, if you did the change through the customization widget, then Emacs needs to be restarted only if you deleted a triple mode-state-keymap from the list. No need to restart Emacs in case of insertion or modification of an existing triple. (custom-declare-variable 'viper-major-mode-modifier-list ''((help-mode emacs-state viper-slash-and-colon-map) (comint-mode insert-state viper-comint-mode-modifier-map) (comint-mode vi-state viper-comint-mode-modifier-map) (gud-mode insert-state viper-comint-mode-modifier-map) (shell-mode insert-state viper-comint-mode-modifier-map) (inferior-emacs-lisp-mode insert-state viper-comint-mode-modifier-map) (shell-mode vi-state viper-comint-mode-modifier-map) (ange-ftp-shell-mode insert-state viper-comint-mode-modifier-map) (ange-ftp-shell-mode vi-state viper-comint-mode-modifier-map) (internal-ange-ftp-mode insert-state viper-comint-mode-modifier-map) (internal-ange-ftp-mode vi-state viper-comint-mode-modifier-map) (dired-mode emacs-state viper-dired-modifier-map) (tar-mode emacs-state viper-slash-and-colon-map) (mh-folder-mode emacs-state viper-slash-and-colon-map) (gnus-group-mode emacs-state viper-gnus-modifier-map) (gnus-summary-mode emacs-state viper-gnus-modifier-map) (Info-mode emacs-state viper-slash-and-colon-map) (Buffer-menu-mode emacs-state viper-slash-and-colon-map) (erc-mode insert-state viper-comint-mode-modifier-map) (erc-mode vi-state viper-comint-mode-modifier-map)) '(#$ . 4164) :type '(repeat (list symbol (choice (const emacs-state) (const vi-state) (const insert-state)) symbol)) :set 'viper-apply-major-mode-modifiers :group 'viper-misc) #@80 Toggle Viper on/off. If Viper is enabled, turn it off. Otherwise, turn it on. (defalias 'toggle-viper-mode #[nil "\301=\203 \302 \207\303\300 \207" [viper-mode t viper-go-away nil] 2 (#$ . 6155) nil]) #@69 Turn on Viper emulation of Vi in Emacs. See Info node `(viper)Top'. (defalias 'viper-mode #[nil "\204^ \204 \306\307\310!\210\n\203K \311\204G \312 \313\216\306\314 \210\315\316!\210\317 \210\320\321!c\210eb\210\322\323!\203>