From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: overlay property `after-string' Date: 11 Apr 2003 14:02:23 +0900 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <200304100144.KAA16944@etlken.m17n.org> <200304101344.h3ADiMe3003713@rum.cs.yale.edu> <200304110222.LAA18413@etlken.m17n.org> <200304110431.NAA18545@etlken.m17n.org> <200304110453.NAA18583@etlken.m17n.org> Reply-To: Miles Bader NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1050037540 22001 80.91.224.249 (11 Apr 2003 05:05:40 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 11 Apr 2003 05:05:40 +0000 (UTC) Cc: monnier+gnu/emacs@rum.cs.yale.edu Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri Apr 11 07:05:39 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 193qjL-0005ij-00 for ; Fri, 11 Apr 2003 07:05:39 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 193qod-0008T4-00 for ; Fri, 11 Apr 2003 07:11:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 193qii-0001CM-04 for emacs-devel@quimby.gnus.org; Fri, 11 Apr 2003 01:05:00 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 193qiO-00017I-00 for emacs-devel@gnu.org; Fri, 11 Apr 2003 01:04:40 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 193qiM-000134-00 for emacs-devel@gnu.org; Fri, 11 Apr 2003 01:04:39 -0400 Original-Received: from tyo201.gate.nec.co.jp ([202.32.8.214]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 193qiL-0000yq-00; Fri, 11 Apr 2003 01:04:37 -0400 Original-Received: from mailgate4.nec.co.jp ([10.7.69.197])h3B54KM20802; Fri, 11 Apr 2003 14:04:21 +0900 (JST) Original-Received: (from root@localhost) by mailgate4.nec.co.jp (8.11.6/3.7W-MAILGATE-NEC) id h3B54Km03818; Fri, 11 Apr 2003 14:04:20 +0900 (JST) Original-Received: from edtmg05.lsi.nec.co.jp ([10.26.17.202]) by mailsv.nec.co.jp (8.11.6/3.7W-MAILSV-NEC) with ESMTP id h3B52OC04012; Fri, 11 Apr 2003 14:04:05 +0900 (JST) Original-Received: from mcsss2.ucom.lsi.nec.co.jp (localhost [127.0.0.1]) id OAA29693; Fri, 11 Apr 2003 14:02:23 +0900 (JST) Original-Received: from mcspd15.ucom.lsi.nec.co.jp (mcspd15 [10.30.114.174]) with ESMTP id h3B52NNH007023; Fri, 11 Apr 2003 14:02:23 +0900 (JST) Original-Received: by mcspd15.ucom.lsi.nec.co.jp (Postfix, from userid 31295) id 43A133704; Fri, 11 Apr 2003 14:02:23 +0900 (JST) Original-To: Kenichi Handa System-Type: i686-pc-linux-gnu Blat: Foop In-Reply-To: <200304110453.NAA18583@etlken.m17n.org> Original-Lines: 22 Original-cc: emacs-devel@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:13139 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:13139 Kenichi Handa writes: > I'm not sure that the current behaviour is a bug. ... > In this case, it seems that the current behaviour is correct > (i.e. the cursor is shown after "hello"). It's dependent on the insertion-type of the overlay; basically, the cursor should be displayed relative to the overlay text wherever text will be inserted relative to the overlay text. For instance, try this modified version of your example: (let (overlay) (insert "abc") (setq overlay (make-overlay (- (point) 3) (point) nil nil t)) (overlay-put overlay 'after-string "[hello]")) Now type -- whoa, wierd! -Miles -- "1971 pickup truck; will trade for guns"