Mercurial > emacs
comparison lisp/textmodes/paragraphs.el @ 90016:ff0e824afa37
Revision: miles@gnu.org--gnu-2004/emacs--unicode--0--patch-57
Merge from emacs--cvs-trunk--0
Patches applied:
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-594
- miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-598
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-599
Merge from gnus--rel--5.10
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-600
- miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-602
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-603
Merge from gnus--rel--5.10
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-604
- miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-609
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-610
Merge from gnus--rel--5.10
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-611
- miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-614
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-615
Merge from gnus--rel--5.10
* miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-42
Update from CVS
* miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-43
Merge from emacs--cvs-trunk--0
* miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-44
- miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-46
Update from CVS
* miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-47
Merge from emacs--cvs-trunk--0
* miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-48
Update from CVS
* miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-49
Add {arch}/=commit-merge-make-log
* miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-50
{arch}/=commit-merge-make-log: Don't die if there are no ChangeLog changes
author | Miles Bader <miles@gnu.org> |
---|---|
date | Thu, 14 Oct 2004 08:50:09 +0000 |
parents | 6c1af301b455 ba8ab430f898 |
children | fb79180b618d |
comparison
equal
deleted
inserted
replaced
90015:9ee566735998 | 90016:ff0e824afa37 |
---|---|
1 ;;; paragraphs.el --- paragraph and sentence parsing | 1 ;;; paragraphs.el --- paragraph and sentence parsing |
2 | 2 |
3 ;; Copyright (C) 1985, 86, 87, 91, 94, 95, 96, 1997, 1999, 2000, 2001 | 3 ;; Copyright (C) 1985, 86, 87, 91, 94, 95, 96, 1997, 1999, 2000, 2001, 2004 |
4 ;; Free Software Foundation, Inc. | 4 ;; Free Software Foundation, Inc. |
5 | 5 |
6 ;; Maintainer: FSF | 6 ;; Maintainer: FSF |
7 ;; Keywords: wp | 7 ;; Keywords: wp |
8 | 8 |
120 "*Non-nil means a single space does not end a sentence. | 120 "*Non-nil means a single space does not end a sentence. |
121 This is relevant for filling. See also `sentence-end-without-period' | 121 This is relevant for filling. See also `sentence-end-without-period' |
122 and `colon-double-space'. | 122 and `colon-double-space'. |
123 | 123 |
124 This value is used by the function `sentence-end' to construct the | 124 This value is used by the function `sentence-end' to construct the |
125 regexp describing the end of a sentence, in case when the value of | 125 regexp describing the end of a sentence, when the value of the variable |
126 the variable `sentence-end' is nil. See Info node `Sentences'." | 126 `sentence-end' is nil. See Info node `(elisp)Standard Regexps'." |
127 :type 'boolean | 127 :type 'boolean |
128 :group 'fill) | 128 :group 'fill) |
129 | 129 |
130 (defcustom sentence-end-without-period nil | 130 (defcustom sentence-end-without-period nil |
131 "*Non-nil means a sentence will end without a period. | 131 "*Non-nil means a sentence will end without a period. |
132 For example, a sentence in Thai text ends with double space but | 132 For example, a sentence in Thai text ends with double space but |
133 without a period. | 133 without a period. |
134 | 134 |
135 This value is used by the function `sentence-end' to construct the | 135 This value is used by the function `sentence-end' to construct the |
136 regexp describing the end of a sentence, in case when the value of | 136 regexp describing the end of a sentence, when the value of the variable |
137 the variable `sentence-end' is nil. See Info node `Sentences'." | 137 `sentence-end' is nil. See Info node `(elisp)Standard Regexps'." |
138 :type 'boolean | 138 :type 'boolean |
139 :group 'fill) | 139 :group 'fill) |
140 | 140 |
141 (defcustom sentence-end-without-space | 141 (defcustom sentence-end-without-space |
142 "$B!#!%!)!*$A!##.#?#!$(0!$!%!)!*$(G!$!%!)!*(B" | 142 "$B!#!%!)!*$A!##.#?#!$(0!$!%!)!*$(G!$!%!)!*(B" |
143 "*String containing characters that end sentence without following spaces. | 143 "*String of characters that end sentence without following spaces. |
144 | 144 |
145 This value is used by the function `sentence-end' to construct the | 145 This value is used by the function `sentence-end' to construct the |
146 regexp describing the end of a sentence, in case when the value of | 146 regexp describing the end of a sentence, when the value of the variable |
147 the variable `sentence-end' is nil. See Info node `Sentences'." | 147 `sentence-end' is nil. See Info node `(elisp)Standard Regexps'." |
148 :group 'paragraphs | 148 :group 'paragraphs |
149 :type 'string) | 149 :type 'string) |
150 | 150 |
151 (defcustom sentence-end nil | 151 (defcustom sentence-end nil |
152 "*Regexp describing the end of a sentence. | 152 "*Regexp describing the end of a sentence. |
167 variables `sentence-end-double-space', `sentence-end-without-period' | 167 variables `sentence-end-double-space', `sentence-end-without-period' |
168 and `sentence-end-without-space'. The default value specifies | 168 and `sentence-end-without-space'. The default value specifies |
169 that in order to be recognized as the end of a sentence, the | 169 that in order to be recognized as the end of a sentence, the |
170 ending period, question mark, or exclamation point must be | 170 ending period, question mark, or exclamation point must be |
171 followed by two spaces, unless it's inside some sort of quotes or | 171 followed by two spaces, unless it's inside some sort of quotes or |
172 parenthesis. See Info node `Sentences'." | 172 parenthesis. See Info node `(elisp)Standard Regexps'." |
173 (or sentence-end | 173 (or sentence-end |
174 (concat (if sentence-end-without-period "\\w \\|") | 174 (concat (if sentence-end-without-period "\\w \\|") |
175 "\\([.?!][]\"'\xd0c9\x5397d)}]*" | 175 "\\([.?!][]\"'\xd0c9\x5397d)}]*" |
176 (if sentence-end-double-space | 176 (if sentence-end-double-space |
177 "\\($\\| $\\|\t\\| \\)" "\\($\\|[\t ]\\)") | 177 "\\($\\| $\\|\t\\| \\)" "\\($\\|[\t ]\\)") |