%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/local/share/emacs/27.2/lisp/
Upload File :
Create Path :
Current File : //usr/local/share/emacs/27.2/lisp/skeleton.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.

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;


(defvaralias 'skeleton-transformation 'skeleton-transformation-function)
#@232 If non-nil, function applied to literal strings before they are inserted.
It should take strings and characters and return them transformed, or nil
which means no transformation.
Typical examples might be `upcase' or `capitalize'.
(defvar skeleton-transformation-function 'identity (#$ . 482))
(put 'skeleton-transformation-function 'variable-interactive "aTransformation function: ")
#@309 Controls wrapping behavior of functions created with `define-skeleton'.
When the region is visible (due to `transient-mark-mode' or marking a region
with the mouse) and this is non-nil and the function was called without an
explicit ARG, then the ARG defaults to -1, i.e. wrapping around the visible
region.
(defvar skeleton-autowrap t (#$ . 874))
(make-obsolete-variable 'skeleton-autowrap nil "24.5")
#@71 If non-nil, make sure that the skeleton inserted ends with a newline.
(defvar skeleton-end-newline t (#$ . 1283))
#@132 Hook called at end of skeleton but before going to point of interest.
The variables `v1' and `v2' are still set when calling this.
(defvar skeleton-end-hook nil (#$ . 1404))
(defvaralias 'skeleton-filter 'skeleton-filter-function)
#@71 Function for transforming a skeleton proxy's aliases' variable value.
(defvar skeleton-filter-function 'identity (#$ . 1641))
#@68 When non-nil untabifies when deleting backwards with element -ARG.
(defvar skeleton-untabify nil (#$ . 1773))
#@107 When non-nil, indent rigidly under current line for element `\n'.
Else use mode's `indent-line-function'.
(defvar skeleton-newline-indent-rigidly nil (#$ . 1890))
#@240 A buffer-local varlist (see `let') of mode specific skeleton elements.
These variables are bound while interpreting a skeleton.  Their value may
in turn be any valid skeleton element if they are themselves to be used as
skeleton elements.
(defvar skeleton-further-elements nil (#$ . 2060))
(make-variable-buffer-local 'skeleton-further-elements)
#@58 Replacement for %s in prompts of recursive subskeletons.
(defvar skeleton-subprompt (substitute-command-keys "RET, \\<minibuffer-local-map>\\[abort-recursive-edit] or \\[help-command]") (#$ . 2412))
#@65 If non-nil `define-skeleton' will override previous definition.
(defvar skeleton-debug nil (#$ . 2617))
#@206 List of positions marked with @, after skeleton insertion.
The list describes the most recent skeleton insertion, and its elements
are integer buffer positions in the reverse order of the insertion order.
(defvar skeleton-positions nil (#$ . 2728))
(put 'skeleton-edebug-spec 'edebug-form-spec '([&or null stringp (stringp &rest stringp) [[&not atom] sexp]] &rest &or "n" "_" "-" ">" "@" "&" "!" "|" "resume:" ("quote" def-form) skeleton-edebug-spec def-form))
#@156 Define a user-configurable COMMAND that enters a statement skeleton.
DOCUMENTATION is that of the command.
SKELETON is as defined under `skeleton-insert'.
(defalias 'define-skeleton '(macro . #[(command documentation &rest skeleton) "\203	\nL\210\304\305\306	D\307BB\310	\311\312\313\"\203\314\202 \315\316Q\317\320\306\nD\321BB\257E\207" [skeleton-debug command skeleton documentation progn put quote ('no-self-insert t) defun (&optional str arg) string-match "\n\\'" "" "\n" "\nThis is a skeleton command (see `skeleton-insert').\nNormally the skeleton text is inserted at point, with nothing \"inside\".\nIf there is a highlighted region, the skeleton text is wrapped\naround the region text.\n\nA prefix argument ARG says to wrap the skeleton around the next ARG words.\nA prefix argument of -1 says to wrap around region, even if not highlighted.\nA prefix argument of zero says to wrap around zero words---that is, nothing.\nThis is a way of overriding the use of a highlighted region." (interactive "*P\nP") skeleton-proxy-new (str arg)] 10 (#$ . 3196)]))
(byte-code "\300\301\302\303#\304\301\305\306#\207" [function-put define-skeleton doc-string-elt 2 put edebug-form-spec (&define name stringp skeleton-edebug-spec)] 5)
#@493 Insert SKELETON.
Prefix ARG allows wrapping around words or regions (see `skeleton-insert').
If no ARG was given, but the region is visible, ARG defaults to -1 depending
on `skeleton-autowrap'.  An ARG of  M-0  will prevent this just for once.
This command can also be an abbrev expansion (3rd and 4th columns in
\[edit-abbrevs]  buffer: ""  command-name).

Optional second argument STR may also be a string which will be the value
of `str' whereas the skeleton's interactor is then ignored.
(defalias 'skeleton-proxy-new #[(skeleton &optional str arg) "\306	!\n\204\f\203\307\n\206!\202.\f\205.
\310=\204*\f\205.
\205.\311 \210\312;\2056#\210\313\207" [skeleton-filter-function skeleton arg current-prefix-arg skeleton-autowrap last-command skeleton-insert prefix-numeric-value mouse-drag-region deactivate-mark -1 t transient-mark-mode mark-active str] 4 (#$ . 4443)])
#@3445 Insert the complex statement skeleton SKELETON describes very concisely.

With optional second argument REGIONS, wrap first interesting point
(`_') in skeleton around next REGIONS words, if REGIONS is positive.
If REGIONS is negative, wrap REGIONS preceding interregions into first
REGIONS interesting positions (successive `_'s) in skeleton.

An interregion is the stretch of text between two contiguous marked
points.  If you marked A B C [] (where [] is the cursor) in
alphabetical order, the 3 interregions are simply the last 3 regions.
But if you marked B A [] C, the interregions are B-A, A-[], []-C.

The optional third argument STR, if specified, is the value for the
variable `str' within the skeleton.  When this is non-nil, the
interactor gets ignored, and this should be a valid skeleton element.

When done with skeleton, but before going back to `_'-point, add
a newline (unless `skeleton-end-newline' is nil) and run the hook
`skeleton-end-hook'.

SKELETON is made up as (INTERACTOR ELEMENT ...).  INTERACTOR may be nil if
not needed, a prompt-string or an expression for complex read functions.

If ELEMENT is a string or a character it gets inserted (see also
`skeleton-transformation-function').  Other possibilities are:

	\n	go to next line and indent according to mode, unless
                this is the first/last element of a skeleton and point
                is at bol/eol
	_	interesting point, interregion here
	-	interesting point, no interregion interaction, overrides
		interesting point set by _
	>	indent line (or interregion if > _) according to major mode
	@	add position to `skeleton-positions'
	&	do next ELEMENT if previous moved point
	|	do next ELEMENT if previous didn't move point
	-NUM	delete NUM preceding characters (see `skeleton-untabify')
	resume:	skipped, continue here if quit is signaled
	nil	skipped

After termination, point will be positioned at the last occurrence of -
or at the first occurrence of _ or at the end of the inserted text.

Note that \n as the last element of the skeleton only inserts a
newline if not at eol.  If you want to unconditionally insert a newline
at the end of the skeleton, use "\n" instead.  Likewise with \n
as the first element when at bol.

Further elements can be defined via `skeleton-further-elements'.
ELEMENT may itself be a SKELETON with an INTERACTOR.  The user is prompted
repeatedly for different inputs.  The SKELETON is processed as often as
the user enters a non-empty string.  \[keyboard-quit] terminates skeleton insertion, but
continues after `resume:' and positions at `_' if any.  If INTERACTOR in
such a subskeleton is a prompt-string which contains a ".. %s .." it is
formatted with `skeleton-subprompt'.  Such an INTERACTOR may also be a list
of strings with the subskeleton being repeated once for each string.

Quoted Lisp expressions are evaluated for their side-effects.
Other Lisp expressions are evaluated and the value treated as above.
Note that expressions may not return t since this implies an
endless loop.  Modes can define other symbols by locally setting them
to any valid skeleton element.  The following local variables are
available:

	str	first time: read a string according to INTERACTOR
		then: insert previously read string once more
	help	help-form during interaction with the user or nil
	input	initial input (string or cons with index) while reading str
	v1, v2	local variables for memorizing anything you want
(defalias 'skeleton-insert #[(skeleton &optional regions str) "\211\203X	\306V\203\307`\310\"\212\311	!\210\312 )D\202J	[\313 \nB\307`\310\"C\f\203E	\306V\203E\307\f\211A\242\310\"B	S\202*\314\315\"*\211\203X	@b\203X	A`\316\211\211\211\211\211\211\316\317\216\320\321 \"!\320\322 \"\"\323#\316$!\203\246!\211A!\242\324\"\211A\"\242DD$B$\202\210\325\326$\327\324#DDE!.\207" [regions skeleton-regions mark-ring l2 l1 v2 0 copy-marker t forward-word-strictly point-marker mark-marker sort < nil #[nil "l\204\203\303 \210\304\305!\210\306\307!\210\310 p=\203'\311	!\204'	b\210\312\307!\210\n\205-\nb\207" [skeleton-end-newline beg skeleton-point newline-and-indent run-hooks skeleton-end-hook sit-for 0 window-buffer pos-visible-in-window-p recenter] 2] mapcar car #[(x) "\301A@!\207" [x eval] 2] #[nil "\302	\"\207" [skeleton str skeleton-internal-list] 3] quote eval let funcall v1 input help resume: skeleton-point skeleton-modified beg skeleton-positions skeleton-further-elements #1=#:syms #2=#:vals #3=#:body #4=#:binds] 9 (#$ . 5342)])
#@629 Function for reading a string from the minibuffer within skeletons.

PROMPT must be a string or a function that evaluates to a string.
It may also be a form that evaluates to a string (deprecated).
It may contain a `%s' which will be replaced by `skeleton-subprompt'.
If non-nil second arg INITIAL-INPUT or variable `input' is a string or
cons with index to insert before reading.  If third arg RECURSIVE is non-nil
i.e. we are handling the iterator of a subskeleton, returns empty string if
user didn't modify input.
While reading, the value of `minibuffer-help-form' is variable `help' if that
is non-nil or a default string.
(defalias 'skeleton-read #[(prompt &optional initial-input recursive) "\306\307!\203\307J\206\203\310\202\311l	\204 \212\312c\210)\313\216;\2038\314\315\f\"
\2062\316J\211\"\202F\317!\203C \202F\320!+\203h\203c\321\230\204c
\232\204c
\242\232\203h\322\323\324\"\207\207" [recursive eolp minibuffer-help-form prompt skeleton-subprompt initial-input boundp help "As long as you provide input you will insert another subskeleton.\n\nIf you enter the empty string, the loop inserting subskeletons is\nleft, and the current one is removed as far as it has been entered.\n\nIf you quit, the current subskeleton is removed as far as it has been\nentered.  No more of the skeleton will be inserted, except maybe for a\nsyntactically necessary termination." "You are inserting a skeleton.  Standard text gets inserted into the buffer\nautomatically, and you are prompted to fill in the variable parts." "\n" #[nil "\206\301\302!\207" [eolp delete-char 1] 2] read-string format input functionp eval "" signal quit t] 4 (#$ . 9898)])
(defalias 'skeleton-internal-list #[(skeleton-il &optional str recursive) "\306 i\307 {\310\f\204\311\304\312\313
@D\310FE
A@\314=\203<\204<\212\315\310x\210n)\203<\310\316
AABB`=`
A\211\203\223\3171Y\320
@\310#0\202\217\211A\321=\203m\322\323
>\211\202\216\310\210`|\210\nc\210\324	!\210A\203\212\310\211\211\202\216\325\322\321\")\210\202<,\322=\203\240\325\322\321\"\207\207" [start column line opoint str skeleton-il line-beginning-position line-end-position nil setq skeleton-read quote n " 	" > (quit) skeleton-internal-1 recursive quit resume: move-to-column signal skeleton-modified] 7])
(defalias 'skeleton-internal-1 #[(element &optional literal recursive) "\250\204\n;\203/\250\203\"\306W\203\"	\203\307[!\207\310!\207\n\204,!\202-c\207\311=\204K\312=\203\304\fA@\311=\203\304\f\211A\242\203\304\312=\205R`\203~\fA@\313=\203~l\204g\314c\210
\203s\212
b\210\315 \210)\316\317 @\320#\202\302\fA\204\225\204\225l\203\225
\205\302\315 \202\302\203\264`\314c\210\212b\210
\203\254\315 \210\321 )j)\202\302
\203\275\322 \202\302\314c\210\315 )\207\323\267\2021\203\340\fA@\313=\203\340\316\317 @\320#\207\315 \207\203\211A\242b\210i\321 X\205\f\fA@\311=\205\f\306\207\206\f`\211\207`\211\207\205\212\f\211A\242\207?\205\212\f\211A\242\207`B\211\207\242\324=\203>\325A@!\207:\203}@;\204O@<\203}@\2429\203g\326\320\327#\205\212@\205|\202V\207@\211\205|\326\n@\"\210\nA\211\204n\320\207?\206\212\330\325!\327#\207" [element skeleton-untabify literal skeleton-transformation-function skeleton-il pos 0 backward-delete-char-untabify delete-char n > _ "\n" indent-according-to-mode indent-region line-beginning-position nil current-indentation reindent-then-newline-and-indent #s(hash-table size 6 test eq rehash-size 1.5 rehash-threshold 0.8125 purecopy t data (> 202 _ 227 - 269 & 274 | 285 @ 297)) quote eval skeleton-internal-list t skeleton-internal-1 skeleton-regions recursive skeleton-newline-indent-rigidly pt skeleton-point skeleton-modified skeleton-positions] 5])
#@183 If this is nil pairing is turned off, no matter what else is set.
Otherwise modes with `skeleton-pair-insert-maybe' on some keys
will attempt to insert pairs of matching characters.
(defvar skeleton-pair nil (#$ . 13736))
#@72 If this is nil, paired insertion is inhibited before or inside a word.
(defvar skeleton-pair-on-word nil (#$ . 13964))
#@149 Attempt paired insertion if this function returns nil, before inserting.
This allows for context-sensitive checking whether pairing is appropriate.
(defvar skeleton-pair-filter-function #[nil "\300\207" [nil] 1] (#$ . 14090))
#@293 An override alist of pairing partners matched against `last-command-event'.
Each alist element, which looks like (ELEMENT ...), is passed to
`skeleton-insert' with no interactor.  Variable `str' does nothing.

Elements might be (?\=` ?\=` _ "\='\='"), (?\( ?  _ " )") or (?{ \n > _ \n ?} >).
(defvar skeleton-pair-alist nil (#$ . 14323))
(defvar skeleton-pair-default-alist '((40 _ 41) (41) (91 _ 93) (93) (123 _ 125) (125) (60 _ 62) (62) (171 _ 187) (187) (96 _ 39)))
#@657 Insert the character you type ARG times.

With no ARG, if `skeleton-pair' is non-nil, pairing can occur.  If the region
is visible the pair is wrapped around it depending on `skeleton-autowrap'.
Else, if `skeleton-pair-on-word' is non-nil or we are not before or inside a
word, and if `skeleton-pair-filter-function' returns nil, pairing is performed.
Pairing is also prohibited if we are right after a quoting character
such as backslash.

If a match is found in `skeleton-pair-alist', that is inserted, else
the defaults are used.  These are (), [], {}, <> and (grave
accent, apostrophe) for the paired ones, and the same character
twice for the others.
(defalias 'skeleton-pair-insert-maybe #[(arg) "\204	\204\306\307!!\207\n\205\310=\206\f\205
\211\236\2068\236\2068\311Ehz\312>\204\\\204d\204\\\204V\313\314!\204\\ \203d\306\307!!\202t\315\316\315B\205r\317\")+\207" [arg skeleton-pair skeleton-autowrap last-command transient-mark-mode mark-active self-insert-command prefix-numeric-value mouse-drag-region _ (92 47) looking-at "\\w" nil skeleton-insert -1 mark last-command-event char skeleton-pair-alist skeleton-pair-default-alist skeleton overwrite-mode skeleton-pair-on-word skeleton-pair-filter-function skeleton-end-newline] 4 (#$ . 14799) "*P"])
(provide 'skeleton)

Zerion Mini Shell 1.0