From: Stefan Monnier <monnier@iro.umontreal.ca>
Subject: Re: setnu.el / setnu+.el
Date: Mon, 26 Dec 2005 11:44:31 -0500 [thread overview]
Message-ID: <87bqz395kj.fsf-monnier+gnu.emacs.help@gnu.org> (raw)
In-Reply-To: mailman.20286.1135374622.20277.help-gnu-emacs@gnu.org
> Instead of setting the overlay's before-string property to "...", I
> tried setting its display property to ((margin left-margin) "...") plus
> the left-margin-width variable to the length of "...".
Yes, the use of the display property for such uses is somewhat odd: you have
to use a (dummy) before-string (or after-string) property on an overlay and
place the `display' property on that string. The dummy string should have
length >= 1.
Typically the code looks something like:
(let ((ol (make-overlay start end))) ;; start can be equal to end if you want
(overlay-put ol 'before-string
(propertize " " 'display
<the intersting stuff>)))
See for instance the code of put-image.
Stefan
next prev parent reply other threads:[~2005-12-26 16:44 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.20010.1135147162.20277.help-gnu-emacs@gnu.org>
2005-12-21 17:49 ` setnu.el / setnu+.el Stefan Monnier
2005-12-22 7:24 ` Drew Adams
2005-12-22 16:24 ` Kevin Rodgers
[not found] ` <mailman.20176.1135268751.20277.help-gnu-emacs@gnu.org>
2005-12-22 17:57 ` Stefan Monnier
2005-12-22 18:42 ` Drew Adams
2005-12-23 21:48 ` Kevin Rodgers
2005-12-23 21:57 ` Drew Adams
[not found] ` <mailman.20286.1135374622.20277.help-gnu-emacs@gnu.org>
2005-12-26 16:44 ` Stefan Monnier [this message]
2005-12-27 17:01 ` Kevin Rodgers
[not found] ` <mailman.20559.1135702971.20277.help-gnu-emacs@gnu.org>
2005-12-29 3:56 ` Stefan Monnier
[not found] <mailman.20287.1135375137.20277.help-gnu-emacs@gnu.org>
2005-12-26 16:47 ` Stefan Monnier
2005-12-21 4:54 Sean Sieger
2005-12-21 5:12 ` Drew Adams
2005-12-21 5:22 ` Sean Sieger
2005-12-21 6:38 ` Drew Adams
2005-12-21 15:21 ` Sean Sieger
2005-12-21 17:11 ` Kevin Rodgers
2005-12-22 7:24 ` Drew Adams
2005-12-23 5:07 ` Sean Sieger
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=87bqz395kj.fsf-monnier+gnu.emacs.help@gnu.org \
--to=monnier@iro.umontreal.ca \
/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.
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).