diff options
author | Richard M. Stallman <rms@gnu.org> | 2009-01-16 00:43:40 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 2009-01-16 00:43:40 +0000 |
commit | 38cb7a93b178968c71ac4ff0c138e04a31f0aced (patch) | |
tree | fdf07cb6da1d03f3acf64a29286b77e002e8d665 | |
parent | 98a1e0f5b787a0554013019bc59df0b937cab801 (diff) | |
download | emacs-38cb7a93b178968c71ac4ff0c138e04a31f0aced.tar.gz |
(sentence-end): Accept non-break space.
-rw-r--r-- | lisp/ChangeLog | 4 | ||||
-rw-r--r-- | lisp/textmodes/paragraphs.el | 7 |
2 files changed, 8 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 33c9a9c9e49..86caa554a13 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2009-01-16 Richard M Stallman <rms@gnu.org> + + * textmodes/paragraphs.el (sentence-end): Accept non-break space. + 2009-01-15 Dan Nicolaescu <dann@ics.uci.edu> * buff-menu.el (Buffer-menu-mode): Derive from special-mode. diff --git a/lisp/textmodes/paragraphs.el b/lisp/textmodes/paragraphs.el index 1d4a2746f62..ca141c1b671 100644 --- a/lisp/textmodes/paragraphs.el +++ b/lisp/textmodes/paragraphs.el @@ -183,14 +183,15 @@ end of a sentence, the ending period, question mark, or exclamation point must be followed by two spaces, with perhaps some closing delimiters in between. See Info node `(elisp)Standard Regexps'." (or sentence-end - (concat (if sentence-end-without-period "\\w \\|") + ;; We accept non-break space along with space. + (concat (if sentence-end-without-period "\\w[ \u00a0][ \u00a0]\\|") "\\(" sentence-end-base (if sentence-end-double-space - "\\($\\| $\\|\t\\| \\)" "\\($\\|[\t ]\\)") + "\\($\\|[ \u00a0]$\\|\t\\|[ \u00a0][ \u00a0]\\)" "\\($\\|[\t \u00a0]\\)") "\\|[" sentence-end-without-space "]+" "\\)" - "[ \t\n]*"))) + "[ \u00a0\t\n]*"))) (defcustom page-delimiter "^\014" "Regexp describing line-beginnings that separate pages." |