From: Juri Linkov <juri@jurta.org>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 6534@debbugs.gnu.org, Esa Peuha <esa.peuha@gmail.com>
Subject: bug#6534: Suggestion for character references in html-mode
Date: Wed, 02 Mar 2016 02:28:29 +0200 [thread overview]
Message-ID: <87k2ll205u.fsf@mail.linkov.net> (raw)
In-Reply-To: <87ziuiu41x.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 01 Mar 2016 17:04:42 +1100")
> Juri Linkov <juri@jurta.org> writes:
>
>>> In nxml-mode, numeric character references (such as  ) are
>>> displayed with the referred-to character following the reference. It
>>> would be nice if html-mode did the same. (The format of these
>>> references is the same in xml and html, so sharing code for this
>>> should be simple.)
>>
>> I think this functionality should be separated into a new package
>> because it's useful for character notations of other modes as well,
>> e.g. Emacs Lisp with #x, C with 0x, Perl with \x, etc.
>
> That does sound exceedingly useful... Hm... perhaps I should have a go
> at it unless this already exists somewhere?
When I looked at prior art the closest matches were the package rainbow-mode
from ELPA that displays colors by character codes, and prettify-symbols-mode
that transforms characters into alternative representation. But doing this
using font-lock-keywords is so trivial, it was easier to just put a small
piece of code in ~/.emacs.
prev parent reply other threads:[~2016-03-02 0:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-28 21:39 bug#6534: Suggestion for character references in html-mode Esa Peuha
2010-06-29 9:06 ` Juri Linkov
2016-03-01 6:04 ` Lars Ingebrigtsen
2016-03-02 0:28 ` Juri Linkov [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k2ll205u.fsf@mail.linkov.net \
--to=juri@jurta.org \
--cc=6534@debbugs.gnu.org \
--cc=esa.peuha@gmail.com \
--cc=larsi@gnus.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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).