From: Michal Nazarewicz Date: Mon, 27 Oct 2014 16:14:38 +0000 (+0100) Subject: paragraphs: recognise more Unicode characters as end of sentence X-Git-Tag: emacs-25.0.90~2592^2~7 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=11e161f54de5009c4ccba3a3d7bcc86850d5b2b2;p=emacs.git paragraphs: recognise more Unicode characters as end of sentence * lisp/textmodes/paragraphs.el (sentence-end-base): Include an ellipsis (…) and interrobang (‽) characters as end of a sentence, and a closing single quote (’) as an end of a quote. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 35b08b0f1de..d3bfafdf721 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,9 @@ +2015-01-20 Michal Nazarewicz + + * textmodes/paragraphs.el (sentence-end-base): Include an + ellipsis (…) and interrobang (‽) characters as end of a sentence, + and a closing single quote (’) as an end of a quote. + 2015-01-20 Michal Nazarewicz * textmodes/tildify.el (tildify-double-space-undos): A new diff --git a/lisp/textmodes/paragraphs.el b/lisp/textmodes/paragraphs.el index b18a93cd3e6..09451a6b197 100644 --- a/lisp/textmodes/paragraphs.el +++ b/lisp/textmodes/paragraphs.el @@ -168,7 +168,7 @@ to obtain the value of this variable." :type '(choice regexp (const :tag "Use default value" nil))) (put 'sentence-end 'safe-local-variable 'string-or-null-p) -(defcustom sentence-end-base "[.?!][]\"'”)}]*" +(defcustom sentence-end-base "[.?!…‽][]\"'”’)}]*" "Regexp matching the basic end of a sentence, not including following space." :group 'paragraphs :type 'string