diff options
| -rw-r--r-- | lisp/textmodes/paragraphs.el | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lisp/textmodes/paragraphs.el b/lisp/textmodes/paragraphs.el index 97abc2c1583..0c5d969105f 100644 --- a/lisp/textmodes/paragraphs.el +++ b/lisp/textmodes/paragraphs.el | |||
| @@ -132,14 +132,23 @@ without a period." | |||
| 132 | :type 'boolean | 132 | :type 'boolean |
| 133 | :group 'fill) | 133 | :group 'fill) |
| 134 | 134 | ||
| 135 | (defcustom sentence-end-without-space | ||
| 136 | "$B!#!%!)!*$A!##.#?#!$(0!$!%!)!*$(G!$!%!)!*(B" | ||
| 137 | "*String containing characters that end sentence without following spaces. | ||
| 138 | If you change this, you should also change `sentence-end'. See Info | ||
| 139 | node `Sentences'." | ||
| 140 | :group 'paragraphs | ||
| 141 | :type 'string) | ||
| 142 | |||
| 135 | (defcustom sentence-end | 143 | (defcustom sentence-end |
| 136 | (purecopy | 144 | (purecopy |
| 137 | ;; This is a bit stupid since it's not auto-updated when the | 145 | ;; This is a bit stupid since it's not auto-updated when the |
| 138 | ;; other variables are changes, but it's still useful info. | 146 | ;; other variables are changes, but it's still useful info. |
| 139 | (concat (if sentence-end-without-period "\\w \\|") | 147 | (concat (if sentence-end-without-period "\\w \\|") |
| 140 | "[.?!$B!#!%!)!*$A!##.#?#!$(0!$!%!)!*$(G!$!%!)!*(B][]\"')}]*" | 148 | "\\([.?!][]\"')}]*" |
| 141 | (if sentence-end-double-space | 149 | (if sentence-end-double-space |
| 142 | "\\($\\| $\\|\t\\| \\)" "\\($\\|[\t ]\\)") | 150 | "\\($\\| $\\|\t\\| \\)" "\\($\\|[\t ]\\)") |
| 151 | "\\|[" sentence-end-without-space "]+\\)" | ||
| 143 | "[ \t\n]*")) | 152 | "[ \t\n]*")) |
| 144 | "*Regexp describing the end of a sentence. | 153 | "*Regexp describing the end of a sentence. |
| 145 | The value includes the whitespace following the sentence. | 154 | The value includes the whitespace following the sentence. |