diff options
| author | Richard M. Stallman | 2001-12-30 20:11:26 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2001-12-30 20:11:26 +0000 |
| commit | 6d96d6eb86e92d7a9772d60bdfb54f2a8e90678f (patch) | |
| tree | c06c98e9b9aa25bbf1f440b80dc931a3467d6d20 | |
| parent | d9cc1d0ed374d1d432919d249985d80a1de0e80c (diff) | |
| download | emacs-6d96d6eb86e92d7a9772d60bdfb54f2a8e90678f.tar.gz emacs-6d96d6eb86e92d7a9772d60bdfb54f2a8e90678f.zip | |
Improve previous change.
| -rw-r--r-- | lispref/abbrevs.texi | 17 |
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 |
| 115 | user. | 115 | the user. When major modes predefine standard abbrevs, they should |
| 116 | call @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 |
| 118 | This function adds an abbreviation to abbrev table @var{table} based on | 119 | This 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 |
| 157 | really occurred. | 158 | really occurred. |
| 158 | 159 | ||
| 160 | If @var{system-flag} is non-@code{nil}, that marks the abbrev as a | ||
| 161 | ``system'' abbrev with the @code{system-type} property. | ||
| 162 | |||
| 159 | Normally the function @code{define-abbrev} sets the variable | 163 | Normally 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. |
| 161 | non-@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 |
| 162 | case, @code{define-abbrev} does not alter @code{abbrevs-changed}. | 166 | does not do this for a ``system'' abbrev, since those won't be saved |
| 163 | Instead it marks the abbrev as a ``system'' abbrev with the | 167 | anyway. |
| 164 | @code{system-type} property. | ||
| 165 | @end defun | 168 | @end defun |
| 166 | 169 | ||
| 167 | @defopt only-global-abbrevs | 170 | @defopt only-global-abbrevs |