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
68063965
Commit
68063965
authored
Feb 24, 2004
by
Luc Teirlinck
Browse files
(write-abbrev-file): Make argument optional. Doc fix.
(abbrev-prefix-mark): Doc fix.
parent
6763a405
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
lisp/abbrev.el
lisp/abbrev.el
+11
-4
No files found.
lisp/abbrev.el
View file @
68063965
...
@@ -201,10 +201,13 @@ Does not display any message."
...
@@ -201,10 +201,13 @@ Does not display any message."
;(interactive "fRead abbrev file: ")
;(interactive "fRead abbrev file: ")
(
read-abbrev-file
file
t
))
(
read-abbrev-file
file
t
))
(
defun
write-abbrev-file
(
file
)
(
defun
write-abbrev-file
(
&optional
file
)
"Write all abbrev definitions to a file of Lisp code.
"Write all user-level abbrev definitions to a file of Lisp code.
This does not include system abbrevs; it includes only the abbrev tables
listed in listed in `abbrev-table-name-list'.
The file written can be loaded in another session to define the same abbrevs.
The file written can be loaded in another session to define the same abbrevs.
The argument FILE is the file name to write."
The argument FILE is the file name to write. If omitted or nil, the file
specified in `abbrev-file-name' is used."
(
interactive
(
interactive
(
list
(
list
(
read-file-name
"Write abbrev file: "
(
read-file-name
"Write abbrev file: "
...
@@ -307,7 +310,11 @@ Expands the abbreviation after defining it."
...
@@ -307,7 +310,11 @@ Expands the abbreviation after defining it."
"Mark current point as the beginning of an abbrev.
"Mark current point as the beginning of an abbrev.
Abbrev to be expanded starts here rather than at beginning of word.
Abbrev to be expanded starts here rather than at beginning of word.
This way, you can expand an abbrev with a prefix: insert the prefix,
This way, you can expand an abbrev with a prefix: insert the prefix,
use this command, then insert the abbrev."
use this command, then insert the abbrev. This command inserts a
temporary hyphen after the prefix \(until the intended abbrev
expansion occurs).
If the prefix is itself an abbrev, this command expands it, unless
ARG is non-nil. Interactively, ARG is the prefix argument."
(
interactive
"P"
)
(
interactive
"P"
)
(
or
arg
(
expand-abbrev
))
(
or
arg
(
expand-abbrev
))
(
setq
abbrev-start-location
(
point-marker
)
(
setq
abbrev-start-location
(
point-marker
)
...
...
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