all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michal Nazarewicz <mpn@google.com>
To: emacs-devel@gnu.org, "Stefan Monnier" <monnier@iro.umontreal.ca>,
	"Pavel Janík" <Pavel@Janik.cz>, "Milan Zamazal" <pdm@zamazal.org>
Subject: [PATCH 2/5] tildify.el: Change XML hard space to numeric reference.
Date: Sun,  2 Mar 2014 22:55:32 +0100	[thread overview]
Message-ID: <1393797335-18125-3-git-send-email-mpn@google.com> (raw)
In-Reply-To: <1393797335-18125-1-git-send-email-mpn@google.com>

From: Michal Nazarewicz <mina86@mina86.com>

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 <pdm@zamazal.org>
-;; 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




  parent reply	other threads:[~2014-03-02 21:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-02 21:55 [PATCH 0/5] Auto tildify improvements Michal Nazarewicz
2014-03-02 21:55 ` [PATCH 1/5] tildify.el: Improve defcustom's types Michal Nazarewicz
2014-03-02 21:55 ` Michal Nazarewicz [this message]
2014-03-02 21:55 ` [PATCH 3/5] tildify.el: Optimise environments regexes Michal Nazarewicz
2014-03-02 21:55 ` [PATCH 4/5] tildify.el: Rewrite `tildify-region' and co., add foreach function Michal Nazarewicz
2014-03-02 21:55 ` [PATCH 5/5] tildify.el: Add `auto-tildify' and `auto-tildify-mode' Michal Nazarewicz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1393797335-18125-3-git-send-email-mpn@google.com \
    --to=mpn@google.com \
    --cc=Pavel@Janik.cz \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=pdm@zamazal.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.