diff options
| author | Kenichi Handa | 2004-01-27 07:31:36 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2004-01-27 07:31:36 +0000 |
| commit | 9402a4b9ff009f8bcf9a6a31879be099acfcea98 (patch) | |
| tree | 83cb05ba5012ebc873718e0666e2686fd7623279 | |
| parent | d62a265d184004be1237f8352b88dc912d984a32 (diff) | |
| download | emacs-9402a4b9ff009f8bcf9a6a31879be099acfcea98.tar.gz emacs-9402a4b9ff009f8bcf9a6a31879be099acfcea98.zip | |
(sentence-end-without-space): New variable.
(sentence-end): Define using sentence-end-without-space.
| -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. |