[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/5] tildify.el: Change XML hard space to numeric reference.
From: |
Michal Nazarewicz |
Subject: |
[PATCH 2/5] tildify.el: Change XML hard space to numeric reference. |
Date: |
Sun, 2 Mar 2014 22:55:32 +0100 |
From: Michal Nazarewicz <address@hidden>
XML does not define “ ” and so the proper entity reference
for a no-break space is numeric one such as “ ”. While at
it add `nxml-mode' to the list of modes.
---
lisp/textmodes/tildify.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/lisp/textmodes/tildify.el b/lisp/textmodes/tildify.el
index f534bdb..dc23fbe 100644
--- a/lisp/textmodes/tildify.el
+++ b/lisp/textmodes/tildify.el
@@ -3,7 +3,7 @@
;; Copyright (C) 1997-2014 Free Software Foundation, Inc.
;; Author: Milan Zamazal <address@hidden>
-;; Version: 4.5.1
+;; Version: 4.5.2
;; Keywords: text, TeX, SGML, wp
;; This file is part of GNU Emacs.
@@ -90,8 +90,9 @@ mode, the item for the mode SYMBOL is looked up in the alist
instead."
(tex-mode . latex-mode)
(plain-tex-mode . latex-mode)
(sgml-mode . " ")
- (xml-mode . sgml-mode)
(html-mode . sgml-mode)
+ (xml-mode . " ") ; XML does not define so use numeric reference
+ (nxml-mode . xml-mode)
(t . " "))
"Alist specifying what is a hard space in the current major mode.
--
1.9.0.279.gdc9e3eb
- [PATCH 0/5] Auto tildify improvements, Michal Nazarewicz, 2014/03/02
- [PATCH 2/5] tildify.el: Change XML hard space to numeric reference.,
Michal Nazarewicz <=
- [PATCH 3/5] tildify.el: Optimise environments regexes, Michal Nazarewicz, 2014/03/02
- [PATCH 1/5] tildify.el: Improve defcustom's types., Michal Nazarewicz, 2014/03/02
- [PATCH 4/5] tildify.el: Rewrite `tildify-region' and co., add foreach function., Michal Nazarewicz, 2014/03/02
- [PATCH 5/5] tildify.el: Add `auto-tildify' and `auto-tildify-mode'., Michal Nazarewicz, 2014/03/02