From: David Bremner <david@tethera.net>
To: emacs-devel@gnu.org
Subject: help understanding overlay behaviour with images
Date: Wed, 16 Aug 2023 07:45:12 -0300 [thread overview]
Message-ID: <87sf8jtgef.fsf@motzkin.cs.unb.ca> (raw)
I'm not sure if this is a bug or if I misunderstand something. In the
following code sample I expect the image to be hidden, but it isn't,
unless I also hide the previous character, i.e. pass 10 as the first
argument to make-overlay. In both Emacs 28.2 and 29.1 (tested on
Debian), it gets some weird in between state where the point skips over
the image when running left-char or right-char, but the image stays visible.
(let ((buf (get-buffer-create "image-buffer"))
(img (find-image '((:type xpm :file "attach.xpm"))))
(overlay nil))
(switch-to-buffer buf)
(insert "0123456789")
(insert-image img "x")
(insert "0123456789")
(insert "\n")
(setq overlay (make-overlay 11 12))
(overlay-put overlay 'invisible t)
(message "props=%s" (overlay-properties overlay)))
P.S. I'm not subscribed to emacs-devel, so please CC me any answers.
next reply other threads:[~2023-08-16 10:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-16 10:45 David Bremner [this message]
2023-08-16 14:37 ` help understanding overlay behaviour with images Eli Zaretskii
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=87sf8jtgef.fsf@motzkin.cs.unb.ca \
--to=david@tethera.net \
--cc=emacs-devel@gnu.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 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).