From db3b7db5474db3fe313e7dd1b9084b70cbf8509a Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Sun, 16 Jun 2013 20:52:24 -0400 Subject: [PATCH] =?utf8?q?*=20lisp/international/characters.el=20(standard?= =?utf8?q?-case-table):=20Set=20syntax=20of=20=3F=C2=BB=20and=20=3F=C2=AB?= =?utf8?q?=20to=20punctuation.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- etc/NEWS | 3 +++ lisp/ChangeLog | 5 +++++ lisp/international/characters.el | 8 +++++++- 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/etc/NEWS b/etc/NEWS index d2554f719f0..d92c9cdec1b 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -415,6 +415,9 @@ It is layered as: * Incompatible Lisp Changes in Emacs 24.4 +** The syntax of ?» and ?« is now punctuation instead of matched parens. +Some languages match those as »...« and others as «...» so better stay neutral. + ** The default file coding for Emacs Lisp files is now utf-8. (See file-coding-system-alist.) In most cases, this change is transparent, but files that contain unusual characters without specifying an explicit coding diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 4f3cf82e7e0..5d44b897b51 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2013-06-17 Stefan Monnier + + * international/characters.el (standard-case-table): Set syntax of ?» + and ?« to punctuation. + 2013-06-16 Juanma Barranquero * progmodes/prog-mode.el (prog--prettify-font-lock-compose-symbol): diff --git a/lisp/international/characters.el b/lisp/international/characters.el index d973ccf2d7e..9f56b1c8b7d 100644 --- a/lisp/international/characters.el +++ b/lisp/international/characters.el @@ -512,7 +512,13 @@ with L, LRE, or LRO Unicode bidi character type.") (set-case-syntax ?¦ "_" tbl) (set-case-syntax ?§ "." tbl) (set-case-syntax ?© "_" tbl) - (set-case-syntax-delims 171 187 tbl) ; « » + ;; French wants + ;; (set-case-syntax-delims ?« ?» tbl) + ;; And German wants + ;; (set-case-syntax-delims ?» ?« tbl) + ;; So let's stay neutral and let users set these up if/when they want to. + (set-case-syntax ?« "." tbl) + (set-case-syntax ?» "." tbl) (set-case-syntax ?¬ "_" tbl) (set-case-syntax ?­ "_" tbl) (set-case-syntax ?® "_" tbl) -- 2.11.4.GIT