all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@gmail.com>
To: Matt Armstrong <matt@rfc20.org>
Cc: 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 12:56:21 +0800	[thread overview]
Message-ID: <87bkqfype2.fsf@localhost> (raw)
In-Reply-To: <87pmewqrj3.fsf@rfc20.org>

Matt Armstrong <matt@rfc20.org> writes:

> The other half of the problem is this: you can see the ellipsis and I
> cannot, even on the noverlay branch.  When I play around with the buffer
> created by the following I can see the ellipsis up until when the
> overlay has length zero, then it disappears.  This is true on master and
> the noverlay branch.
>
> (defun my-b58479 ()
>   (interactive)
>   (with-current-buffer (get-buffer-create "*b58479*")
>     (add-to-invisibility-spec (cons 'ellipsis t))
>     (goto-char (point-max))
>     (insert "Hello, World! ")
>     (let ((overlay (make-overlay (- (point) 10) (- (point) 5))))
>       (overlay-put overlay 'invisible 'ellipsis))
>     (display-buffer (current-buffer))))
>
> I am not sure why you see the issue and I do not, but the clue might be
> in what `my-dump-overlays' prints.

On my side, playing with my-b58479 yields erroneous behaviour.
Upon deleting the text under overlay, Emacs suddenly hides text _after_
the overlay. Yet, the overlay is reported to be 0-length.

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!

Buffer #<buffer *b58479*> has 2 overlays.

#<overlay from 1 to 10 in *b58479*>
(window #<window 68 on *b58479*> face hl-line priority -50)

#<overlay from 5 to 5 in *b58479*>
(invisible ellipsis)

Also, see the video
https://cubeatic.com/index.php/s/Dd7YinibtfjtYM9

I am at Emacs commit 65a7b5a802a15daa6274403fef822ec3c9b95469.
And I can reproduce the issue with my-b58479 from emacs -Q.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>





  reply	other threads:[~2022-10-14  4:56 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 [this message]
2022-10-14 20:30     ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bkqfype2.fsf@localhost \
    --to=yantar92@gmail.com \
    --cc=58479@debbugs.gnu.org \
    --cc=matt@rfc20.org \
    /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.