From unknown Fri Jun 13 11:20:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6534: Suggestion for character references in html-mode Resent-From: Esa Peuha Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 28 Jun 2010 21:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 6534 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 6534@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.127776191118010 (code B ref -1); Mon, 28 Jun 2010 21:52:01 +0000 Received: (at submit) by debbugs.gnu.org; 28 Jun 2010 21:51:51 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OTMF4-0004gR-5R for submit@debbugs.gnu.org; Mon, 28 Jun 2010 17:51:50 -0400 Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OTM3f-0004bA-18 for submit@debbugs.gnu.org; Mon, 28 Jun 2010 17:40:03 -0400 Received: from lists.gnu.org ([199.232.76.165]:44955) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1OTM3a-0005C9-Rq for submit@debbugs.gnu.org; Mon, 28 Jun 2010 17:39:58 -0400 Received: from [140.186.70.92] (port=54801 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OTM3Z-0002bW-Ex for bug-gnu-emacs@gnu.org; Mon, 28 Jun 2010 17:39:58 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HTML_MESSAGE, T_DKIM_INVALID, T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OTM3Y-0005OW-Ii for bug-gnu-emacs@gnu.org; Mon, 28 Jun 2010 17:39:57 -0400 Received: from mail-ww0-f41.google.com ([74.125.82.41]:55725) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OTM3Y-0005OL-Ej for bug-gnu-emacs@gnu.org; Mon, 28 Jun 2010 17:39:56 -0400 Received: by wwf26 with SMTP id 26so3425008wwf.0 for ; Mon, 28 Jun 2010 14:39:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=p0sazm6BorX4+hA7IhsOM2gLBB23JjWalm84Um/0/PM=; b=jz+J+n+MeaWRmaXLb+f2A4EMmosuG6uPih1X2+DvRpRdS0JFplNMsIucv6TmlwOgXb CdBFQQ5CAVeJuhHncNEKk9bzOXZJOI6iXrJpZ86qQDdXZhrCMXC0HKoKW/XXCgpF7jFm SRzfOalYKxLw9d2bfANdbuThehbm/tz1tqdJU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=HtRhJ2WHDfjxuC18H4245GuucXZFG5H5fXrRL4N3ZKZVF1pOHLdsNiLUr/3HLnxBtw u3FSHy8uRrDfWmAnWECRgie6m8FBrleivXKwTPFbd6TNC6kdddCM3kn5AsFkUM6a1O7y WoNz0xdg97O/YRty1XSRs+0q5nF/nip0R6M5w= MIME-Version: 1.0 Received: by 10.216.85.74 with SMTP id t52mr4291084wee.99.1277761194850; Mon, 28 Jun 2010 14:39:54 -0700 (PDT) Received: by 10.216.29.137 with HTTP; Mon, 28 Jun 2010 14:39:54 -0700 (PDT) Date: Tue, 29 Jun 2010 00:39:54 +0300 Message-ID: From: Esa Peuha Content-Type: multipart/alternative; boundary=0016e6db24d1207b13048a1df667 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -5.9 (-----) X-Mailman-Approved-At: Mon, 28 Jun 2010 17:51:48 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.9 (-----) --0016e6db24d1207b13048a1df667 Content-Type: text/plain; charset=ISO-8859-1 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.) --0016e6db24d1207b13048a1df667 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable In nxml-mode, numeric character references (such as  ) are
disp= layed with the referred-to character following the reference. It
would b= e 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.)

--0016e6db24d1207b13048a1df667-- From unknown Fri Jun 13 11:20:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6534: Suggestion for character references in html-mode Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 29 Jun 2010 09:38: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: To: Esa Peuha Cc: 6534@debbugs.gnu.org Received: via spool by 6534-submit@debbugs.gnu.org id=B6534.12778042475910 (code B ref 6534); Tue, 29 Jun 2010 09:38:02 +0000 Received: (at 6534) by debbugs.gnu.org; 29 Jun 2010 09:37:27 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OTXFu-0001XF-7M for submit@debbugs.gnu.org; Tue, 29 Jun 2010 05:37:27 -0400 Received: from smtp-out2.starman.ee ([85.253.0.4] helo=mx2.starman.ee) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OTXFs-0001Wz-QA for 6534@debbugs.gnu.org; Tue, 29 Jun 2010 05:37:25 -0400 X-Virus-Scanned: by Amavisd-New at mx2.starman.ee Received: from mail.starman.ee (82.131.30.159.cable.starman.ee [82.131.30.159]) by mx2.starman.ee (Postfix) with ESMTP id 907853F40EE; Tue, 29 Jun 2010 12:37:18 +0300 (EEST) From: Juri Linkov Organization: JURTA References: Date: Tue, 29 Jun 2010 12:06:55 +0300 In-Reply-To: (Esa Peuha's message of "Tue, 29 Jun 2010 00:39:54 +0300") Message-ID: <87k4pis09k.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -3.6 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.6 (---) > 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. -- Juri Linkov http://www.jurta.org/emacs/ From unknown Fri Jun 13 11:20:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6534: Suggestion for character references in html-mode Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 Mar 2016 14:15: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: To: Juri Linkov Cc: 6534@debbugs.gnu.org, Esa Peuha Received: via spool by 6534-submit@debbugs.gnu.org id=B6534.1456841664803 (code B ref 6534); Tue, 01 Mar 2016 14:15:02 +0000 Received: (at 6534) by debbugs.gnu.org; 1 Mar 2016 14:14:24 +0000 Received: from localhost ([127.0.0.1]:54878 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aal4C-0000Ct-Cv for submit@debbugs.gnu.org; Tue, 01 Mar 2016 09:14:24 -0500 Received: from hermes.netfonds.no ([80.91.224.195]:59620) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aal4A-0000Ck-9C for 6534@debbugs.gnu.org; Tue, 01 Mar 2016 09:14:23 -0500 Received: from 2.151.173.136.tmi.telenormobil.no ([2.151.173.136] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1aal3U-0005pp-2N; Tue, 01 Mar 2016 15:13:40 +0100 From: Lars Ingebrigtsen In-Reply-To: <87k4pis09k.fsf@mail.jurta.org> (Juri Linkov's message of "Tue, 29 Jun 2010 12:06:55 +0300") Date: Tue, 01 Mar 2016 17:04:42 +1100 Message-ID: <87ziuiu41x.fsf@gnus.org> References: <87k4pis09k.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-MailScanner-ID: 1aal3U-0005pp-2N X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1457446420.96566@hm1QdOLaRXpYuenYO50skQ X-Spam-Status: No X-Spam-Score: 1.1 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: 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. [...] Content analysis details: (1.1 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [80.91.224.195 listed in list.dnswl.org] 1.1 DATE_IN_PAST_06_12 Date: is 6 to 12 hours before Received: date X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.1 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: 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. [...] Content analysis details: (1.1 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [80.91.224.195 listed in list.dnswl.org] 1.1 DATE_IN_PAST_06_12 Date: is 6 to 12 hours before Received: date 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? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Fri Jun 13 11:20:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6534: Suggestion for character references in html-mode 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: To: Lars Ingebrigtsen Cc: 6534@debbugs.gnu.org, Esa Peuha Received: via spool by 6534-submit@debbugs.gnu.org id=B6534.145687881519660 (code B ref 6534); Wed, 02 Mar 2016 00:34:02 +0000 Received: (at 6534) by debbugs.gnu.org; 2 Mar 2016 00:33:35 +0000 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 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 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= 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) From: Juri Linkov Organization: LINKOV.NET References: <87k4pis09k.fsf@mail.jurta.org> <87ziuiu41x.fsf@gnus.org> Date: Wed, 02 Mar 2016 02:28:29 +0200 In-Reply-To: <87ziuiu41x.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 01 Mar 2016 17:04:42 +1100") Message-ID: <87k2ll205u.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.91 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) > 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.