Mercurial > hg > xemacs-beta
comparison man/lispref/abbrevs.texi @ 444:576fb035e263 r21-2-37
Import from CVS: tag r21-2-37
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:36:19 +0200 |
parents | 376386a54a3c |
children | 1ccc32a20af4 |
comparison
equal
deleted
inserted
replaced
443:a8296e22da4e | 444:576fb035e263 |
---|---|
1 @c -*-texinfo-*- | 1 @c -*-texinfo-*- |
2 @c This is part of the XEmacs Lisp Reference Manual. | 2 @c This is part of the XEmacs Lisp Reference Manual. |
3 @c Copyright (C) 1990, 1991, 1992, 1993, 1994 Free Software Foundation, Inc. | 3 @c Copyright (C) 1990, 1991, 1992, 1993, 1994 Free Software Foundation, Inc. |
4 @c See the file lispref.texi for copying conditions. | 4 @c See the file lispref.texi for copying conditions. |
5 @setfilename ../../info/abbrevs.info | 5 @setfilename ../../info/abbrevs.info |
6 @node Abbrevs, Extents, Syntax Tables, Top | 6 @node Abbrevs, Extents, Syntax Tables, Top |
7 @chapter Abbrevs And Abbrev Expansion | 7 @chapter Abbrevs And Abbrev Expansion |
8 @cindex abbrev | 8 @cindex abbrev |
40 * Expansion: Abbrev Expansion. Controlling expansion; expansion subroutines. | 40 * Expansion: Abbrev Expansion. Controlling expansion; expansion subroutines. |
41 * Standard Abbrev Tables:: Abbrev tables used by various major modes. | 41 * Standard Abbrev Tables:: Abbrev tables used by various major modes. |
42 @end menu | 42 @end menu |
43 | 43 |
44 @node Abbrev Mode | 44 @node Abbrev Mode |
45 @section Setting Up Abbrev Mode | 45 @section Setting Up Abbrev Mode |
46 | 46 |
47 Abbrev mode is a minor mode controlled by the value of the variable | 47 Abbrev mode is a minor mode controlled by the value of the variable |
48 @code{abbrev-mode}. | 48 @code{abbrev-mode}. |
49 | 49 |
50 @defvar abbrev-mode | 50 @defvar abbrev-mode |
74 @defun clear-abbrev-table table | 74 @defun clear-abbrev-table table |
75 This function undefines all the abbrevs in abbrev table @var{table}, | 75 This function undefines all the abbrevs in abbrev table @var{table}, |
76 leaving it empty. The function returns @code{nil}. | 76 leaving it empty. The function returns @code{nil}. |
77 @end defun | 77 @end defun |
78 | 78 |
79 @defun define-abbrev-table tabname definitions | 79 @defun define-abbrev-table table-name definitions |
80 This function defines @var{tabname} (a symbol) as an abbrev table name, | 80 This function defines @var{table-name} (a symbol) as an abbrev table name, |
81 i.e., as a variable whose value is an abbrev table. It defines abbrevs | 81 i.e., as a variable whose value is an abbrev table. It defines abbrevs |
82 in the table according to @var{definitions}, a list of elements of the | 82 in the table according to @var{definitions}, a list of elements of the |
83 form @code{(@var{abbrevname} @var{expansion} @var{hook} | 83 form @code{(@var{abbrevname} @var{expansion} @var{hook} |
84 @var{usecount})}. The value is always @code{nil}. | 84 @var{usecount})}. The value is always @code{nil}. |
85 @end defun | 85 @end defun |
119 The return value is the symbol that internally represents the new | 119 The return value is the symbol that internally represents the new |
120 abbrev, or @code{nil} if the user declines to confirm redefining an | 120 abbrev, or @code{nil} if the user declines to confirm redefining an |
121 existing abbrev. | 121 existing abbrev. |
122 @end defun | 122 @end defun |
123 | 123 |
124 @defun define-abbrev table name expansion hook | 124 @defun define-abbrev table name &optional expansion hook count |
125 This function defines an abbrev in @var{table} named @var{name}, to | 125 This function defines an abbrev in @var{table} named @var{name}, to |
126 expand to @var{expansion}, and call @var{hook}. The return value is an | 126 expand to @var{expansion}, and call @var{hook}. The return value is an |
127 uninterned symbol that represents the abbrev inside XEmacs; its name is | 127 uninterned symbol that represents the abbrev inside XEmacs; its name is |
128 @var{name}. | 128 @var{name}. |
129 | 129 |
163 | 163 |
164 @defopt abbrev-file-name | 164 @defopt abbrev-file-name |
165 This is the default file name for reading and saving abbrevs. | 165 This is the default file name for reading and saving abbrevs. |
166 @end defopt | 166 @end defopt |
167 | 167 |
168 @defun quietly-read-abbrev-file filename | 168 @defun quietly-read-abbrev-file &optional filename |
169 This function reads abbrev definitions from a file named @var{filename}, | 169 This function reads abbrev definitions from a file named @var{filename}, |
170 previously written with @code{write-abbrev-file}. If @var{filename} is | 170 previously written with @code{write-abbrev-file}. If @var{filename} is |
171 @code{nil}, the file specified in @code{abbrev-file-name} is used. | 171 @code{nil}, the file specified in @code{abbrev-file-name} is used. |
172 @code{save-abbrevs} is set to @code{t} so that changes will be saved. | 172 @code{save-abbrevs} is set to @code{t} so that changes will be saved. |
173 | 173 |
179 save abbrevs when files are saved. @code{abbrev-file-name} specifies | 179 save abbrevs when files are saved. @code{abbrev-file-name} specifies |
180 the file to save the abbrevs in. | 180 the file to save the abbrevs in. |
181 @end defopt | 181 @end defopt |
182 | 182 |
183 @defvar abbrevs-changed | 183 @defvar abbrevs-changed |
184 This variable is set non-@code{nil} by defining or altering any | 184 This variable is set non-@code{nil} by defining or altering any |
185 abbrevs. This serves as a flag for various XEmacs commands to offer to | 185 abbrevs. This serves as a flag for various XEmacs commands to offer to |
186 save your abbrevs. | 186 save your abbrevs. |
187 @end defvar | 187 @end defvar |
188 | 188 |
189 @deffn Command write-abbrev-file filename | 189 @deffn Command write-abbrev-file filename |