Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
157b7809
Commit
157b7809
authored
Dec 28, 1996
by
Richard M. Stallman
Browse files
(skeleton-positions): Renamed from skeleton-marks.
parent
a6dccb51
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
lisp/skeleton.el
lisp/skeleton.el
+7
-7
No files found.
lisp/skeleton.el
View file @
157b7809
...
@@ -100,10 +100,10 @@ skeleton elements.")
...
@@ -100,10 +100,10 @@ skeleton elements.")
(
defvar
skeleton-debug
nil
(
defvar
skeleton-debug
nil
"*If non-nil `define-skeleton' will override previous definition."
)
"*If non-nil `define-skeleton' will override previous definition."
)
(
defvar
skeleton-
mark
s
nil
(
defvar
skeleton-
position
s
nil
"
Variable used to keep the l
ist of positions marked with @ after
"
L
ist of positions marked with @
,
after
skeleton insertion.
skeleton insertion. The list is in the reverse order of the insertion
The list describes the most recent skeleton insertion, and its elements
order. This list is reseted before skeleton
insertion."
)
are integer buffer positions in the reverse order of the
insertion
order
."
)
;; reduce the number of compiler warnings
;; reduce the number of compiler warnings
(
defvar
skeleton
)
(
defvar
skeleton
)
...
@@ -255,7 +255,7 @@ If ELEMENT is a string or a character it gets inserted (see also
...
@@ -255,7 +255,7 @@ If ELEMENT is a string or a character it gets inserted (see also
\\n go to next line and indent according to mode
\\n go to next line and indent according to mode
_ interesting point, interregion here, point after termination
_ interesting point, interregion here, point after termination
> indent line (or interregion if > _) according to major mode
> indent line (or interregion if > _) according to major mode
@ add position to `skeleton-
mark
s'
@ add position to `skeleton-
position
s'
& do next ELEMENT if previous moved point
& do next ELEMENT if previous moved point
| do next ELEMENT if previous didn't move point
| do next ELEMENT if previous didn't move point
-num delete num preceding characters (see `skeleton-untabify')
-num delete num preceding characters (see `skeleton-untabify')
...
@@ -305,7 +305,7 @@ When done with skeleton, but before going back to `_'-point call
...
@@ -305,7 +305,7 @@ When done with skeleton, but before going back to `_'-point call
(
setq
skeleton-regions
(
cdr
skeleton-regions
)))
(
setq
skeleton-regions
(
cdr
skeleton-regions
)))
(
let
((
beg
(
point
))
(
let
((
beg
(
point
))
skeleton-modified
skeleton-point
resume:
help
input
v1
v2
)
skeleton-modified
skeleton-point
resume:
help
input
v1
v2
)
(
setq
skeleton-
mark
s
nil
)
(
setq
skeleton-
position
s
nil
)
(
unwind-protect
(
unwind-protect
(
eval
`
(
let
,
skeleton-further-elements
(
eval
`
(
let
,
skeleton-further-elements
(
skeleton-internal-list
skeleton
str
)))
(
skeleton-internal-list
skeleton
str
)))
...
@@ -439,7 +439,7 @@ automatically, and you are prompted to fill in the variable parts.")))
...
@@ -439,7 +439,7 @@ automatically, and you are prompted to fill in the variable parts.")))
(or skeleton-modified
(or skeleton-modified
(setq skeleton (cdr skeleton))))
(setq skeleton (cdr skeleton))))
((eq element '@)
((eq element '@)
(setq skeleton-
mark
s (cons (point) skeleton-
mark
s)))
(setq skeleton-
position
s (cons (point) skeleton-
position
s)))
((eq 'quote (car-safe element))
((eq 'quote (car-safe element))
(eval (nth 1 element)))
(eval (nth 1 element)))
((or (stringp (car-safe element))
((or (stringp (car-safe element))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment