emacs-devel
[Top][All Lists]
Advanced

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

Re: Electric punctuation mode


From: Michal Nazarewicz
Subject: Re: Electric punctuation mode
Date: Thu, 04 Feb 2016 14:54:22 +0100
User-agent: Notmuch/0.19+53~g2e63a09 (http://notmuchmail.org) Emacs/25.1.50.1 (x86_64-unknown-linux-gnu)

On Wed, Feb 03 2016, Richard Stallman wrote:
>   > Yes, I’ve been thinking about this overnight and stared wondering
>   > whether a better solution wouldn’t be a mode for HTML documents which
>   > would automatically convert between Unicode characters when editing and
>   > entities when stored on disk.
>
> That might work ok -- I'd have to try it before I could judge.

This all depends what the actual desired behaviour is.

1. If you care about having the file in US-ASCII, having entities be
   translated when reading and saving the file would work.  Of course
   a good question is why one would limit their HTML files to ASCII.

2. If you care about having entities when editing, than the
   aforementioned schema would not work.  Honestly though, I’m somehow
   surprised that you’d prefer HTML entities to proper Unicode
   characters.

The first would be outside of the scope of electrict-punc-mode, the
second would require a custom rule set which, as I described, is doable.

-- 
Best regards
Liege of Serenely Enlightened Majesty of Computer Science,
ミハウ “mina86” ナザレヴイツ  <address@hidden> <xmpp:address@hidden>



reply via email to

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