aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorMartin Rudalics2017-11-06 08:45:52 +0100
committerMartin Rudalics2017-11-06 08:45:52 +0100
commit93cd8415b2536a4df15513d6dd1a409f55b81ac4 (patch)
tree8ef7f29ffcdc6e86fea5e412658011b257b89bbb /doc
parentca2d94ba61dee678f85bfc7299d167e7219e6d8f (diff)
downloademacs-93cd8415b2536a4df15513d6dd1a409f55b81ac4.tar.gz
emacs-93cd8415b2536a4df15513d6dd1a409f55b81ac4.zip
Document new treatment of 'comment-auto-fill-only-comments'
* doc/lispref/text.texi (Auto Filling): Add reference to Emacs manual. Add description of 'comment-auto-fill-only-comments'. * etc/NEWS: Mention new treatment of 'comment-auto-fill-only-comments'.
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/text.texi24
1 files changed, 16 insertions, 8 deletions
diff --git a/doc/lispref/text.texi b/doc/lispref/text.texi
index baa3c708e90..4872dbd3e9a 100644
--- a/doc/lispref/text.texi
+++ b/doc/lispref/text.texi
@@ -1886,10 +1886,10 @@ prefix or @code{nil}, meaning it has failed to determine a prefix.
1886@cindex filling, automatic 1886@cindex filling, automatic
1887@cindex Auto Fill mode 1887@cindex Auto Fill mode
1888 1888
1889@c FIXME: I don't think any of the variables below is a/an normal/abnormal hook. 1889Auto Fill mode is a minor mode that fills lines automatically as text is
1890 Auto Fill mode is a minor mode that fills lines automatically as text 1890inserted. @xref{Auto Fill,,, emacs, The GNU Emacs Manual}. This
1891is inserted. This section describes the hook used by Auto Fill mode. 1891section describes some variables used by Auto Fill mode. For a
1892For a description of functions that you can call explicitly to fill and 1892description of functions that you can call explicitly to fill and
1893justify existing text, see @ref{Filling}. 1893justify existing text, see @ref{Filling}.
1894 1894
1895 Auto Fill mode also enables the functions that change the margins and 1895 Auto Fill mode also enables the functions that change the margins and
@@ -1898,11 +1898,11 @@ justification style to refill portions of the text. @xref{Margins}.
1898@defvar auto-fill-function 1898@defvar auto-fill-function
1899The value of this buffer-local variable should be a function (of no 1899The value of this buffer-local variable should be a function (of no
1900arguments) to be called after self-inserting a character from the table 1900arguments) to be called after self-inserting a character from the table
1901@code{auto-fill-chars}. It may be @code{nil}, in which case nothing 1901@code{auto-fill-chars}, see below. It may be @code{nil}, in which case
1902special is done in that case. 1902nothing special is done in that case.
1903 1903
1904The value of @code{auto-fill-function} is @code{do-auto-fill} when 1904The value of @code{auto-fill-function} is @code{do-auto-fill} when Auto
1905Auto-Fill mode is enabled. That is a function whose sole purpose is to 1905Fill mode is enabled. That is a function whose sole purpose is to
1906implement the usual strategy for breaking a line. 1906implement the usual strategy for breaking a line.
1907@end defvar 1907@end defvar
1908 1908
@@ -1919,6 +1919,14 @@ self-inserted---space and newline in most language environments. They
1919have an entry @code{t} in the table. 1919have an entry @code{t} in the table.
1920@end defvar 1920@end defvar
1921 1921
1922@defopt comment-auto-fill-only-comments
1923This variable, if non-@code{nil}, means to fill lines automatically
1924within comments only. More precisley, this means that if a comment
1925syntax was defined for the current buffer, then self-inserting a
1926character outside of a comment will not call @code{auto-fill-function}.
1927@end defopt
1928
1929
1922@node Sorting 1930@node Sorting
1923@section Sorting Text 1931@section Sorting Text
1924@cindex sorting text 1932@cindex sorting text