[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 11e161f: paragraphs: recognise more Unicode charact
From: |
Michal Nazarewicz |
Subject: |
[Emacs-diffs] master 11e161f: paragraphs: recognise more Unicode characters as end of sentence |
Date: |
Tue, 20 Jan 2015 13:39:10 +0000 |
branch: master
commit 11e161f54de5009c4ccba3a3d7bcc86850d5b2b2
Author: Michal Nazarewicz <address@hidden>
Commit: Michal Nazarewicz <address@hidden>
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.
---
lisp/ChangeLog | 6 ++++++
lisp/textmodes/paragraphs.el | 2 +-
2 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 35b08b0..d3bfafd 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,11 @@
2015-01-20 Michal Nazarewicz <address@hidden>
+ * 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 <address@hidden>
+
* textmodes/tildify.el (tildify-double-space-undos): A new
variable specifying whether pressing space in `tildify-mode' after
a space has been replaced with hard space undos the substitution.
diff --git a/lisp/textmodes/paragraphs.el b/lisp/textmodes/paragraphs.el
index b18a93c..09451a6 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 11e161f: paragraphs: recognise more Unicode characters as end of sentence,
Michal Nazarewicz <=