%PDF- %PDF-
Direktori : /usr/local/share/emacs/27.2/lisp/obsolete/ |
Current File : //usr/local/share/emacs/27.2/lisp/obsolete/vip.elc |
;ELC ;;; Compiled ;;; in Emacs version 27.2 ;;; 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. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (custom-declare-group 'vip nil "A VI Package for GNU Emacs." :prefix "vip-" :group 'emulations) #@51 Local map used in Emacs mode. (Buffer-specific.) (defvar vip-emacs-local-map nil (#$ . 504)) #@60 Local map used in insert command mode. (Buffer-specific.) (defvar vip-insert-local-map nil (#$ . 604)) (byte-code "\300\301!\210\300\302!\207" [make-variable-buffer-local vip-emacs-local-map vip-insert-local-map] 2) #@56 Remember insert point as a marker. (Buffer-specific.) (defvar vip-insert-point nil (#$ . 827)) (byte-code "\300\301\302 \"\210\303\301!\207" [set-default vip-insert-point make-marker make-variable-buffer-local] 3) #@53 Remember com point as a marker. (Buffer-specific.) (defvar vip-com-point nil (#$ . 1048)) (byte-code "\300\301\302 \"\210\303\301!\207" [set-default vip-com-point make-marker make-variable-buffer-local] 3) #@63 Current mode. One of `emacs-mode', `vi-mode', `insert-mode'. (defvar vip-current-mode nil (#$ . 1261)) (byte-code "\300\301!\210\302\301\303\"\207" [make-variable-buffer-local vip-current-mode set-default emacs-mode] 3) #@68 Value of mode-line-buffer-identification in Emacs mode within vip. (defvar vip-emacs-mode-line-buffer-identification nil (#$ . 1488)) (byte-code "\300\301!\210\302\301\303\"\207" [make-variable-buffer-local vip-emacs-mode-line-buffer-identification set-default ("Emacs: %17b")] 3) #@84 vip-current-major-mode is the major-mode vi considers it is now. (buffer specific) (defvar vip-current-major-mode nil (#$ . 1775)) (make-variable-buffer-local 'vip-current-major-mode) #@43 Last shell command executed by ! command. (defvar vip-last-shell-com nil (#$ . 1965)) #@54 Name of register to store deleted or yanked strings. (defvar vip-use-register nil (#$ . 2057)) #@76 How to reexecute last destructive command. Value is list (M-COM VAL COM). (defvar vip-d-com nil (#$ . 2158)) (byte-code "\300\301\302\303\304\305\306\307&\210\300\310\311\312\304\313\306\307&\207" [custom-declare-variable vip-shift-width 8 "The number of columns shifted by > and < command." :type integer :group vip vip-re-replace nil "If t then do regexp replace, if nil then do string replace." boolean] 8) #@49 The character remembered by the vi "r" command. (defvar vip-d-char nil (#$ . 2577)) #@25 For use by ";" command. (defvar vip-f-char nil (#$ . 2667)) #@25 For use by "." command. (defvar vip-F-char nil (#$ . 2733)) #@25 For use by ";" command. (defvar vip-f-forward nil (#$ . 2799)) #@25 For use by ";" command. (defvar vip-f-offset nil (#$ . 2868)) (byte-code "\300\301\302\303\304\305\306\307&\210\300\310\311\312\304\305\306\307&\207" [custom-declare-variable vip-search-wrap-around t "If t, search wraps around." :type boolean :group vip vip-re-search nil "If t, search is reg-exp search, otherwise vanilla search."] 8) #@25 Last vip search string. (defvar vip-s-string nil (#$ . 3212)) #@26 If t, search is forward. (defvar vip-s-forward nil (#$ . 3280)) (byte-code "\300\301\302\303\304\305\306\307&\210\300\310\302\311\304\305\306\307&\210\300\312\302\313\304\305\306\307&\210\300\314\302\315\304\305\306\307&\207" [custom-declare-variable vip-case-fold-search nil "If t, search ignores cases." :type boolean :group vip vip-re-query-replace "If t then do regexp replace, if nil then do string replace." vip-open-with-indent "If t, indent when open a new line." vip-help-in-insert-mode "If t then C-h is bound to help-command in insert mode.\nIf nil then it is bound to `delete-backward-char'."] 8) #@45 String inserted at the beginning of region. (defvar vip-quote-string "> " (#$ . 3899)) (defvar vip-tags-file-name "TAGS") (defvar vip-inhibit-startup-message nil) #@40 Filename used as startup file for vip. (defvar vip-startup-file (locate-user-emacs-file "vip" ".vip") (#$ . 4068)) (defvar vip-mode-map (byte-code "\301 \302\303\304#\210\302\305\306#\210\302\307\310#\210\302\311\312#\210\302\313\314#\210\302\315\316#\210\302\317\320#\210\302\321\322#\210\302\323\306#\210\302\324\325#\210\302\326\327#\210\302\330\331#\210\302\332\333#\210\302\334\335#\210\302\336\337#\210\302\340\341#\210\302\342\306#\210\302\343\316#\210\302\344\345#\210\302\346\345#\210\302\347\345#\210\302\350\351#\210\302\352\353#\210\302\354\355#\210\302\356\357#\210\302\360\361#\210\302\362\363#\210\302\364\365#\210\302\366\367#\210\302\370\371#\210\302\372\373#\210\302\374\375#\210\302\376\377#\210\302\201@ \201A #\210\302\201B \201C #\210\302\201D \201C #\210\302\201E \201C #\210\302\201F \201C #\210\302\201G \201C #\210\302\201H \201C #\210\302\201I \201C #\210\302\201J \201C #\210\302\201K \201C #\210\302\201L \201M #\210\302\201N \201O #\210\302\201P \345#\210\302\201Q \345#\210\302\201R \345#\210\302\201S \201T #\210\302\201U \355#\210\302\201V \201W #\210\302\201X \201Y #\210\302\201Z \201[ #\210\302\201\\ \201] #\210\302\201^ \201_ #\210\302\201` \201a #\210\302\201b \201c #\210\302\201d \201e #\210\302\201f \201g #\210\302\201h \201i #\210\302\201j \201k #\210\302\201l \201m #\210\302\201n \201o #\210\302\201p \201q #\210\302\201r \201s #\210\302\201t \201u #\210\302\201v \201w #\210\302\201x \201y #\210\302\201z \201{ #\210\302\201| \201} #\210\302\201~ \355#\210\302\201 \201\200 #\210\302\201\201 \201\202 #\210\302\201\203 \201\204 #\210\302\201\205 \201\206 #\210\302\201\207 \201\210 #\210\302\201\211 \355#\210\302\201\212 \201\213 #\210\302\201\214 \355#\210\302\201\215 \201\216 #\210\302\201\217 \355#\210\302\201\220 \201\221 #\210\302\201\222 \201\223 #\210\302\201\224 \201\225 #\210\302\201\226 \345#\210\302\201\227 \345#\210\302\201\230 \201\231 #\210\302\201\232 \201\233 #\210\302\201\234 \201\235 #\210\302\201\236 \201\237 #\210\302\201\240 \201\241 #\210\302\201\242 \201\243 #\210\302\201\244 \201\245 #\210\302\201\246 \201\247 #\210\302\201\250 \201\251 #\210\302\201\252 \201\253 #\210\302\201\254 \201\255 #\210\302\201\256 \201\257 #\210\302\201\260 \355#\210\302\201\261 \201\262 #\210\302\201\263 \201\264 #\210\302\201\265 \201\266 #\210\302\201\267 \201\270 #\210\302\201\271 \201\272 #\210\302\201\273 \201\274 #\210\302\201\275 \201\276 #\210\302\201\277 \345#\210\302\201\300 \201\301 #\210\302\201\302 \201\303 #\210\302\201\304 \201\305 #\210\302\201\306 \201\301 #\210\302\201\307 \201\303 #\210\302\201\310 \201\305 #\210\302\201\311 \201\312 #\210\302\201\313 \201\314 #\210\302\201\315 \201\316 #\210\302\201\317 \355#\210\302\201\320 \201\321 #\210)\207" [map make-keymap define-key "" beginning-of-line "" vip-scroll-back "" vip-ctl-c "" vip-scroll-up "" vip-scroll-up-one "" vip-scroll "" vip-keyboard-quit "" help-command " " "" vip-other-window "" vip-open-line-at-point "" vip-scroll-down "" vip-ctl-x "" vip-scroll-down-one "" vip-change-mode-to-emacs "" vip-ESC [33554464] " " "!" vip-command-argument "\"" "#" "$" vip-goto-eol "%" vip-paren-match "&" vip-nil "'" vip-goto-mark-and-skip-white "(" vip-backward-sentence ")" vip-forward-sentence "*" call-last-kbd-macro "+" vip-next-line-at-bol "," vip-repeat-find-opposite "-" vip-previous-line-at-bol "." vip-repeat "/" vip-search-forward "0" vip-beginning-of-line "1" vip-digit-argument "2" "3" "4" "5" "6" "7" "8" "9" ":" vip-ex ";" vip-repeat-find "<" "=" ">" "?" vip-search-backward "@" "A" vip-Append "B" vip-backward-Word "C" vip-ctl-c-equivalent "D" vip-kill-line "E" vip-end-of-Word "F" vip-find-char-backward "G" vip-goto-line "H" vip-window-top "I" vip-Insert "J" vip-join-lines "K" vip-kill-buffer "L" vip-window-bottom "M" vip-window-middle "N" vip-search-Next "O" vip-Open-line "P" vip-Put-back "Q" vip-query-replace "R" vip-replace-string "S" vip-switch-to-buffer-other-window "T" vip-goto-char-backward "U" "V" vip-find-file-other-window "W" vip-forward-Word "X" vip-ctl-x-equivalent "Y" vip-yank-line "ZZ" save-buffers-kill-emacs "[" "\\" vip-escape-to-emacs "]" "^" vip-bol-and-skip-white "_" "`" vip-goto-mark "a" vip-append "b" vip-backward-word "c" "d" "e" vip-end-of-word "f" vip-find-char-forward "g" vip-info-on-file "h" vip-backward-char "i" vip-insert "j" vip-next-line "k" vip-previous-line "l" vip-forward-char "m" vip-mark-point "n" vip-search-next "o" vip-open-line "p" vip-put-back "q" "r" vip-replace-char "s" vip-switch-to-buffer "t" vip-goto-char-forward "u" vip-undo "v" vip-find-file "w" vip-forward-word "x" vip-delete-char "y" "zH" vip-line-to-top "zM" vip-line-to-middle "zL" vip-line-to-bottom "z " "z." "z-" "{" vip-backward-paragraph "|" vip-goto-col "}" vip-forward-paragraph "~" "" vip-delete-backward-char] 4)) (defalias 'vip-version #[nil "\300\301!\207" [message "VIP version 3.5 of September 15, 1987"] 2 nil nil]) #@66 Set up bindings for C-x 7 and C-z that are useful for VIP users. (defalias 'vip-setup #[nil "\301\302\303#\210\304\305\306\"\207" [ctl-x-map define-key "7" vip-buffer-in-two-windows global-set-key "" vip-change-mode-to-vi] 4 (#$ . 9110)]) #@40 (COUNT BODY) Execute BODY COUNT times. (defalias 'vip-loop '(macro . #[(count body) "\302\300DC\303\304 \305BBBE\207" [count body let while (> count 0) ((setq count (1- count)))] 6 (#$ . 9357)])) #@86 Set mark at LOCATION (point, by default) and push old mark on mark ring. No message. (defalias 'vip-push-mark-silent #[(&optional location) "\303\304!\203# \305\306 !B\211G V\203# \233@\307\211\223\210 S\233\307\241\210\310\n\206) `!\207" [mark-ring mark-ring-max location mark t copy-marker mark-marker nil set-mark] 4 (#$ . 9560)]) #@21 Go to ARG's column. (defalias 'vip-goto-col #[(arg) "\304!\305!\212\306\210\niTV\203 \307\310!\210) \203! `\306\223\210\311 \210\nSu\210 \2051 \312\313\n #*\207" [arg com val vip-com-point vip-p-val vip-getcom nil error "" beginning-of-line vip-execute-com vip-goto-col] 4 (#$ . 9905) "P"]) (defalias 'vip-copy-keymap #[(map) "\204 \301 \207\302!\207" [map make-sparse-keymap copy-keymap] 2]) #@71 Change mode to NEW-MODE---either emacs-mode, vi-mode, or insert-mode. (defalias 'vip-change-mode #[(new-mode) " =\206\217 \306\267\202\213 \307=\203 \310`\n\"\210\311 \210\202( \312 \f\313\312 !\314\315!\210\316!\210\202\213 \n`\317\223\210 \320=\203M \312 \f\313\312 !\202R \313!\314\321!\210\316!\210\322\323\324#\210\322\325\326#\210\322\327 \203v \330\202w \331#\210\322\332\333#\210\202\213 \314\334!\210\316!\210\335 \207" [new-mode vip-current-mode vip-insert-point vip-emacs-local-map mode-line-buffer-identification vip-emacs-mode-line-buffer-identification #s(hash-table size 3 test eq rehash-size 1.5 rehash-threshold 0.8125 purecopy t data (vi-mode 12 insert-mode 52 emacs-mode 131)) insert-mode vip-copy-region-as-kill vip-repeat-insert-command current-local-map vip-copy-keymap vip-change-mode-line "Vi: " use-local-map nil emacs-mode "Insert" define-key "" vip-change-mode-to-vi "" vip-ESC "" help-command delete-backward-char "" vip-delete-backward-word "Emacs:" force-mode-line-update vip-insert-local-map vip-mode-map vip-help-in-insert-mode] 4 (#$ . 10314)]) #@74 If BEG and END do not belong to the same buffer, it copies empty region. (defalias 'vip-copy-region-as-kill #[(beg end) "\3021\n \303 \"0\207\210\303\211\"\207" [beg end (error) copy-region-as-kill] 3 (#$ . 11435)]) #@117 Assuming that the mode line format contains the string "Emacs:", this function replaces the string by "Vi: " etc. (defalias 'vip-change-mode-line #[(string) "\303\230\203\n \202 \304PC\211\207" [string vip-emacs-mode-line-buffer-identification mode-line-buffer-identification "Emacs:" " %17b"] 2 (#$ . 11660)]) #@30 Turn on VIP emulation of VI. (defalias 'vip-mode #[nil "\204? \302\303!\210\304 \210\305c\210eb\210\306\307!\2035 r\310\311 !!q\210db\210\312c\210\313 \210\314p!\210)\315\316!\210\317\320!\210\314p!\210\315\321!\210\322\323 \207" [vip-inhibit-startup-message vip-startup-file switch-to-buffer "VIP Startup Message" erase-buffer "VIP is a Vi emulation package for GNU Emacs. VIP provides most Vi commands\nincluding Ex commands. VIP is however different from Vi in several points.\nYou can get more information on VIP by:\n 1. Typing `M-x info' and selecting menu item \"vip\".\n 2. Typing `C-h k' followed by a key whose description you want.\n 3. Printing VIP manual which can be found as GNU/man/vip.texinfo\n 4. Printing VIP Reference Card which can be found as GNU/etc/vipcard.tex\n\nThis startup message appears whenever you load VIP unless you type `y' now.\nType `n' to quit this window for now.\n" y-or-n-p "Inhibit VIP startup message? " find-file-noselect substitute-in-file-name "\n(setq vip-inhibit-startup-message t)\n" save-buffer kill-buffer message "VIP startup message inhibited." sit-for 2 "" t vip-change-mode-to-vi] 3 (#$ . 11984) nil]) #@25 Change mode to vi mode. (defalias 'vip-change-mode-to-vi #[nil "\300\301!\207" [vip-change-mode vi-mode] 2 (#$ . 13167) nil]) #@29 Change mode to insert mode. (defalias 'vip-change-mode-to-insert #[nil "\300\301!\207" [vip-change-mode insert-mode] 2 (#$ . 13299) nil]) #@28 Change mode to Emacs mode. (defalias 'vip-change-mode-to-emacs #[nil "\300\301!\207" [vip-change-mode emacs-mode] 2 (#$ . 13443) nil]) #@178 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. (defalias 'vip-escape-to-emacs #[(arg &optional events) "\306\211\307 \203 \310\f\" \311!\210\312\216\313\314\306!\211!)\315\n\"\210\306\211+\207" [old-map key com events unread-command-events arg nil current-local-map append use-local-map #[nil "\301!\207" [old-map use-local-map] 2] key-binding read-key-sequence command-execute prefix-arg vip-emacs-local-map] 3 (#$ . 13585) "P"]) #@32 Print CONDITIONS as a message. (defalias 'vip-message-conditions #[(conditions) "@A \204 \303\304\n\"\210\202 \303\305\n\306 !#\210\307 *\207" [conditions msg case message "%s" "%s %s" prin1-to-string ding] 5 (#$ . 14170)]) #@32 Emulate ESC key in Emacs mode. (defalias 'vip-ESC #[(arg) "\301\302\"\207" [arg vip-escape-to-emacs (27)] 3 (#$ . 14406) "P"]) #@32 Emulate C-c key in Emacs mode. (defalias 'vip-ctl-c #[(arg) "\301\302\"\207" [arg vip-escape-to-emacs (3)] 3 (#$ . 14540) "P"]) #@32 Emulate C-x key in Emacs mode. (defalias 'vip-ctl-x #[(arg) "\301\302\"\207" [arg vip-escape-to-emacs (24)] 3 (#$ . 14675) "P"]) #@32 Emulate C-h key in Emacs mode. (defalias 'vip-ctl-h #[(arg) "\301\302\"\207" [arg vip-escape-to-emacs (8)] 3 (#$ . 14811) "P"]) #@135 Compute numeric prefix arg value. Invoked by CHAR. VALUE is the value obtained so far, and COM is the command part obtained so far. (defalias 'vip-prefix-arg-value #[(char value com) "\305Y\203$ \306X\203$ \247\203 \202 \307\310_\305Z\\\311 \211\202 \203. \nB\312U\203? \313\n!\210\311 \211\202/ \fB\211\207" [char value prefix-arg com unread-command-events 48 57 0 10 read-char 85 vip-describe-arg] 4 (#$ . 14947)]) #@33 Vi operator as prefix argument. (defalias 'vip-prefix-arg-com #[(char value com) "\306\203\353 \307U\204H \310U\204H \311U\204H \312U\204H \313U\204H \314U\204H \315U\204H \316U\204H \317U\204H \320U\204H \321U\203\353 \n\203f \316U\204X \321U\203\\ \322\323!\210 \nB\324\211\202 \312U\204r \315U\203} \325 \324\211\202 \316U\203\221 \326\325 \\\325 \324\211\202 \313U\204\235 \314U\203\262 \325 \n U\203\254 \nB\324\211\202 \321U\203\343 \325 \327X\203\307 \330X\204\323 \331X\203\330 \332X\203\330 \202\334 \322\323!\210\325 )\202 \325 \202 )\n:\204 \nB& \333U\203\334&!\210\325 \211\202\367 'B\211'\207\n@\317U\204\n@\320U\203B\n@\nA \nB& \317U\2037\335&!\210\202<\336&!\210\324\211&*\207 \204J\337\202K \324&\n\340\267\202\202\341 \342B!\207\341 \343B!\207\344 \207\341 \345B!\207\341 \313B!\207\341 \314B!\207\341 \312B!\207\341 \315B!\207\322\323!\207" [cont char com reg vip-use-register value t 99 100 121 33 60 62 61 35 114 82 34 error "" nil read-char 128 65 122 49 57 85 vip-describe-arg vip-region vip-Region 1 #s(hash-table size 8 test equal rehash-size 1.5 rehash-threshold 0.8125 purecopy t data ((99 . 99) 341 (100 . 100) 347 (100 . 121) 353 (121 . 121) 356 (60 . 60) 362 (62 . 62) 368 (33 . 33) 374 (61 . 61) 380)) vip-line 67 68 vip-yank-defun 89 prefix-arg unread-command-events] 4 (#$ . 15391)]) (defalias 'vip-describe-arg #[(arg) "\303\211\304\n!\305\n! \204! \204 \306\307!\2021 \306\310\"\2021 \204, \306\311 \"\2021 \306\312 #*\207" [com val arg nil vip-P-val vip-getcom message "Value is nil, and command is nil." "Value is nil, and command is %c." "Value is %d, and command is nil." "Value is %d, and command is %c."] 4]) #@46 Begin numeric argument for the next command. (defalias 'vip-digit-argument #[(arg) "\302\303 :\205\n A#\207" [last-command-event arg vip-prefix-arg-value nil] 4 (#$ . 17134) "P"]) #@41 Accept a motion command as an argument. (defalias 'vip-command-argument #[(arg) "\3041E \305 \204 \306\202$ :\203 @\202$ \247\203! \202$ \307\310! \204, \306\202B :\2036 A\202B \247\203? \306\202B \307\310!#0\207\306\311\312\306\")\207" [last-command-event arg conditions vip-use-register (quit) vip-prefix-arg-com nil error "strange arg" signal quit] 5 (#$ . 17322) "P"]) #@40 Get value part of prefix-argument ARG. (defalias 'vip-p-val #[(arg) "\204 \301\207:\203 @\204 \301\207@\207\207" [arg 1] 1 (#$ . 17713)]) #@40 Get value part of prefix-argument ARG. (defalias 'vip-P-val #[(arg) ":\203 @\207\207" [arg] 1 (#$ . 17865)]) #@38 Get com part of prefix-argument ARG. (defalias 'vip-getcom #[(arg) "\204 \301\207:\203 A\207\301\207" [arg nil] 1 (#$ . 17984)]) #@52 Get com part of prefix-argument ARG and modify it. (defalias 'vip-getCom #[(arg) "\302!\211\303\267\202 \304\202 \305\202 \306\202 )\207" [arg com vip-getcom #s(hash-table size 3 test equal rehash-size 1.5 rehash-threshold 0.8125 purecopy t data (99 10 100 14 121 18)) 67 68 89] 3 (#$ . 18124)]) #@102 Append region to text in register REG. START and END are buffer positions indicating what to append. (defalias 'vip-append-to-register #[(reg start end) "\303\304!\206 \305 \n{P\"\207" [reg start end set-register get-register ""] 5 (#$ . 18434)]) #@112 (M-COM VAL COM) Execute command COM. The list (M-COM VAL COM) is set to vip-d-com for later use by vip-repeat (defalias 'vip-execute-com #[(m-com val com) "\n\203\231\n\306U\203 \307`\"\210\202\231\n\310U\203\"