unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* multiple images in an overlay before-string?
       [not found] <2cd46e7f0605090859i2599a74eq9577f6b641b0976e@mail.gmail.com>
@ 2006-05-09 16:15 ` Ken Manheimer
  2006-05-10 10:04   ` Kim F. Storm
       [not found]   ` <mailman.1630.1147255600.9609.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 3+ messages in thread
From: Ken Manheimer @ 2006-05-09 16:15 UTC (permalink / raw)


hi, all.

i want to prefix lines in a region (the interior body lines of an
outline item) with multiple images (constituting the graphical "guide
lines" of the outline structure).  i want the images to not be part of
the saved text, so using the before-string overlay property seems like
the right thing.  it looks like i have to use multiple overlays, each
with a single image, because i don't see any way to put multiple
images in a single image specification.  is that so?

using multiple overlays at the same point is quite doable, but thought
i'd ask first, to try to reduce the number of separate entities to
manage.

thanks for any info, whether that's some alternative i missed or
confirmation that there is no better way...
--
ken manheimer
ken.manheimer@gmail.com
http://myriadicity.net

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: multiple images in an overlay before-string?
  2006-05-09 16:15 ` multiple images in an overlay before-string? Ken Manheimer
@ 2006-05-10 10:04   ` Kim F. Storm
       [not found]   ` <mailman.1630.1147255600.9609.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 3+ messages in thread
From: Kim F. Storm @ 2006-05-10 10:04 UTC (permalink / raw)


"Ken Manheimer" <ken.manheimer@gmail.com> writes:

> hi, all.
>
> i want to prefix lines in a region (the interior body lines of an
> outline item) with multiple images (constituting the graphical "guide
> lines" of the outline structure).  i want the images to not be part of
> the saved text, so using the before-string overlay property seems like
> the right thing.  it looks like i have to use multiple overlays, each
> with a single image, because i don't see any way to put multiple
> images in a single image specification.  is that so?

I think this will work:

Say, you need three images, use a 3-char before string and put
an display/image property on each of those chars.

-- 
Kim F. Storm  http://www.cua.dk

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: multiple images in an overlay before-string?
       [not found]   ` <mailman.1630.1147255600.9609.help-gnu-emacs@gnu.org>
@ 2006-05-11 17:28     ` Stefan Monnier
  0 siblings, 0 replies; 3+ messages in thread
From: Stefan Monnier @ 2006-05-11 17:28 UTC (permalink / raw)


> Say, you need three images, use a 3-char before string and put
> an display/image property on each of those chars.

Note that if the 3 images are the same, you have that the value of the
`display' property is not `eq'ual for all 3 chars, otherwise Emacs will
think it's a single image that covers 3 chars.


        Stefan

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-05-11 17:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <2cd46e7f0605090859i2599a74eq9577f6b641b0976e@mail.gmail.com>
2006-05-09 16:15 ` multiple images in an overlay before-string? Ken Manheimer
2006-05-10 10:04   ` Kim F. Storm
     [not found]   ` <mailman.1630.1147255600.9609.help-gnu-emacs@gnu.org>
2006-05-11 17:28     ` Stefan Monnier

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).