Function: skeleton-proxy-new
skeleton-proxy-new is an autoloaded and byte-compiled function defined
in skeleton.el.gz.
Signature
(skeleton-proxy-new SKELETON &optional STR ARG)
Documentation
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
M-x edit-abbrevs (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.
Source Code
;; Defined in /usr/src/emacs/lisp/skeleton.el.gz
;;;###autoload
(defun skeleton-proxy-new (skeleton &optional str arg)
"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."
(skeleton-insert (funcall skeleton-filter-function skeleton)
;; Pretend C-x a e passed its prefix arg to us
(if (or arg current-prefix-arg)
(prefix-numeric-value (or arg
current-prefix-arg))
(and skeleton-autowrap
(use-region-p)
;; Deactivate the mark, in case one of the
;; elements of the skeleton is sensitive
;; to such situations (e.g. it is itself a
;; skeleton).
(progn (deactivate-mark)
-1)))
(if (stringp str)
str))
;; Return non-nil to tell expand-abbrev that expansion has happened.
;; Otherwise the no-self-insert is ignored.
t)