Commit 38cb7a93 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(sentence-end): Accept non-break space.

parent 98a1e0f5
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.
......
......@@ -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."
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment