emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs/lisp/textmodes paragraphs.el


From: Richard M. Stallman
Subject: [Emacs-diffs] emacs/lisp/textmodes paragraphs.el
Date: Fri, 16 Jan 2009 00:43:27 +0000

CVSROOT:        /cvsroot/emacs
Module name:    emacs
Changes by:     Richard M. Stallman <rms>       09/01/16 00:43:27

Modified files:
        lisp/textmodes : paragraphs.el 

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

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/emacs/lisp/textmodes/paragraphs.el?cvsroot=emacs&r1=1.96&r2=1.97

Patches:
Index: paragraphs.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/textmodes/paragraphs.el,v
retrieving revision 1.96
retrieving revision 1.97
diff -u -b -r1.96 -r1.97
--- paragraphs.el       12 Jan 2009 04:24:43 -0000      1.96
+++ paragraphs.el       16 Jan 2009 00:43:27 -0000      1.97
@@ -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."




reply via email to

[Prev in Thread] Current Thread [Next in Thread]