changeset 28843:951c07315d97

auto-fill-chars
author Dave Love <fx@gnu.org>
date Tue, 09 May 2000 16:33:44 +0000
parents 979956ac9352
children a6e1babce2a1
files lispref/text.texi
diffstat 1 files changed, 11 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/lispref/text.texi	Tue May 09 15:51:57 2000 +0000
+++ b/lispref/text.texi	Tue May 09 16:33:44 2000 +0000
@@ -412,8 +412,8 @@
 In an interactive call, @var{count} is the numeric prefix argument.
 
 This command calls @code{auto-fill-function} whenever that is
-non-@code{nil} and the character inserted is a space or a newline
-(@pxref{Auto Filling}).
+non-@code{nil} and the character inserted is in the table
+@code{auto-fill-chars} (@pxref{Auto Filling}).
 
 @c Cross refs reworded to prevent overfull hbox.  --rjc 15mar92
 This command performs abbrev expansion if Abbrev mode is enabled and
@@ -1498,8 +1498,9 @@
 
 @defvar auto-fill-function
 The value of this variable should be a function (of no arguments) to be
-called after self-inserting a space or a newline.  It may be @code{nil},
-in which case nothing special is done in that case.
+called after self-inserting a character from the table
+@code{auto-fill-chars}.  It may be @code{nil}, in which case nothing
+special is done in that case.
 
 The value of @code{auto-fill-function} is @code{do-auto-fill} when
 Auto-Fill mode is enabled.  That is a function whose sole purpose is to
@@ -1519,6 +1520,12 @@
 Fill works.
 @end defvar
 
+@defvar auto-fill-chars
+A char table of characters which invoke @code{auto-fill-function} when
+self-inserted---space and newline in most language environments.  They
+have an entry @code{t} in the table.
+@end defvar
+
 @node Sorting
 @section Sorting Text
 @cindex sorting text