[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: overlays inserted
From: |
Kim F. Storm |
Subject: |
Re: overlays inserted |
Date: |
Tue, 20 Jun 2006 13:40:45 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
"Daniel Carvalho" <dcarvalho@xsmail.com> writes:
> (setq ov (make-overlay pos (+ pos 5)))
> (overlay-put ov 'face cara)
> (overlay-put ov 'before-string ">> <<")
>
> then, i would use the function "move-overlay" to move the message.
>
> The problem is that the value of the "before-string" property is
> displayed as if INSERTED in the buffer text. The text after the point is
> displayed shifted to the right. Is it possible to create an overlay the
> OVERWRITES the text? (but without having to edit the buffer)
Try:
(setq ov (make-overlay pos (+ pos 5)))
(overlay-put ov 'face cara)
(overlay-put ov 'display ">> <<")
--
Kim F. Storm http://www.cua.dk
- overlays inserted, Daniel Carvalho, 2006/06/20
- Re: overlays inserted,
Kim F. Storm <=