From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: overlay property `after-string' Date: Fri, 11 Apr 2003 13:53:07 +0900 (JST) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200304110453.NAA18583@etlken.m17n.org> References: <200304100144.KAA16944@etlken.m17n.org> <200304101344.h3ADiMe3003713@rum.cs.yale.edu> <200304110222.LAA18413@etlken.m17n.org> <200304110431.NAA18545@etlken.m17n.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: main.gmane.org 1050036827 20231 80.91.224.249 (11 Apr 2003 04:53:47 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 11 Apr 2003 04:53:47 +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 06:53:46 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 193qXq-0005G8-00 for ; Fri, 11 Apr 2003 06:53:46 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 193qd8-0008Jq-00 for ; Fri, 11 Apr 2003 06:59:14 +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 193qXa-0004h6-0A for emacs-devel@quimby.gnus.org; Fri, 11 Apr 2003 00:53:30 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 193qXI-0004eS-00 for emacs-devel@gnu.org; Fri, 11 Apr 2003 00:53:12 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 193qXG-0004dC-00 for emacs-devel@gnu.org; Fri, 11 Apr 2003 00:53:11 -0400 Original-Received: from tsukuba.m17n.org ([192.47.44.130]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 193qXF-0004Vi-00; Fri, 11 Apr 2003 00:53:10 -0400 Original-Received: from fs.m17n.org (fs.m17n.org [192.47.44.2])h3B4r8o21798; Fri, 11 Apr 2003 13:53:08 +0900 (JST) (envelope-from handa@m17n.org) Original-Received: from etlken.m17n.org (etlken.m17n.org [192.47.44.125]) h3B4r8A12104; Fri, 11 Apr 2003 13:53:08 +0900 (JST) Original-Received: (from handa@localhost) by etlken.m17n.org (8.8.8+Sun/3.7W-2001040620) id NAA18583; Fri, 11 Apr 2003 13:53:07 +0900 (JST) Original-To: miles@gnu.org In-reply-to: (message from Miles Bader on 11 Apr 2003 13:37:55 +0900) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.2.92 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI) 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:13138 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:13138 I changed Subject: In article , Miles Bader writes: > Kenichi Handa writes: >> > How about using an overlay with an `after-string' property, located at >> > the end of the minibuffer, for the minibuffer-message message itself? >> > Then there's no modification/insertion at all... >> >> Unfortunately, the cursor is shown after that `after-string' >> in that case. > Oh yeah, that !@#*& problem -- I ran in the same thing when I was trying > to do my `error messages don't obscure the users input' patch a long time > ago. > That behavior really should simply be fixed, it's stupid > (but unfortunately, not entirely trivial to fix either). I'm not sure that the current behaviour is a bug. (let (overlay) (insert "abc") (setq overlay (make-overlay (- (point) 3) (point))) (overlay-put overlay 'after-string "hello") (sit-for 2) (delete-overlay overlay)) In this case, it seems that the current behaviour is correct (i.e. the cursor is shown after "hello"). --- Ken'ichi HANDA handa@m17n.org