]> git.eshelyaron.com Git - emacs.git/commitdiff
(sentence-end-without-space): New variable.
authorKenichi Handa <handa@m17n.org>
Tue, 27 Jan 2004 07:31:36 +0000 (07:31 +0000)
committerKenichi Handa <handa@m17n.org>
Tue, 27 Jan 2004 07:31:36 +0000 (07:31 +0000)
(sentence-end): Define using sentence-end-without-space.

lisp/textmodes/paragraphs.el

index 97abc2c1583384a4744e5bf483dcbb2bf41c40bc..0c5d969105f8815f02a34cd37a67899eb352abf7 100644 (file)
@@ -132,14 +132,23 @@ without a period."
   :type 'boolean
   :group 'fill)
 
+(defcustom sentence-end-without-space
+  "\e$B!#!%!)!*\e$A!##.#?#!\e$(0!$!%!)!*\e$(G!$!%!)!*\e(B"
+  "*String containing characters that end sentence without following spaces.
+If you change this, you should also change `sentence-end'.  See Info
+node `Sentences'."
+  :group 'paragraphs
+  :type 'string)
+
 (defcustom sentence-end
   (purecopy
    ;; This is a bit stupid since it's not auto-updated when the
    ;; other variables are changes, but it's still useful info.
    (concat (if sentence-end-without-period "\\w  \\|")
-          "[.?!\e$B!#!%!)!*\e$A!##.#?#!\e$(0!$!%!)!*\e$(G!$!%!)!*\e(B][]\"')}]*"
+          "\\([.?!][]\"')}]*"
           (if sentence-end-double-space
               "\\($\\| $\\|\t\\|  \\)" "\\($\\|[\t ]\\)")
+          "\\|[" sentence-end-without-space "]+\\)"
           "[ \t\n]*"))
   "*Regexp describing the end of a sentence.
 The value includes the whitespace following the sentence.