comparison lispref/abbrevs.texi @ 74552:f43c6119c6c4

(Defining Abbrevs): Abbrev tables may not be empty when major modes are loaded.
author Glenn Morris <rgm@gnu.org>
date Sun, 10 Dec 2006 03:13:00 +0000
parents 296e4310eeb6
children 6d19c76d81c5 6588c6259dfb
comparison
equal deleted inserted replaced
74551:06b5b3f1371b 74552:f43c6119c6c4
129 129
130 @node Defining Abbrevs, Abbrev Files, Abbrev Tables, Abbrevs 130 @node Defining Abbrevs, Abbrev Files, Abbrev Tables, Abbrevs
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
140 expand to @var{expansion} and call @var{hook}. The return value is 143 expand to @var{expansion} and call @var{hook}. The return value is
141 @var{name}. 144 @var{name}.