comparison lispref/abbrevs.texi @ 27268:653f41a39496

*** empty log message ***
author Richard M. Stallman <rms@gnu.org>
date Tue, 11 Jan 2000 04:28:13 +0000
parents 199ada58fd5d
children 5a4e13447b47
comparison
equal deleted inserted replaced
27267:199ada58fd5d 27268:653f41a39496
117 describing in English the kind of abbrev this will be (typically, 117 describing in English the kind of abbrev this will be (typically,
118 @code{"global"} or @code{"mode-specific"}); this is used in prompting 118 @code{"global"} or @code{"mode-specific"}); this is used in prompting
119 the user. The argument @var{arg} is the number of words in the 119 the user. The argument @var{arg} is the number of words in the
120 expansion. 120 expansion.
121 121
122
123 The return value is the symbol that internally represents the new 122 The return value is the symbol that internally represents the new
124 abbrev, or @code{nil} if the user declines to confirm redefining an 123 abbrev, or @code{nil} if the user declines to confirm redefining an
125 existing abbrev. 124 existing abbrev.
126 @end defun 125 @end defun
127 126
136 The argument @var{name} should be a string. The argument 135 The argument @var{name} should be a string. The argument
137 @var{expansion} is normally the desired expansion (a string), or 136 @var{expansion} is normally the desired expansion (a string), or
138 @code{nil} to undefine the abbrev. If it is anything but a string or 137 @code{nil} to undefine the abbrev. If it is anything but a string or
139 @code{nil}, then the abbreviation ``expands'' solely by running 138 @code{nil}, then the abbreviation ``expands'' solely by running
140 @var{hook}. 139 @var{hook}.
141
142 140
143 The argument @var{hook} is a function or @code{nil}. If @var{hook} is 141 The argument @var{hook} is a function or @code{nil}. If @var{hook} is
144 non-@code{nil}, then it is called with no arguments after the abbrev is 142 non-@code{nil}, then it is called with no arguments after the abbrev is
145 replaced with @var{expansion}; point is located at the end of 143 replaced with @var{expansion}; point is located at the end of
146 @var{expansion} when @var{hook} is called. 144 @var{expansion} when @var{hook} is called.