From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Ihor Radchenko <yantar92@gmail.com>
Cc: Matt Armstrong <matt@rfc20.org>, 58479@debbugs.gnu.org
Subject: bug#58479: 29.0.50; [feature/noverlay] Displaced overlays in notmuch search buffers after refreshing
Date: Fri, 14 Oct 2022 16:30:03 -0400 [thread overview]
Message-ID: <jwv1qrap4bp.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87bkqfype2.fsf@localhost> (Ihor Radchenko's message of "Fri, 14 Oct 2022 12:56:21 +0800")
> What I see is:
>
> 1. M-x my-b58479
> 2. Hell<point>...rld!
>
> M-x my-dump-overlays
>
> Buffer #<buffer *b58479*> has 2 overlays.
>
> #<overlay from 1 to 15 in *b58479*>
> (window #<window 68 on *b58479*> face hl-line priority -50)
>
> #<overlay from 5 to 10 in *b58479*>
> (invisible ellipsis)
>
> 3. C-d (5 times)
> 4. Hell...
>
> "rld!" disappears!
Thanks, I have fixed this specific problem with the patch below.
Let's hope it also fixes your original issue with notmuch.
Stefan
diff --git a/src/textprop.c b/src/textprop.c
index 04fae528097..b34246f5bc7 100644
--- a/src/textprop.c
+++ b/src/textprop.c
@@ -649,7 +649,8 @@ get_char_property_and_overlay (Lisp_Object position, register Lisp_Object prop,
Lisp_Object tem = Foverlay_get (node->data, prop);
struct sortvec *this;
- if (NILP (tem) || (w && ! overlay_matches_window (w, node->data)))
+ if (NILP (tem) || node->end < pos + 1
+ || (w && ! overlay_matches_window (w, node->data)))
continue;
this = (result == items ? items + 1 : items);
next prev parent reply other threads:[~2022-10-14 20:30 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-13 2:17 bug#58479: 29.0.50; [feature/noverlay] Displaced overlays in notmuch search buffers after refreshing Ihor Radchenko
2022-10-13 4:25 ` Matt Armstrong
2022-10-14 4:56 ` Ihor Radchenko
2022-10-14 20:30 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2022-10-15 1:38 ` Ihor Radchenko
2022-10-15 3:52 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-10-15 4:11 ` Ihor Radchenko
2022-10-15 13:43 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-10-15 14:22 ` Ihor Radchenko
2022-10-16 23:41 ` Matt Armstrong
2022-10-17 1:28 ` Ihor Radchenko
2022-10-17 5:56 ` Matt Armstrong
2022-10-17 8:21 ` Ihor Radchenko
2022-10-17 18:53 ` Matt Armstrong
2022-10-17 22:05 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-10-18 20:38 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-10-19 8:09 ` Ihor Radchenko
2022-10-19 12:31 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-10-19 21:59 ` Matt Armstrong
2022-10-19 22:26 ` Matt Armstrong
2022-10-19 23:49 ` Matt Armstrong
2022-10-20 1:51 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-10-20 21:59 ` Matt Armstrong
2022-10-20 22:34 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwv1qrap4bp.fsf-monnier+emacs@gnu.org \
--to=bug-gnu-emacs@gnu.org \
--cc=58479@debbugs.gnu.org \
--cc=matt@rfc20.org \
--cc=monnier@iro.umontreal.ca \
--cc=yantar92@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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).