emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Psionic K <psionik@positron.solutions>
To: emacs-orgmode@gnu.org
Subject: hiding image with overlays; bounds issue
Date: Fri, 22 Nov 2024 18:41:27 +0900	[thread overview]
Message-ID: <CADQMGARUGASJq3NUq7jgGHWktp0Wawy-qkGsN=swbFG5PBjO=w@mail.gmail.com> (raw)

Dslide needs to dynamically show and hide content.  I have been
relying on overlays just for ease of accounting.  Text properties are
a valid fallback if I decide overlays are too fiddly.

I've run into a few cases where if I don't extend the overlay to
underlap the beginning of an image, the overlay does not result in the
image being hidden.  Another case is a bit more egregious, but I
couldn't put the example into dslide's demo.org file.

I can probably diagnose this later with fresh eyes, but at this time,
I am in need of freeing some biological memory and wanted to ask in
case it's obvious what likely went wrong.

The offending code hunks are the calls to `1-` here in
https://github.com/positron-solutions/dslide/commit/ef9b7fe09551e0498a174a3ffa5b48b465cb1a07

Btw, this will be in the next dslide release that I am about to cut.
Some cool features got added.  Available in master and I appreciate
running the demo.org to smoke out issues before I tag the release.


                 reply	other threads:[~2024-11-22  9:42 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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.orgmode.org/

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

  git send-email \
    --in-reply-to='CADQMGARUGASJq3NUq7jgGHWktp0Wawy-qkGsN=swbFG5PBjO=w@mail.gmail.com' \
    --to=psionik@positron.solutions \
    --cc=emacs-orgmode@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/org-mode.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).