Variable: sentence-end-double-space

sentence-end-double-space is a customizable variable defined in paragraphs.el.gz.

Value

t

Documentation

Non-nil means a single space does not end a sentence.

This user option affects fill commands and sentence commands.

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(var)/sentence-end(fun) to construct the regexp describing the end of a sentence, when the value of the variable sentence-end(var)/sentence-end(fun) is nil. See Info node (elisp)Standard Regexps.

View in manual

Probably introduced at or before Emacs version 19.23.

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/paragraphs.el.gz
(defcustom sentence-end-double-space t
  "Non-nil means a single space does not end a sentence.
This user option affects fill commands and sentence commands.

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
regexp describing the end of a sentence, when the value of the variable
`sentence-end' is nil.  See Info node `(elisp)Standard Regexps'."
  :type 'boolean
  :safe #'booleanp
  :group 'fill)