# HG changeset patch # User Glenn Morris # Date 1165720380 0 # Node ID f43c6119c6c447f82edaa0d8d6d2babc9a81b794 # Parent 06b5b3f1371b6b61596340ec178db1bd3544a87e (Defining Abbrevs): Abbrev tables may not be empty when major modes are loaded. diff -r 06b5b3f1371b -r f43c6119c6c4 lispref/abbrevs.texi --- a/lispref/abbrevs.texi Sun Dec 10 03:12:38 2006 +0000 +++ b/lispref/abbrevs.texi Sun Dec 10 03:13:00 2006 +0000 @@ -131,9 +131,12 @@ @comment node-name, next, previous, up @section Defining Abbrevs @code{define-abbrev} is the low-level basic function for defining an -abbrev in a specified abbrev table. When major modes predefine -standard abbrevs, they should call @code{define-abbrev} and specify -@code{t} for @var{system-flag}. +abbrev in a specified abbrev table. When major modes predefine standard +abbrevs, they should call @code{define-abbrev} and specify @code{t} for +@var{system-flag}. Be aware that any saved non-``system'' abbrevs are +restored at startup, i.e. before some major modes are loaded. Major modes +should therefore not assume that when they are first loaded their abbrev +tables are empty. @defun define-abbrev table name expansion &optional hook count system-flag This function defines an abbrev named @var{name}, in @var{table}, to