From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Cursor positioning with `after-string' overlays Date: Sat, 03 Apr 2010 13:42:15 +0300 Message-ID: <83ljd424xk.fsf@gnu.org> References: <83bpe3xqjj.fsf@gnu.org> <83ljd6w9p1.fsf@gnu.org> <837hopwvgl.fsf@gnu.org> <836349wo57.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1270291428 10780 80.91.229.12 (3 Apr 2010 10:43:48 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 3 Apr 2010 10:43:48 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 03 12:43:44 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ny0pM-0005TW-Ay for ged-emacs-devel@m.gmane.org; Sat, 03 Apr 2010 12:43:44 +0200 Original-Received: from localhost ([127.0.0.1]:36013 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ny0pL-0005pr-K6 for ged-emacs-devel@m.gmane.org; Sat, 03 Apr 2010 06:43:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ny0oQ-0005Ob-6e for emacs-devel@gnu.org; Sat, 03 Apr 2010 06:42:46 -0400 Original-Received: from [140.186.70.92] (port=45100 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ny0oO-0005Nw-Sg for emacs-devel@gnu.org; Sat, 03 Apr 2010 06:42:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ny0oN-0001wQ-AG for emacs-devel@gnu.org; Sat, 03 Apr 2010 06:42:44 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:36622) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ny0oN-0001wF-3E for emacs-devel@gnu.org; Sat, 03 Apr 2010 06:42:43 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0L0A00800QZA2O00@a-mtaout22.012.net.il> for emacs-devel@gnu.org; Sat, 03 Apr 2010 13:42:16 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([77.124.92.42]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0L0A004QLR2BU660@a-mtaout22.012.net.il>; Sat, 03 Apr 2010 13:42:12 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:123112 Archived-At: > From: Stefan Monnier > Date: Fri, 02 Apr 2010 21:21:09 -0400 > Cc: emacs-devel@gnu.org > > >> But I do not object at all to your general argument "I think this kind > >> of problems should be fixed, not worked around with the `cursor' > >> property". I seem to remember making the same observation, then jumping > >> to the C code, and finally deciding "too hard for me, I'll live with the > >> workaround for now". So if you can fix it, that would be great. > > I'd need to see the requirements first. > > Just that it places the cursor on the "before" or "after" position of > (after|before|display)-strings depending on the > stickiness/insertion-type of the corresponding overlay/text-property. Hmm... this could be possible. But can you first specify, for each combination of (after|before|display)-strings and the insertion-type of the overlay's start and end, where would you want the cursor? I don't have enough experience using these features to be sure I can decide this myself.