help-gnu-emacs
[Top][All Lists]
Advanced

[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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]