emacs-devel
[Top][All Lists]
Advanced

[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 “&nbsp;” and so the proper entity reference
for a no-break space is numeric one such as “&#160;”.  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 . "&nbsp;")
-    (xml-mode . sgml-mode)
     (html-mode . sgml-mode)
+    (xml-mode . "&#160;") ; XML does not define &nbsp; 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]