# HG changeset patch # User Richard M. Stallman # Date 1232066607 0 # Node ID 854925519fc6dd008e11891338e394e7b762b060 # Parent 4e5a2a1d41a5b1e7b24ac8d69aa6448422afd32d (sentence-end): Accept non-break space. diff -r 4e5a2a1d41a5 -r 854925519fc6 lisp/textmodes/paragraphs.el --- a/lisp/textmodes/paragraphs.el Thu Jan 15 23:58:00 2009 +0000 +++ b/lisp/textmodes/paragraphs.el Fri Jan 16 00:43:27 2009 +0000 @@ -183,14 +183,15 @@ 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."