diff options
| author | Glenn Morris | 2006-12-10 03:13:00 +0000 |
|---|---|---|
| committer | Glenn Morris | 2006-12-10 03:13:00 +0000 |
| commit | 4c3384fa02f3d2358290994a697df345982eac12 (patch) | |
| tree | 4680ca93371424347ff5f5971e92b9af36a76364 | |
| parent | 9e7287f49a1b063f92d171b9d929fe184252ce0d (diff) | |
| download | emacs-4c3384fa02f3d2358290994a697df345982eac12.tar.gz emacs-4c3384fa02f3d2358290994a697df345982eac12.zip | |
(Defining Abbrevs): Abbrev tables may not be empty when major modes
are loaded.
| -rw-r--r-- | lispref/abbrevs.texi | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lispref/abbrevs.texi b/lispref/abbrevs.texi index 56d08c7393b..6facbf1e3b8 100644 --- a/lispref/abbrevs.texi +++ b/lispref/abbrevs.texi | |||
| @@ -131,9 +131,12 @@ to add these to @var{name} separately.) | |||
| 131 | @comment node-name, next, previous, up | 131 | @comment node-name, next, previous, up |
| 132 | @section Defining Abbrevs | 132 | @section Defining Abbrevs |
| 133 | @code{define-abbrev} is the low-level basic function for defining an | 133 | @code{define-abbrev} is the low-level basic function for defining an |
| 134 | abbrev in a specified abbrev table. When major modes predefine | 134 | abbrev in a specified abbrev table. When major modes predefine standard |
| 135 | standard abbrevs, they should call @code{define-abbrev} and specify | 135 | abbrevs, they should call @code{define-abbrev} and specify @code{t} for |
| 136 | @code{t} for @var{system-flag}. | 136 | @var{system-flag}. Be aware that any saved non-``system'' abbrevs are |
| 137 | restored at startup, i.e. before some major modes are loaded. Major modes | ||
| 138 | should therefore not assume that when they are first loaded their abbrev | ||
| 139 | tables are empty. | ||
| 137 | 140 | ||
| 138 | @defun define-abbrev table name expansion &optional hook count system-flag | 141 | @defun define-abbrev table name expansion &optional hook count system-flag |
| 139 | This function defines an abbrev named @var{name}, in @var{table}, to | 142 | This function defines an abbrev named @var{name}, in @var{table}, to |