[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: setnu.el / setnu+.el
From: |
Stefan Monnier |
Subject: |
Re: setnu.el / setnu+.el |
Date: |
Mon, 26 Dec 2005 11:44:31 -0500 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
> 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
- Re: setnu.el / setnu+.el, (continued)
Re: setnu.el / setnu+.el, Sean Sieger, 2005/12/23
Re: setnu.el / setnu+.el, Stefan Monnier, 2005/12/21
- RE: setnu.el / setnu+.el, Drew Adams, 2005/12/22
- Re: setnu.el / setnu+.el, Kevin Rodgers, 2005/12/22
- Message not available
- Re: setnu.el / setnu+.el, Stefan Monnier, 2005/12/22
- RE: setnu.el / setnu+.el, Drew Adams, 2005/12/22
- Re: setnu.el / setnu+.el, Kevin Rodgers, 2005/12/23
- RE: setnu.el / setnu+.el, Drew Adams, 2005/12/23
- Message not available
- Re: setnu.el / setnu+.el,
Stefan Monnier <=
- Re: setnu.el / setnu+.el, Kevin Rodgers, 2005/12/27
- Message not available
- Re: setnu.el / setnu+.el, Stefan Monnier, 2005/12/28
Re: setnu.el / setnu+.el, Stefan Monnier, 2005/12/26