From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#17047: 24.3.50; visual-line-mode + org-mode + C-f makes cursor jumps to unexpected position Date: Mon, 24 Mar 2014 19:23:00 +0200 Message-ID: <83lhvz1pfv.fsf@gnu.org> References: <8761n91ag5.fsf@yahoo.fr> <87txatyppr.fsf@yahoo.fr> <83zjkk7pgh.fsf@gnu.org> <83vbv87ozy.fsf@gnu.org> <83k3bk3ntj.fsf@gnu.org> <8738i8djd8.fsf_-_@yahoo.fr> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1395681851 22013 80.91.229.3 (24 Mar 2014 17:24:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 24 Mar 2014 17:24:11 +0000 (UTC) Cc: 17047@debbugs.gnu.org To: Nicolas Richard Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 24 18:24:17 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WS8bg-0003Xv-Jt for geb-bug-gnu-emacs@m.gmane.org; Mon, 24 Mar 2014 18:24:16 +0100 Original-Received: from localhost ([::1]:37686 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WS8bg-0007lZ-5e for geb-bug-gnu-emacs@m.gmane.org; Mon, 24 Mar 2014 13:24:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55898) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WS8bX-0007eU-D3 for bug-gnu-emacs@gnu.org; Mon, 24 Mar 2014 13:24:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WS8bS-0005nx-A7 for bug-gnu-emacs@gnu.org; Mon, 24 Mar 2014 13:24:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46738) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WS8bS-0005ns-6r for bug-gnu-emacs@gnu.org; Mon, 24 Mar 2014 13:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WS8bR-0000gb-Qg for bug-gnu-emacs@gnu.org; Mon, 24 Mar 2014 13:24:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Mar 2014 17:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17047 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17047-submit@debbugs.gnu.org id=B17047.13956817982557 (code B ref 17047); Mon, 24 Mar 2014 17:24:01 +0000 Original-Received: (at 17047) by debbugs.gnu.org; 24 Mar 2014 17:23:18 +0000 Original-Received: from localhost ([127.0.0.1]:47920 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WS8ai-0000f4-4D for submit@debbugs.gnu.org; Mon, 24 Mar 2014 13:23:16 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:38527) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WS8ae-0000er-IA for 17047@debbugs.gnu.org; Mon, 24 Mar 2014 13:23:14 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0N2Y00J00ARTXH00@a-mtaout20.012.net.il> for 17047@debbugs.gnu.org; Mon, 24 Mar 2014 19:23:09 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N2Y00JWFAYLM460@a-mtaout20.012.net.il>; Mon, 24 Mar 2014 19:23:09 +0200 (IST) In-reply-to: <8738i8djd8.fsf_-_@yahoo.fr> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:87323 Archived-At: > From: Nicolas Richard > Cc: 17047-done@debbugs.gnu.org > Date: Mon, 24 Mar 2014 10:41:07 +0100 > > > Note that moving cursor to the "f" of "file" from the left will get > > you to position 8, while moving there from the right will get you to > > position 10. But this is a separate "feature". > > This is not unexpected I think. It would be nice to have a visual clue > about which side of the invisible text we stand, but I have no idea what > kind of clue it should be. Is that worth a wishlist bug anyway ? The clue you mention is not what bothers me. What bothers me is that the same position of the cursor corresponds to 2 different text positions, and you can only get to one of them, depending on the direction of the cursor motion. From the left, you get positions 7, 8, 11, 12, ... From the right, you get 12, 11, 10, 7, ... The cursor is positioned on the same character for both 8 and 10. The only justification for this "feature" is that otherwise you couldn't have inserted text before the invisible portion. > > Also note that this situation is one of the small number where > > visual-order-cursor-movement works differently from the default > > logical-order one, even though there's no bidirectional context > > anywhere in sight. And that is also a feature. > > Just for the record, the difference is that no matter if we come from > left or right, we get to position 10. Indeed, because it goes by characters that are actually displayed, and the character at position 8 is not.