From: Drew Adams <drew.adams@oracle.com>
To: Marius Kjeldahl <marius.kjeldahl@gmail.com>,
Christopher League <league@contrapunctus.net>
Cc: "49645@debbugs.gnu.org" <49645@debbugs.gnu.org>
Subject: bug#49645: [External] : bug#49645: 28.0.50; Bookmark line highlighting remain stuck
Date: Sun, 25 Jul 2021 22:29:33 +0000 [thread overview]
Message-ID: <SJ0PR10MB54886D494668195DCC829DD9F3E79@SJ0PR10MB5488.namprd10.prod.outlook.com> (raw)
In-Reply-To: <CAHdMyCKxz0MjSPqLgnGBNorYu_Qr+U75JUJ+j-qVnkvG3rMkzQ@mail.gmail.com>
You are all welcome to take a look at the Bookmark+ code
for highlighting bookmark locations. It doesn't have a
problem wrt movement or deletion of bookmarks.
E.g., if you set a bookmark at one location in a buffer,
and you later set it at a different location in that
buffer, its highlight is automatically moved to the new
location. And if you delete a bookmark, its highlight
disappears.
The code is in file bookmark+-lit.el, here:
https://www.emacswiki.org/emacs/download/bookmark%2b-lit.el
A description is here:
https://www.emacswiki.org/emacs/BookmarkPlus#HighlightingBookmarkLocations
There, you'll also see this text, which is about a highlight
moving along with the bookmarked text:
"Note: A region, position, or line highlight acts more or
less like an Emacs marker: it moves with the surrounding
text. As you edit the text in the buffer, the highlighted
location can thus become out of sync with the recorded
position. This is normal. When you jump to the bookmark,
its highlight is automatically repositioned to the
recorded location, possibly adjusted according to the
surrounding context."
That wasn't the situation raised by this bug, but it's
related. A bookmark's location needs to keep its highlight,
even as editing text around it moves it around. That's in
addition to the fact that if you change the bookmark location
then its highlight needs to reflect that.
___
And as for all the pushback wrt the introduction of bookmark
highlighting: Bookmark+ highlighting is OFF by default, and
it's configurable per bookmark. It's not an all-or-nothing
thing. The same should be true for vanilla Emacs bookmark
highlighting, IMO.
next prev parent reply other threads:[~2021-07-25 22:29 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-19 14:44 bug#49645: 28.0.50; Bookmark line highlighting remain stuck Marius Kjeldahl
2021-07-19 15:34 ` Lars Ingebrigtsen
2021-07-20 14:14 ` Basil L. Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-07-25 14:34 ` Christopher League
2021-07-25 21:14 ` Marius Kjeldahl
2021-07-25 21:14 ` Marius Kjeldahl
2021-07-25 22:29 ` Drew Adams [this message]
2022-08-21 18:03 ` Lars Ingebrigtsen
2022-08-21 18:46 ` Marius Kjeldahl
2022-08-21 18:58 ` Lars Ingebrigtsen
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=SJ0PR10MB54886D494668195DCC829DD9F3E79@SJ0PR10MB5488.namprd10.prod.outlook.com \
--to=drew.adams@oracle.com \
--cc=49645@debbugs.gnu.org \
--cc=league@contrapunctus.net \
--cc=marius.kjeldahl@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.