From: Eli Zaretskii <eliz@gnu.org>
To: Stefan Monnier <monnier@IRO.UMontreal.CA>
Cc: feeley@IRO.UMontreal.CA, stephen@xemacs.org, emacs-devel@gnu.org
Subject: Re: There should be an option to set the display size of an image to zero
Date: Wed, 18 Sep 2013 19:38:34 +0300 [thread overview]
Message-ID: <83y56um6et.fsf@gnu.org> (raw)
In-Reply-To: <jwvr4cmyv5h.fsf-monnier+emacs@gnu.org>
> From: Stefan Monnier <monnier@IRO.UMontreal.CA>
> Date: Wed, 18 Sep 2013 12:10:44 -0400
> Cc: feeley@IRO.UMontreal.CA, stephen@xemacs.org, emacs-devel@gnu.org
>
> > One possible idea -- not sure if it fits the purpose -- is to overlay
> > transparent-background images on top of the displayed text, not unlike
> > what we do with mouse pointers.
>
> That's the idea, I think, yes.
>
> Combined with posn-point which lets us find the XY coordinates of
> a particular buffer position
It's the other way around: given XY coordinates, it finds buffer
position at those coordinates. I guess you meant posn-at-point
instead.
> it should be possible to build (in Elisp) the right SVG image and
> tell Emacs to overlay it on top the text.
I believe you; I know nothing about SVG, except that it is a vector
image and is specified in XML.
> Ideally, the primitive could look like a `display' spec which says
> "overlay the image at offset XY relative to the current position".
I guess you mean "relative to specified POSITION", because there's
only one current position, which sounds too restrictive.
> But if it's too difficult to handle it that way, a simpler (from the
> C code PoV) approach might be a window property which says "overlay this
> image over the whole window's text".
I think the difficulty is the same: we need a separate display
operation invoked when the redisplay cycle is completed. We also need
to figure out what to do when redisplay is preempted before it
completes. Determining the anchor position, relative to which the
image is displayed, could also need some thought, because that
position might not be visible.
next prev parent reply other threads:[~2013-09-18 16:38 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-17 2:37 There should be an option to set the display size of an image to zero Marc Feeley
2013-09-17 6:26 ` Eli Zaretskii
2013-09-17 7:19 ` Stephen J. Turnbull
2013-09-17 7:31 ` Eli Zaretskii
2013-09-17 12:50 ` Marc Feeley
2013-09-17 14:02 ` Eli Zaretskii
2013-09-17 14:43 ` Marc Feeley
2013-09-17 16:10 ` Eli Zaretskii
2013-09-17 16:15 ` Marc Feeley
2013-09-17 16:56 ` chad
2013-09-17 21:57 ` Stefan Monnier
2013-09-18 6:56 ` Eli Zaretskii
2013-09-18 15:18 ` Jan Djärv
2013-09-18 16:10 ` Stefan Monnier
2013-09-18 16:38 ` Eli Zaretskii [this message]
2013-09-18 17:06 ` Stefan Monnier
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=83y56um6et.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=feeley@IRO.UMontreal.CA \
--cc=monnier@IRO.UMontreal.CA \
--cc=stephen@xemacs.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.