From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: Cursor positioning with `after-string' overlays Date: Thu, 01 Apr 2010 23:54:16 +0200 Message-ID: <87d3yialfb.fsf@kfs-lx.rd.rdm> References: <83bpe3xqjj.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1270159007 23508 80.91.229.12 (1 Apr 2010 21:56:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 1 Apr 2010 21:56:47 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 01 23:56:41 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 1NxSNU-0005WN-OS for ged-emacs-devel@m.gmane.org; Thu, 01 Apr 2010 23:56:41 +0200 Original-Received: from localhost ([127.0.0.1]:51322 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NxSNU-0003zO-6V for ged-emacs-devel@m.gmane.org; Thu, 01 Apr 2010 17:56:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NxSLZ-0003AS-3n for emacs-devel@gnu.org; Thu, 01 Apr 2010 17:54:41 -0400 Original-Received: from [140.186.70.92] (port=58889 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NxSLX-00039Z-H7 for emacs-devel@gnu.org; Thu, 01 Apr 2010 17:54:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NxSLW-0003XC-Ga for emacs-devel@gnu.org; Thu, 01 Apr 2010 17:54:39 -0400 Original-Received: from ge0.mail1.hoer.dk.ip.fullrate.dk ([90.185.1.42]:50026 helo=smtp.fullrate.dk) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NxSLM-0003VC-8p; Thu, 01 Apr 2010 17:54:28 -0400 Original-Received: from kfs-lx.rd.rdm.cua.dk (3008ds4-amb.0.fullrate.dk [90.184.173.162]) by smtp.fullrate.dk (Postfix) with SMTP id 3BB349D04E; Thu, 1 Apr 2010 23:54:17 +0200 (CEST) In-Reply-To: <83bpe3xqjj.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 01 Apr 2010 16:15:12 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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:123038 Archived-At: Eli Zaretskii writes: > The old version puts the cursor on `-' because it examines the glyphs > from left to right, and finds the glyph with a `cursor' property > _before_ it has a chance to see that `b' has the required character > position. > > Does anyone think that the version on the trunk is wrong and the old > one is right? > > More generally, what are the use-cases for putting the `cursor' > property on a `before-string' or `after-string' overlay, and what is > expected from cursor positioning in those use-cases? CUA rectangle mode may use the old behaviour to place cursor midway through a tab character - I cannot judge from your example if that is still working with the trunk code, and I don't have time to check one out (I got lost in the Bazaar)... But you can easily try it out. Just enter: M-x cua-mode RET a C-q C-i b C-a C-RET C-f C-f C-f .. cursor should move successively from a through the tab until it reaches b -- Kim F. Storm http://www.cua.dk