aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2001-12-30 20:11:26 +0000
committerRichard M. Stallman2001-12-30 20:11:26 +0000
commit6d96d6eb86e92d7a9772d60bdfb54f2a8e90678f (patch)
treec06c98e9b9aa25bbf1f440b80dc931a3467d6d20
parentd9cc1d0ed374d1d432919d249985d80a1de0e80c (diff)
downloademacs-6d96d6eb86e92d7a9772d60bdfb54f2a8e90678f.tar.gz
emacs-6d96d6eb86e92d7a9772d60bdfb54f2a8e90678f.zip
Improve previous change.
-rw-r--r--lispref/abbrevs.texi17
1 files changed, 10 insertions, 7 deletions
diff --git a/lispref/abbrevs.texi b/lispref/abbrevs.texi
index 332e4878c28..8e31c7c870d 100644
--- a/lispref/abbrevs.texi
+++ b/lispref/abbrevs.texi
@@ -111,8 +111,9 @@ is currently defined.
111 111
112 These functions define an abbrev in a specified abbrev table. 112 These functions define an abbrev in a specified abbrev table.
113@code{define-abbrev} is the low-level basic function, while 113@code{define-abbrev} is the low-level basic function, while
114@code{add-abbrev} is used by commands that ask for information from the 114@code{add-abbrev} is used by commands that ask for information from
115user. 115the user. When major modes predefine standard abbrevs, they should
116call @code{define-abbrev} and specify @code{t} for @var{system-flag}.
116 117
117@defun add-abbrev table type arg 118@defun add-abbrev table type arg
118This function adds an abbreviation to abbrev table @var{table} based on 119This function adds an abbreviation to abbrev table @var{table} based on
@@ -156,12 +157,14 @@ of the character. By contrast, if @var{hook} returns @code{nil},
156@code{expand-abbrev} also returns @code{nil}, as if expansion had not 157@code{expand-abbrev} also returns @code{nil}, as if expansion had not
157really occurred. 158really occurred.
158 159
160If @var{system-flag} is non-@code{nil}, that marks the abbrev as a
161``system'' abbrev with the @code{system-type} property.
162
159Normally the function @code{define-abbrev} sets the variable 163Normally the function @code{define-abbrev} sets the variable
160@code{abbrevs-changed} to @code{t}. But if @var{system-flag} is 164@code{abbrevs-changed} to @code{t}, if it actually changes the abbrev.
161non-@code{nil}, that says the abbrev is a ``system'' abbrev. In that 165(This is so that some commands will offer to save the abbrevs.) It
162case, @code{define-abbrev} does not alter @code{abbrevs-changed}. 166does not do this for a ``system'' abbrev, since those won't be saved
163Instead it marks the abbrev as a ``system'' abbrev with the 167anyway.
164@code{system-type} property.
165@end defun 168@end defun
166 169
167@defopt only-global-abbrevs 170@defopt only-global-abbrevs