bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#18730: [PATCH] tildify.el: introduce a `tildify-space-string' variab


From: Michal Nazarewicz
Subject: bug#18730: [PATCH] tildify.el: introduce a `tildify-space-string' variable
Date: Mon, 03 Nov 2014 16:59:10 +0100
User-agent: Notmuch/0.17+15~gb65ca8e (http://notmuchmail.org) Emacs/25.0.50.1 (x86_64-unknown-linux-gnu)

>> +(defcustom tildify-space-string nil

On Thu, Oct 30 2014, Stefan Monnier wrote:
> I think you could use " " as the default value so you can assume the var
> only holds a string.

I'm slightly afraid of using no-break space since it may confuse people
who use incompatible encodings.  Should I just go ahead with it anyway
and have Emacs deal with encodings once user attempts to save the file?

>> -    (sgml-mode . " ")
>> -    (html-mode . sgml-mode)
>
> The new code uses "&#160" for those instead.  Is this change on purpose?

Yes.  This slightly changes observable behaviour but I feel that most
users won't even notice it since they will end up using \u00A0 and for
the rest it might prevent some subtle problems where   is not
defined in XML or XHTML.

-- 
Best regards,                                         _     _
.o. | Liege of Serenely Enlightened Majesty of      o' \,=./ `o
..o | Computer Science,  Michał “mina86” Nazarewicz    (o o)
ooo +--<mpn@google.com>--<xmpp:mina86@jabber.org>--ooO--(_)--Ooo--





reply via email to

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