Server IP : 111.118.215.189 / Your IP : 3.142.242.51 Web Server : Apache System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : a1673wkz ( 2475) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /usr/share/emacs/24.3/lisp/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:06:17 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/expand.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. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (byte-code "\300\301\302\303\304\305%\210\306\307\302\310\311\312\304\301&\210\306\313\302\314\311\312\304\301&\210\306\315\302\316\311\312\304\301&\210\317\320\321\322#\207" [custom-declare-group expand nil "Make abbreviations more usable." :group abbrev custom-declare-variable expand-load-hook "Hooks run when `expand.el' is loaded." :type hook expand-expand-hook "Hooks run when an abbrev made by `expand-add-abbrevs' is expanded." expand-jump-hook "Hooks run by `expand-jump-to-previous-slot' and `expand-jump-to-next-slot'." put expand-c-for-skeleton no-self-insert t] 8) #@522 For loop skeleton This is a skeleton command (see `skeleton-insert'). Normally the skeleton text is inserted at point, with nothing "inside". If there is a highlighted region, the skeleton text is wrapped around the region text. A prefix argument ARG says to wrap the skeleton around the next ARG words. A prefix argument of -1 says to wrap around region, even if not highlighted. A prefix argument of zero says to wrap around zero words---that is, nothing. This is a way of overriding the use of a highlighted region. (defalias 'expand-c-for-skeleton #[(&optional str arg) "\302\303 #\207" [str arg skeleton-proxy-new ("Loop var: " "for(" str _ @ "=0; " str @ "; " str @ ") {" n @ _ n "}" > n)] 4 (#$ . 1131) "*P\nP"]) #@51 Expansions for C mode. See `expand-add-abbrevs'. (defconst expand-c-sample-expand-list '(("if" "if () {\n \n} else {\n \n}" (5 10 21)) ("ifn" "if () {}" (5 8)) ("uns" "unsigned ") ("for" expand-c-for-skeleton) ("switch" "switch () {\n\n}" (9 13)) ("case" "case :\n\nbreak;\n" (6 8 16)) ("do" "do {\n\n} while ();" (6 16)) ("while" "while () {\n\n}" (8 12)) ("default" "default:\n\nbreak;" 10) ("main" "int\nmain(int argc, char * argv[])\n{\n\n}\n" 37)) (#$ . 1860)) #@54 Expansions for Lisp mode. See `expand-add-abbrevs'. (defconst expand-sample-lisp-mode-expand-list (byte-code "\300\301\302\303\304\305\306\307\257E\310\311\303\312\313\314\315\257E\316\317\303\320\321\322FE\323\324\325\326\305\327FE\330\331\303\320\332EE\333\334\335\303\321EE\336\337\302\320DE\340\341\321CE\342\343\325\312DE\257 \207" ["defu" "(defun ()\n \"\"\n (interactive)\n (let* (\n )\n \n ))" 8 11 16 32 43 59 "defs" "(defsubst ()\n \"\"\n (interactive)\n )" 14 19 23 39 "defm" "(defmacro ()\n \"\"\n `( \n ))" 13 18 25 "defa" "(defadvice (around act)\n \"\"\n \n )" 12 22 36 "defc" "(defconst nil\n \"\")\n" 20 "defv" "(defvar nil\n \"\")\n" 9 "let" "(let* (\n)\n " "sav" "(save-excursion\n \n)" "aut" "(autoload ' \"\" t t)\n"] 12) (#$ . 2333)) #@54 Expansions for Perl mode. See `expand-add-abbrevs'. (defconst expand-sample-perl-mode-expand-list (byte-code "\300\301\302\303\304\"\305\306\307\310\211\311\310\211\312\310\305\313\314\315\316\260\317\320\321\322\323\324\257E\325\326\327\330DE\331\332\333\334DE\335\336\337\330DE\340\341\333CE\342\343\337CE\344\345\337\346\347EE\350\351\327E\352\353\333CE\354\355\327CE\356\357\327E\360\361\346E\362\363\346\364DE\365\366\327\333DE\367\370\327\364DE\371\372\346CE\257\207" ["sub" "#" make-string 70 45 "\n" "sub {\n" " # DESCRIPTION\n" " # \n" " # INPUT\n" " # RETURN\n" " local( $f ) = \"$lib.\";\n" " local() = @_;\n" " \n" " \n}\n" 77 88 120 146 159 176 "for" "for ( )\n{\n\n}" 7 12 "whi" "while ( )\n{\n\n}" 9 15 "iff" "if ( )\n{\n\n}" 6 "loc" "local( $ );" "my" "my( $ );" "ope" "open(,\"\") || die \"$f: Can't open [$]\";" 8 36 "clo" "close ;" "def" "defined " "und" "undef ;" "pr" "print " "pf" "printf " "gre" "grep( //, );" 11 "pus" "push( , );" "joi" "join( '', );" "rtu" "return ;"] 18) (#$ . 3144)) #@831 Add a list of abbreviations to abbrev table TABLE. ABBREVS is a list of abbrev definitions; each abbrev description entry has the form (ABBREV EXPANSION ARG). ABBREV is the abbreviation to replace. EXPANSION is the replacement string or a function which will make the expansion. For example, you could use the DMacros or skeleton packages to generate such functions. ARG is an optional argument which can be a number or a list of numbers. If ARG is a number, point is placed ARG chars from the beginning of the expanded text. If ARG is a list of numbers, point is placed according to the first member of the list, but you can visit the other specified positions cyclically with the functions `expand-jump-to-previous-slot' and `expand-jump-to-next-slot'. If ARG is omitted, point is placed at the end of the expanded text. (defalias 'expand-add-abbrevs #[(table abbrevs) "\204 \207\302 @@@A@\303@8$\210\304 A\"\207" [abbrevs table expand-add-abbrev 2 expand-add-abbrevs] 6 (#$ . 4199)]) #@48 Temporary variable used by the Expand package. (defvar expand-list nil (#$ . 5206)) #@92 If non-nil, stores a vector containing markers to positions defined by the last expansion. (defvar expand-pos nil (#$ . 5296)) (make-variable-buffer-local 'expand-pos) #@48 Index of the last marker used in `expand-pos'. (defvar expand-index 0 (#$ . 5470)) (make-variable-buffer-local 'expand-index) #@29 End of the expanded region. (defvar expand-point nil (#$ . 5602)) (make-variable-buffer-local 'expand-point) #@79 Add one abbreviation and provide the hook to move to the specified positions. (defalias 'expand-add-abbrev #[(table abbrev expansion arg) "9\205 \306!?\205 \n\203, \203, \n<\203$ G\n@SZ\202- G\nSZ\202- \307\310\f \311 \n<\205C \n??\205C G\nB9\205O \306!\205O $\312$*\207" [expansion string-exp arg position table abbrev fboundp 0 define-abbrev vector expand-abbrev-hook] 9 (#$ . 5717)]) (put 'expand-abbrev-hook 'no-self-insert t) #@128 Abbrev hook used to do the expansion job of expand abbrevs. See `expand-add-abbrevs'. Value is non-nil if expansion was done. (defalias 'expand-abbrev-hook #[nil "l\205D \305 ?\205D `\306hz\307=\205C \310 \205C \2031 \311\n!\203( \312 !\210\313 \306#\210\202>