Commit 9402a4b9 authored by Kenichi Handa's avatar Kenichi Handa

(sentence-end-without-space): New variable.

(sentence-end): Define using sentence-end-without-space.
parent d62a265d
......@@ -132,14 +132,23 @@ without a period."
:type 'boolean
:group 'fill)
(defcustom sentence-end-without-space
"*String containing characters that end sentence without following spaces.
If you change this, you should also change `sentence-end'. See Info
node `Sentences'."
:group 'paragraphs
:type 'string)
(defcustom sentence-end
;; This is a bit stupid since it's not auto-updated when the
;; other variables are changes, but it's still useful info.
(concat (if sentence-end-without-period "\\w \\|")
(if sentence-end-double-space
"\\($\\| $\\|\t\\| \\)" "\\($\\|[\t ]\\)")
"\\|[" sentence-end-without-space "]+\\)"
"[ \t\n]*"))
"*Regexp describing the end of a sentence.
The value includes the whitespace following the sentence.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment