From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: no-spam@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.help Subject: Re: overlays inserted Date: Tue, 20 Jun 2006 13:40:45 +0200 Message-ID: References: <1150801839.8448.264225984@webmail.messagingengine.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1150829610 24644 80.91.229.2 (20 Jun 2006 18:53:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 20 Jun 2006 18:53:30 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 20 20:53:25 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FslLb-0006Tk-Og for geh-help-gnu-emacs@m.gmane.org; Tue, 20 Jun 2006 20:53:12 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FslLb-0007Hs-BI for geh-help-gnu-emacs@m.gmane.org; Tue, 20 Jun 2006 14:53:11 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FsedG-0001Wp-Nu for help-gnu-emacs@gnu.org; Tue, 20 Jun 2006 07:42:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FsedF-0001Wc-Fv for help-gnu-emacs@gnu.org; Tue, 20 Jun 2006 07:42:57 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FsedF-0001WY-8C for help-gnu-emacs@gnu.org; Tue, 20 Jun 2006 07:42:57 -0400 Original-Received: from [195.41.46.237] (helo=pfepc.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Fsenk-0000Ml-Tt for help-gnu-emacs@gnu.org; Tue, 20 Jun 2006 07:53:49 -0400 Original-Received: from kfs-l.imdomain.dk.cua.dk (unknown [80.165.4.124]) by pfepc.post.tele.dk (Postfix) with SMTP id 025688A004E; Tue, 20 Jun 2006 13:42:47 +0200 (CEST) Original-To: "Daniel Carvalho" In-Reply-To: <1150801839.8448.264225984@webmail.messagingengine.com> (Daniel Carvalho's message of "Tue, 20 Jun 2006 12:10:39 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-Mailman-Approved-At: Tue, 20 Jun 2006 14:53:00 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:35558 Archived-At: "Daniel Carvalho" 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