;ELC   
;;; compiled by rms@psilocin.gnu.ai.mit.edu on Tue Jun 25 18:43:19 1996
;;; from file /home/fsf/rms/e19/lisp/skeleton.el
;;; emacs version 19.31.3.
;;; bytecomp version FSF 2.10
;;; optimization is on.
;;; this file uses opcodes which do not exist in Emacs 18.

(if (and (boundp 'emacs-version)
	 (or (and (boundp 'epoch::version) epoch::version)
	     (string-lessp emacs-version "19.29")))
    (error "`skeleton.el' was compiled for Emacs 19.29 or later"))


#@233 *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 nil (#$ . -476))
(put (quote skeleton-transformation) (quote variable-interactive) "aTransformation function: ")
#@455 Controls wrapping behaviour 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.

We will probably delete this variable in a future Emacs version
unless we get a substantial number of complaints about the auto-wrap
feature.
(defvar skeleton-autowrap t (#$ . 860))
#@191 Hook called at end of skeleton but before going to point of interest.
By default this moves out anything following to next line.
The variables `v1' and `v2' are still set when calling this.
(defvar skeleton-end-hook #[nil "l† À ‡" [newline-and-indent] 1] (#$ . 1361))
#@71 Function for transforming a skeleton proxy's aliases' variable value.
(defvar skeleton-filter (quote identity) (#$ . 1636))
#@70 When non-`nil' untabifies when deleting backwards with element -ARG.
(defvar skeleton-untabify t (#$ . 1766))
#@109 When non-`nil', indent rigidly under current line for element `\n'.
Else use mode's `indent-line-function'.
(defvar skeleton-newline-indent-rigidly nil (#$ . 1883))
#@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 (#$ . 2055))
(make-variable-buffer-local (quote skeleton-further-elements))
#@59 *Replacement for %s in prompts of recursive subskeletons.
(defvar skeleton-subprompt (substitute-command-keys "RET, \\<minibuffer-local-map>\\[abort-recursive-edit] or \\[help-command]") (#$ . -2414))
#@69 Variable used to delete the character that led to abbrev expansion.
(defvar skeleton-abbrev-cleanup nil (#$ . 2621))
#@66 *If non-nil `define-skeleton' will override previous definition.
(defvar skeleton-debug nil (#$ . -2744))
(byte-code "À	BÂ	BÃ	BÄ	BÀ‡" [skeleton current-load-list skeleton-modified skeleton-point skeleton-regions] 2)
#@277 Define a user-configurable COMMAND that enters a statement skeleton.
DOCUMENTATION is that of the command, while the variable of the same name,
which contains the skeleton, has a documentation to that effect.
INTERACTOR and ELEMENT ... are as defined under `skeleton-insert'.
(defalias 'define-skeleton '(macro . #[(command documentation &rest skeleton) "ƒ 	\nLˆÃÄ	ÅÇÈ\"ƒ É‚ ÊÊËRÌÍÎ\nDÏBB¯D‡" [skeleton-debug command skeleton progn defun (&optional str arg) documentation string-match "\n\\>" "" "\n" "This 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 zero says to wrap around zero words---that is, nothing.\nThis is a way of overiding the use of a highlighted region." (interactive "*P\nP") skeleton-proxy-new quote (str arg)] 9 (#$ . 2971)]))
#@576 Insert skeleton defined by variable of same name (see `skeleton-insert').
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).

When called as a function, optional first 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) "	!‰„ \nÃ>…r ÄÅ\"‰‡Ç	\nÈ=†\" \nÉ=‰\n?…V „3 \fƒ? Í†; \f!‚V …V Ð=„U …V …V Ó;…^ #ˆ\n…r `‰\n…r ÕÖÊ×Ø$‡" [skeleton-filter skeleton this-command (self-insert-command skeleton-pair-insert-maybe expand-abbrev) primitive-undo 1 buffer-undo-list skeleton-insert self-insert-command skeleton-pair-insert-maybe skeleton-abbrev-cleanup arg current-prefix-arg prefix-numeric-value skeleton-autowrap last-command mouse-drag-region transient-mark-mode mark-active -1 str add-hook post-command-hook nil t] 6 (#$ . 3998) "*P\nP"])
#@576 Insert skeleton defined by variable of same name (see `skeleton-insert').
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).

When called as a function, optional first 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 #[(&optional str arg) "ÀÁ!A@‰Ã=ƒ ÀÄ!A@‚! \nÅ=ƒ! ÀÆ!A@\nJ!‰„= É>…š ÊÁ\"‰‚š Ì\nÍ=†J Î=‰?…~ „[ ƒg Ò†c !‚~ …~ Õ=„} …~ …~ Ø;…† #ˆ…š `‰…š ÚÛÏÜÝ$)‡" [backtrace-frame 1 function nth 5 byte-code 2 skeleton-filter this-command (self-insert-command skeleton-pair-insert-maybe expand-abbrev) primitive-undo buffer-undo-list skeleton-insert self-insert-command skeleton-pair-insert-maybe skeleton-abbrev-cleanup arg current-prefix-arg prefix-numeric-value skeleton-autowrap last-command mouse-drag-region transient-mark-mode mark-active -1 str add-hook post-command-hook nil t] 6 (#$ . 5182) "*P\nP"])
#@68 Value for `post-command-hook' to remove char that expanded abbrev.
(defalias 'skeleton-abbrev-cleanup #[(&rest list) "¨… `|ˆÁÂÃÀÄ#‡" [skeleton-abbrev-cleanup nil remove-hook post-command-hook t] 4 (#$ . 6421)])
#@2777 Insert the complex statement skeleton SKELETON describes very concisely.

With optional third 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.

Optional fourth STR 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.

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').  Other possibilities are:

	\n	go to next line and indent according to mode
	_	interesting point, interregion here, point after termination
	>	indent line (or interregion if > _) according to major mode
	&	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

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 a list of
strings with the subskeleton being repeated once for each string.

Quoted Lisp expressions are evaluated evaluated for their side-effect.
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

When done with skeleton, but before going back to `_'-point call
`skeleton-end-hook' if that is non-`nil'.
(defalias 'skeleton-insert #[(skeleton &optional skeleton-regions str) "ƒS ÁVƒ Â ŠvˆÂ )D‚E [Ã \fBÂ C‰ƒ@ ÁVƒ@ @BSA‰„( ÇÈ\"*‰ƒS @bƒS A`É‰‰‰‰‰‰\n\fÒŽÓÔÖBB!.	‡" [skeleton-regions 0 point-marker mark-marker mark-ring l2 l1 sort < nil v2 v1 input help resume: skeleton-point skeleton-modified beg ((byte-code "ÀÁ!ˆÂÃ!ˆÄ!„ bˆÆÃ!ˆƒ bˆÀ‡" [run-hooks skeleton-end-hook sit-for 0 pos-visible-in-window-p beg recenter skeleton-point] 2)) eval let skeleton-further-elements ((skeleton-internal-list skeleton str))] 9 (#$ . 6644)])
#@509 Function for reading a string from the minibuffer within skeletons.
PROMPT 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 #[(str &optional initial-input recursive) "ÀÁ!ƒ ÁJ† \nƒ Ã‚ Äl„  ÇÈ!ˆÉŽ\n;ƒ= ËÌ\n\"†6 ÏJ‰\"‚A Ð\n!\n+\nƒj \nƒe \nÑ˜„e \nš„e \n¢šƒj ÒÓÔ\"‡\n‡" [boundp help recursive "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." eolp minibuffer-help-form open-line 1 ((byte-code "„ ÁÂ!ˆÁ‡" [eolp delete-char 1] 2)) str read-string format skeleton-subprompt initial-input input eval "" signal quit t] 4 (#$ . 9994)])
(defalias 'skeleton-internal-list #[(skeleton &optional str recursive) "ŠÀyˆ`)i	ŠÃˆ`){Ã„( ÇÆÈÉ\n@DÃFE`=\f`\nA‰\nƒ@ ÍÎÏˆ‚( ,Í=ƒM ÐÍË\"‡‡" [0 start column nil line opoint str setq skeleton-read quote skeleton recursive skeleton-modified quit (byte-code "À	@!‡" [skeleton-internal-1 skeleton] 2) ((quit (byte-code "AÁ=ƒ ÀÂ>‚1 Äˆ`|ˆcˆÇ!ˆAƒ, ÄÄ‚1 ÉÀÁ\"ˆÄ‡" [quit recursive resume: skeleton nil start line move-to-column column signal] 3))) signal] 6])
(defalias 'skeleton-internal-1 #[(element &optional literal) "À	!ƒ4 	¨ƒ 	ÂWƒ ƒ Ä	[!‡Å	[!‡Æƒ1 „1 	!‚2 	!‡	É=ƒi \nƒW A@Ì=ƒW l„O Í ˆÎ`\n@Ï#‡ƒc Ñ Í ˆj‡Í ˆÒ ‡	Ó=ƒˆ \nƒ… A@Ì=ƒ… Î`\n@Ï#‡Ò ‡	Ì=ƒº \nƒ° \n@bˆ\nA\niÑ X…¹ A@É=…¹ Â‡†¹ `‰‡	Õ=ƒÌ ….A‰‡	×=ƒÞ †.A‰‡	¢Ø=ƒë Ù	A@!‡	¢;„÷ 	¢:ƒ#	@¢9ƒ	Ú	ÏÛ#…\"‚þ 	@‰…\"Ú	@\"ˆA‰„Ï‡	?†.ÜÙ	!Û\"‡" [char-or-string-p element 0 skeleton-untabify backward-delete-char-untabify delete-backward-char insert-before-markers skeleton-transformation literal n skeleton-regions skeleton _ newline indent-region nil skeleton-newline-indent-rigidly current-indentation indent-according-to-mode > skeleton-point & skeleton-modified | quote eval skeleton-internal-list t skeleton-internal-1] 5])
#@184 *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 (#$ . -12694))
#@73 *If this is nil, paired insertion is inhibited before or inside a word.
(defvar skeleton-pair-on-word nil (#$ . -12924))
#@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 #[nil "À‡" [nil] 1] (#$ . 13052))
#@284 An override alist of pairing partners matched against `last-command-char'.
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 (#$ . 13270))
#@541 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' returns nil, pairing is performed.

If a match is found in `skeleton-pair-alist', that is inserted, else
the defaults are used.  These are (), [], {}, <> and `' for the
symmetrical ones, and the same character twice for the others.
(defalias 'skeleton-pair-insert-maybe #[(arg) "… 	Â=† … \fÅ„9 	ƒ9 „B \n„9 „3 ÌÍ!„9  ƒB ÏÐ!!‚m ÑÓ\"†m ÕÅž†e ×ž†e ØEB…l Ù\"*‡" [skeleton-autowrap last-command mouse-drag-region transient-mark-mode mark-active nil skeleton-end-hook mark arg skeleton-pair overwrite-mode skeleton-pair-on-word looking-at "\\w" skeleton-pair-filter self-insert-command prefix-numeric-value logand last-command-char 255 skeleton-abbrev-cleanup skeleton-insert skeleton-pair-alist ((40 _ 41) (91 _ 93) (123 _ 125) (60 _ 62) (96 _ 39)) _ -1] 5 (#$ . 13606) "*P"])
(provide (quote skeleton))
