GNU bug report logs - #17784
hilit-chg.el marks bigger change than necessary

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; Reported by: Le Wang <l26wang@HIDDEN>; dated Sun, 15 Jun 2014 03:24:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

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


Received: (at 17784) by debbugs.gnu.org; 16 Jun 2014 21:36:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jun 16 17:36:05 2014
Received: from localhost ([127.0.0.1]:49709 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1WweZQ-0006jE-IR
	for submit <at> debbugs.gnu.org; Mon, 16 Jun 2014 17:36:04 -0400
Received: from mail-we0-f181.google.com ([74.125.82.181]:44852)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <l26wang@HIDDEN>) id 1WweZO-0006ic-1k
 for 17784 <at> debbugs.gnu.org; Mon, 16 Jun 2014 17:36:02 -0400
Received: by mail-we0-f181.google.com with SMTP id q59so6384612wes.12
 for <17784 <at> debbugs.gnu.org>; Mon, 16 Jun 2014 14:35:56 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=mime-version:in-reply-to:references:date:message-id:subject:from:to
 :cc:content-type;
 bh=zhlXeqUHrGVbJlR8o//qvhkLdD6VXTsg6vHPRo5eK7I=;
 b=0u1AYmC6f/ia2IHJTi/miflGFdGKX0n/3theWQhgT65isQKPsf7TOqklaVr0o09RsM
 2fblGTG2Bb1r1tIHQjfqxjhQdcOALoQbFF/pZCOCIKvPGkK/O/6M/26sENJrJvWYwXlP
 xWj+Aa9gsEAOl9OJALVH8EuLSUECSqsn2uZ24nb+MJr3XyU/IXcD8lY73dm3gpzZWgQc
 /gOmP1Gj6Zpn3XN841n7GqkriOOQhiaZxInpertXhmdHbTTbMYeIIHyBhuAIHSQvR3O9
 z5j+4F4YsWDV54lSNnAptlbHVpo/iynXl39ibiJO5Kw9MceHK4w88+2vkPgd0bw8T6si
 SRwQ==
MIME-Version: 1.0
X-Received: by 10.180.37.230 with SMTP id b6mr30808864wik.47.1402954556124;
 Mon, 16 Jun 2014 14:35:56 -0700 (PDT)
Received: by 10.216.18.65 with HTTP; Mon, 16 Jun 2014 14:35:55 -0700 (PDT)
Received: by 10.216.18.65 with HTTP; Mon, 16 Jun 2014 14:35:55 -0700 (PDT)
In-Reply-To: <jwvlhswtvsi.fsf-monnier+emacsbugs@HIDDEN>
References: <CAM=K+ipOnYkmXWf7r3JQOEfD-ic5+MTd9AdgMf-ri-DAqP0ONQ@HIDDEN>
 <jwvlhswtvsi.fsf-monnier+emacsbugs@HIDDEN>
Date: Mon, 16 Jun 2014 17:35:55 -0400
Message-ID: <CAM=K+iqt3OHJ3Uh1YanRgSP=SiD8c1gGEKDjHn4wgU=A4UbpaQ@HIDDEN>
Subject: Re: bug#17784: hilit-chg.el marks bigger change than necessary
From: Le Wang <l26wang@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
Content-Type: multipart/alternative; boundary=e89a8f64701df4341304fbfacf59
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 17784
Cc: 17784 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
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/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: <http://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 (/)

--e89a8f64701df4341304fbfacf59
Content-Type: text/plain; charset=UTF-8

Yes that sounds right.
On 16 Jun 2014 17:02, "Stefan Monnier" <monnier@HIDDEN> wrote:

> > 2. insert "a" on line 2, before "_"
> > 3. backspace
> > 4. insert "a" on line 2, before "_", again
> > 5. inspect text property of "_", and notice it has hilit-chg property
> > even though it hasn't been changed.
>
> IIUC the property is added at step 3 to remember that something was
> removed here.  So I guess what you're saying is that we could remove
> that property at step 4 since the insertion makes it redundant.
>
>
>         Stefan
>

--e89a8f64701df4341304fbfacf59
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<p dir=3D"ltr">Yes that sounds right.</p>
<div class=3D"gmail_quote">On 16 Jun 2014 17:02, &quot;Stefan Monnier&quot;=
 &lt;<a href=3D"mailto:monnier@HIDDEN">monnier@HIDDEN</=
a>&gt; wrote:<br type=3D"attribution"><blockquote class=3D"gmail_quote" sty=
le=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
&gt; 2. insert &quot;a&quot; on line 2, before &quot;_&quot;<br>
&gt; 3. backspace<br>
&gt; 4. insert &quot;a&quot; on line 2, before &quot;_&quot;, again<br>
&gt; 5. inspect text property of &quot;_&quot;, and notice it has hilit-chg=
 property<br>
&gt; even though it hasn&#39;t been changed.<br>
<br>
IIUC the property is added at step 3 to remember that something was<br>
removed here. =C2=A0So I guess what you&#39;re saying is that we could remo=
ve<br>
that property at step 4 since the insertion makes it redundant.<br>
<br>
<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 Stefan<br>
</blockquote></div>

--e89a8f64701df4341304fbfacf59--




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

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


Received: (at 17784) by debbugs.gnu.org; 16 Jun 2014 21:02:15 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jun 16 17:02:15 2014
Received: from localhost ([127.0.0.1]:49684 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Wwe2g-0005st-Uz
	for submit <at> debbugs.gnu.org; Mon, 16 Jun 2014 17:02:15 -0400
Received: from mercure.iro.umontreal.ca ([132.204.24.67]:60560)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <monnier@HIDDEN>) id 1Wwe2e-0005sk-CN
 for 17784 <at> debbugs.gnu.org; Mon, 16 Jun 2014 17:02:13 -0400
Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca
 [132.204.27.50])
 by mercure.iro.umontreal.ca (Postfix) with ESMTP id DDDF824143;
 Mon, 16 Jun 2014 17:02:11 -0400 (EDT)
Received: from lechon.iro.umontreal.ca (lechon.iro.umontreal.ca
 [132.204.27.242])
 by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 3B9B21E5913;
 Mon, 16 Jun 2014 17:01:47 -0400 (EDT)
Received: by lechon.iro.umontreal.ca (Postfix, from userid 20848)
 id 1CBCEB4167; Mon, 16 Jun 2014 17:01:47 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Le Wang <l26wang@HIDDEN>
Subject: Re: bug#17784: hilit-chg.el marks bigger change than necessary
Message-ID: <jwvlhswtvsi.fsf-monnier+emacsbugs@HIDDEN>
References: <CAM=K+ipOnYkmXWf7r3JQOEfD-ic5+MTd9AdgMf-ri-DAqP0ONQ@HIDDEN>
Date: Mon, 16 Jun 2014 17:01:47 -0400
In-Reply-To: <CAM=K+ipOnYkmXWf7r3JQOEfD-ic5+MTd9AdgMf-ri-DAqP0ONQ@HIDDEN>
 (Le Wang's message of "Sat, 14 Jun 2014 23:23:07 -0400")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-DIRO-MailScanner-Information: Please contact the ISP for more information
X-DIRO-MailScanner: Found to be clean
X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel,
 SpamAssassin (score=-2.82, requis 5, autolearn=not spam,
 ALL_TRUSTED -2.82, MC_TSTLAST 0.00)
X-DIRO-MailScanner-From: monnier@HIDDEN
X-Spam-Status: No
X-Spam-Score: -3.3 (---)
X-Debbugs-Envelope-To: 17784
Cc: 17784 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
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/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: <http://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: -3.3 (---)

> 2. insert "a" on line 2, before "_"
> 3. backspace
> 4. insert "a" on line 2, before "_", again
> 5. inspect text property of "_", and notice it has hilit-chg property
> even though it hasn't been changed.

IIUC the property is added at step 3 to remember that something was
removed here.  So I guess what you're saying is that we could remove
that property at step 4 since the insertion makes it redundant.


        Stefan




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

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


Received: (at submit) by debbugs.gnu.org; 15 Jun 2014 03:23:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jun 14 23:23:20 2014
Received: from localhost ([127.0.0.1]:48115 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Ww12N-0007h3-PP
	for submit <at> debbugs.gnu.org; Sat, 14 Jun 2014 23:23:20 -0400
Received: from eggs.gnu.org ([208.118.235.92]:33507)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <l26wang@HIDDEN>) id 1Ww12L-0007gq-T4
 for submit <at> debbugs.gnu.org; Sat, 14 Jun 2014 23:23:18 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <l26wang@HIDDEN>) id 1Ww12F-0002Nx-W4
 for submit <at> debbugs.gnu.org; Sat, 14 Jun 2014 23:23:12 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
 T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:49737)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <l26wang@HIDDEN>) id 1Ww12F-0002Nt-Sw
 for submit <at> debbugs.gnu.org; Sat, 14 Jun 2014 23:23:11 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:35228)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <l26wang@HIDDEN>) id 1Ww12F-00036E-3I
 for bug-gnu-emacs@HIDDEN; Sat, 14 Jun 2014 23:23:11 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <l26wang@HIDDEN>) id 1Ww12E-0002Nj-Ak
 for bug-gnu-emacs@HIDDEN; Sat, 14 Jun 2014 23:23:11 -0400
Received: from mail-wg0-x22a.google.com ([2a00:1450:400c:c00::22a]:34858)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <l26wang@HIDDEN>) id 1Ww12E-0002Nd-2o
 for bug-gnu-emacs@HIDDEN; Sat, 14 Jun 2014 23:23:10 -0400
Received: by mail-wg0-f42.google.com with SMTP id z12so4147313wgg.13
 for <bug-gnu-emacs@HIDDEN>; Sat, 14 Jun 2014 20:23:07 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=mime-version:date:message-id:subject:from:to:content-type;
 bh=oRIc3XMBEBUzE12LeRc6BEfPBLMhfAjk3Hq5k9rXtfA=;
 b=ZVUv/fi7fg3sJwUvviEb5s7eAgqGX0d7x5cpgTvQ8LcEtqMzDHx2cU2U1H1s9Exo/L
 GUgeoUF43DnO2vG7Les3gNDqDT16bVVZ7unySCxCj9NgF0e9nvstoZfVxzY0Cg1svxjZ
 o+aKr5flq4L9ga5TfNpN3hfMq8KxB9dL4LpTElnYvyVg+BXNU60a2rVKHTVpIVne5Git
 2T+uyNUR55CCSax5KRKVBFrP9z4eXWlNQ5P0xNhUKhnguWx4XA1a3Or46hiFYotpq1r1
 IZahTxbMGuZqeMZgarrZ1cYGSGh39Qo58m+zFbF8IgoHqn8rSWPbjFf1QED9PUIHdk2o
 94vg==
MIME-Version: 1.0
X-Received: by 10.180.91.234 with SMTP id ch10mr16501770wib.37.1402802587716; 
 Sat, 14 Jun 2014 20:23:07 -0700 (PDT)
Received: by 10.216.18.65 with HTTP; Sat, 14 Jun 2014 20:23:07 -0700 (PDT)
Date: Sat, 14 Jun 2014 23:23:07 -0400
Message-ID: <CAM=K+ipOnYkmXWf7r3JQOEfD-ic5+MTd9AdgMf-ri-DAqP0ONQ@HIDDEN>
Subject: hilit-chg.el marks bigger change than necessary
From: Le Wang <l26wang@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Content-Type: text/plain; charset=UTF-8
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
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/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: <http://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: -4.0 (----)

Repro steps:

1 create file:
<file>
hi
_
</file>

2. insert "a" on line 2, before "_"

3. backspace

4. insert "a" on line 2, before "_", again

5. inspect text property of "_", and notice it has hilit-chg property
even though it hasn't been changed.


-- 
Le




Acknowledgement sent to Le Wang <l26wang@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#17784; 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: Fri, 31 Oct 2014 17:00:04 UTC

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