From: Lars Ingebrigtsen <larsi@gnus.org>
To: Le Wang <l26wang@gmail.com>
Cc: 17784@debbugs.gnu.org
Subject: bug#17784: hilit-chg.el marks bigger change than necessary
Date: Wed, 14 Jul 2021 12:44:13 +0200 [thread overview]
Message-ID: <874kcxkwea.fsf@gnus.org> (raw)
In-Reply-To: <CAM=K+ipOnYkmXWf7r3JQOEfD-ic5+MTd9AdgMf-ri-DAqP0ONQ@mail.gmail.com> (Le Wang's message of "Sat, 14 Jun 2014 23:23:07 -0400")
Le Wang <l26wang@gmail.com> writes:
> 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.
This should now be fixed in Emacs 28. The problem was that the code
tried to cater for the case where you have
hi
_
and then
hi
ab_
then deleting the "a" and then inserting something else. That worked
for "b" (which was already highlighted), but not for "_", which was
not. So I introduced a new text property to separate the two cases.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
prev parent reply other threads:[~2021-07-14 10:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-15 3:23 bug#17784: hilit-chg.el marks bigger change than necessary Le Wang
2014-06-16 21:01 ` Stefan Monnier
2014-06-16 21:35 ` Le Wang
2021-07-14 10:44 ` Lars Ingebrigtsen [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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874kcxkwea.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=17784@debbugs.gnu.org \
--cc=l26wang@gmail.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.