diff options
| author | Martin Rudalics | 2017-11-06 08:45:52 +0100 |
|---|---|---|
| committer | Martin Rudalics | 2017-11-06 08:45:52 +0100 |
| commit | 93cd8415b2536a4df15513d6dd1a409f55b81ac4 (patch) | |
| tree | 8ef7f29ffcdc6e86fea5e412658011b257b89bbb /doc | |
| parent | ca2d94ba61dee678f85bfc7299d167e7219e6d8f (diff) | |
| download | emacs-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.texi | 24 |
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. | 1889 | Auto 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 | 1890 | inserted. @xref{Auto Fill,,, emacs, The GNU Emacs Manual}. This |
| 1891 | is inserted. This section describes the hook used by Auto Fill mode. | 1891 | section describes some variables used by Auto Fill mode. For a |
| 1892 | For a description of functions that you can call explicitly to fill and | 1892 | description of functions that you can call explicitly to fill and |
| 1893 | justify existing text, see @ref{Filling}. | 1893 | justify 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 |
| 1899 | The value of this buffer-local variable should be a function (of no | 1899 | The value of this buffer-local variable should be a function (of no |
| 1900 | arguments) to be called after self-inserting a character from the table | 1900 | arguments) 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 |
| 1902 | special is done in that case. | 1902 | nothing special is done in that case. |
| 1903 | 1903 | ||
| 1904 | The value of @code{auto-fill-function} is @code{do-auto-fill} when | 1904 | The value of @code{auto-fill-function} is @code{do-auto-fill} when Auto |
| 1905 | Auto-Fill mode is enabled. That is a function whose sole purpose is to | 1905 | Fill mode is enabled. That is a function whose sole purpose is to |
| 1906 | implement the usual strategy for breaking a line. | 1906 | implement 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 | |||
| 1919 | have an entry @code{t} in the table. | 1919 | have an entry @code{t} in the table. |
| 1920 | @end defvar | 1920 | @end defvar |
| 1921 | 1921 | ||
| 1922 | @defopt comment-auto-fill-only-comments | ||
| 1923 | This variable, if non-@code{nil}, means to fill lines automatically | ||
| 1924 | within comments only. More precisley, this means that if a comment | ||
| 1925 | syntax was defined for the current buffer, then self-inserting a | ||
| 1926 | character 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 |