1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-21 06:55:39 +00:00

Improve sentence-end-double-space docstring

* lisp/textmodes/paragraphs.el (sentence-end-double-space):
Improve and expand docstring.
This commit is contained in:
Stefan Kangas 2024-07-01 02:33:05 +02:00
parent 9d62dbc1f7
commit b2d99c0d0a

View File

@ -118,8 +118,28 @@ text indented by a margin setting."
(defcustom sentence-end-double-space t (defcustom sentence-end-double-space t
"Non-nil means a single space does not end a sentence. "Non-nil means a single space does not end a sentence.
This is relevant for filling. See also `sentence-end-without-period' This user option affects fill commands and sentence commands.
and `colon-double-space'.
If this variable is non-nil, Emacs considers a period followed by two
spaces or by a newline as the end of a sentence. This means that:
1. The fill commands will not break a line after a period followed
by just one space.
2. The sentence commands stop only for double spaces.
If this variable is nil, Emacs considers a period followed by one space
or by a newline as the end of a sentence. This means that:
1. The fill commands will break a line after a period followed by
one space, and put just one space after each period.
2. The sentence commands stop for single spaces.
For more details, see Info node `(emacs) Fill Commands' and Info
node `(emacs) Sentences'.
See also `sentence-end-without-period' and `colon-double-space'.
This value is used by the function `sentence-end' to construct the This value is used by the function `sentence-end' to construct the
regexp describing the end of a sentence, when the value of the variable regexp describing the end of a sentence, when the value of the variable