GNU bug report logs - #6534
Suggestion for character references in html-mode

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: Esa Peuha <esa.peuha@HIDDEN>; dated Mon, 28 Jun 2010 21:52:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 6534 <at> debbugs.gnu.org:


Received: (at 6534) by debbugs.gnu.org; 2 Mar 2016 00:33:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Mar 01 19:33:35 2016
Received: from localhost ([127.0.0.1]:56831 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aaujP-000571-F4
	for submit <at> 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 <juri@HIDDEN>) id 1aaujN-00056s-KA
 for 6534 <at> 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@HIDDEN)
 by homiemail-a101.g.dreamhost.com (Postfix) with ESMTPA id 97092117E065;
 Tue,  1 Mar 2016 16:33:30 -0800 (PST)
From: Juri Linkov <juri@HIDDEN>
To: Lars Ingebrigtsen <larsi@HIDDEN>
Subject: Re: bug#6534: Suggestion for character references in html-mode
Organization: LINKOV.NET
References: <AANLkTil_x6HfwE7joR6BMmf5pPWnJUX6EH_uzYeq4ylP@HIDDEN>
 <87k4pis09k.fsf@HIDDEN> <87ziuiu41x.fsf@HIDDEN>
Date: Wed, 02 Mar 2016 02:28:29 +0200
In-Reply-To: <87ziuiu41x.fsf@HIDDEN> (Lars Ingebrigtsen's message of "Tue,
 01 Mar 2016 17:04:42 +1100")
Message-ID: <87k2ll205u.fsf@HIDDEN>
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-Debbugs-Envelope-To: 6534
Cc: 6534 <at> debbugs.gnu.org, Esa Peuha <esa.peuha@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

> Juri Linkov <juri@HIDDEN> writes:
>
>>> In nxml-mode, numeric character references (such as &#160;) 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.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#6534; Package emacs. Full text available.

Message received at 6534 <at> debbugs.gnu.org:


Received: (at 6534) by debbugs.gnu.org; 1 Mar 2016 14:14:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Mar 01 09:14:24 2016
Received: from localhost ([127.0.0.1]:54878 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aal4C-0000Ct-Cv
	for submit <at> 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 <larsi@HIDDEN>) id 1aal4A-0000Ck-9C
 for 6534 <at> 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 <larsi@HIDDEN>)
 id 1aal3U-0005pp-2N; Tue, 01 Mar 2016 15:13:40 +0100
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Juri Linkov <juri@HIDDEN>
Subject: Re: bug#6534: Suggestion for character references in html-mode
In-Reply-To: <87k4pis09k.fsf@HIDDEN> (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@HIDDEN>
References: <AANLkTil_x6HfwE7joR6BMmf5pPWnJUX6EH_uzYeq4ylP@HIDDEN>
 <87k4pis09k.fsf@HIDDEN>
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@HIDDEN
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 <juri@HIDDEN> writes: >> In nxml-mode, numeric
 character references (such as &#160;) 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-Debbugs-Envelope-To: 6534
Cc: 6534 <at> debbugs.gnu.org, Esa Peuha <esa.peuha@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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 <juri@HIDDEN> writes: >> In nxml-mode, numeric
    character references (such as &#160;) 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 <juri@HIDDEN> writes:

>> In nxml-mode, numeric character references (such as &#160;) 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




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#6534; Package emacs. Full text available.

Message received at 6534 <at> debbugs.gnu.org:


Received: (at 6534) by debbugs.gnu.org; 29 Jun 2010 09:37:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jun 29 05:37:27 2010
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1OTXFu-0001XF-7M
	for submit <at> 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 <juri@HIDDEN>) id 1OTXFs-0001Wz-QA
	for 6534 <at> 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 <juri@HIDDEN>
To: Esa Peuha <esa.peuha@HIDDEN>
Subject: Re: bug#6534: Suggestion for character references in html-mode
Organization: JURTA
References: <AANLkTil_x6HfwE7joR6BMmf5pPWnJUX6EH_uzYeq4ylP@HIDDEN>
Date: Tue, 29 Jun 2010 12:06:55 +0300
In-Reply-To: <AANLkTil_x6HfwE7joR6BMmf5pPWnJUX6EH_uzYeq4ylP@HIDDEN>
	(Esa Peuha's message of "Tue, 29 Jun 2010 00:39:54 +0300")
Message-ID: <87k4pis09k.fsf@HIDDEN>
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-Debbugs-Envelope-To: 6534
Cc: 6534 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -3.6 (---)

> In nxml-mode, numeric character references (such as &#160;) 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/




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#6534; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 28 Jun 2010 21:51:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jun 28 17:51:50 2010
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1OTMF4-0004gR-5R
	for submit <at> 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 <esa.peuha@HIDDEN>) id 1OTM3f-0004bA-18
	for submit <at> 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 <esa.peuha@HIDDEN>) id 1OTM3a-0005C9-Rq
	for submit <at> 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@HIDDEN; 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 <esa.peuha@HIDDEN>) id 1OTM3Y-0005OW-Ii
	for bug-gnu-emacs@HIDDEN; 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 <esa.peuha@HIDDEN>) id 1OTM3Y-0005OL-Ej
	for bug-gnu-emacs@HIDDEN; Mon, 28 Jun 2010 17:39:56 -0400
Received: by wwf26 with SMTP id 26so3425008wwf.0
	for <bug-gnu-emacs@HIDDEN>; 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: <AANLkTil_x6HfwE7joR6BMmf5pPWnJUX6EH_uzYeq4ylP@HIDDEN>
Subject: Suggestion for character references in html-mode
From: Esa Peuha <esa.peuha@HIDDEN>
To: bug-gnu-emacs@HIDDEN
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-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Mon, 28 Jun 2010 17:51:48 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> 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 &#160;) 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 &amp;#160;) are<br>disp=
layed with the referred-to character following the reference. It<br>would b=
e nice if html-mode did the same. (The format of these<br>references is the=
 same in xml and html, so sharing code for this<br>
should be simple.)<br><br>

--0016e6db24d1207b13048a1df667--




Acknowledgement sent to Esa Peuha <esa.peuha@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#6534; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.