From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#6534: Suggestion for character references in html-mode Date: Wed, 02 Mar 2016 02:28:29 +0200 Organization: LINKOV.NET Message-ID: <87k2ll205u.fsf@mail.linkov.net> References: <87k4pis09k.fsf@mail.jurta.org> <87ziuiu41x.fsf@gnus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1456878866 5514 80.91.229.3 (2 Mar 2016 00:34:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 2 Mar 2016 00:34:26 +0000 (UTC) Cc: 6534@debbugs.gnu.org, Esa Peuha To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Mar 02 01:34:11 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aaujy-0004wl-Pw for geb-bug-gnu-emacs@m.gmane.org; Wed, 02 Mar 2016 01:34:10 +0100 Original-Received: from localhost ([::1]:53320 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aaujy-0003Jy-BY for geb-bug-gnu-emacs@m.gmane.org; Tue, 01 Mar 2016 19:34:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35023) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aaujv-0003Jn-3t for bug-gnu-emacs@gnu.org; Tue, 01 Mar 2016 19:34:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aaujq-0003eo-LX for bug-gnu-emacs@gnu.org; Tue, 01 Mar 2016 19:34:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59708) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aaujq-0003eZ-AP for bug-gnu-emacs@gnu.org; Tue, 01 Mar 2016 19:34:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aaujq-00057z-5k for bug-gnu-emacs@gnu.org; Tue, 01 Mar 2016 19:34:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 02 Mar 2016 00:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6534 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6534-submit@debbugs.gnu.org id=B6534.145687881519660 (code B ref 6534); Wed, 02 Mar 2016 00:34:02 +0000 Original-Received: (at 6534) by debbugs.gnu.org; 2 Mar 2016 00:33:35 +0000 Original-Received: from localhost ([127.0.0.1]:56831 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aaujP-000571-F4 for submit@debbugs.gnu.org; Tue, 01 Mar 2016 19:33:35 -0500 Original-Received: from sub3.mail.dreamhost.com ([69.163.253.7]:59860 helo=homiemail-a101.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aaujN-00056s-KA for 6534@debbugs.gnu.org; Tue, 01 Mar 2016 19:33:34 -0500 Original-Received: from homiemail-a101.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a101.g.dreamhost.com (Postfix) with ESMTP id A3813117E06A; Tue, 1 Mar 2016 16:33:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jurta.org; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version: content-type; s=jurta.org; bh=Nl2zRDSDzcBte2NeCWa+zq7WXNc=; b=d7 MSdMh4yTlPRK9fKVmJrcz6whdbJhzMkyqj/JPagxEnWpr6eiaXQTtNavzpTT2bdC 7vyUbkdH3ZK6hxs+9H9fBsr8daJkZ1dakd+F9FBLXdQCac+goHaab516t9Pno0sN 7lJGP2iUMbIfBreRpPyPfaM8E5cp07uG+HNgtwH/U= Original-Received: from localhost.linkov.net (82.131.10.45.cable.starman.ee [82.131.10.45]) (Authenticated sender: jurta@jurta.org) by homiemail-a101.g.dreamhost.com (Postfix) with ESMTPA id 97092117E065; Tue, 1 Mar 2016 16:33:30 -0800 (PST) In-Reply-To: <87ziuiu41x.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 01 Mar 2016 17:04:42 +1100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.91 (x86_64-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:114277 Archived-At: > Juri Linkov 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.