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#16148: Cursor stuck on line ending w/ visual-order-cursor movement - move-point-visually fails. Date: Sat, 14 Dec 2013 21:37:35 +0200 Message-ID: <83a9g3fclc.fsf@gnu.org> References: <53044678-73E7-46F4-88CE-33D2F2EC3E59@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1387049902 26344 80.91.229.3 (14 Dec 2013 19:38:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 14 Dec 2013 19:38:22 +0000 (UTC) Cc: 16148-done@debbugs.gnu.org To: David Reitter Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Dec 14 20:38:27 2013 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 1Vrv2g-0003Xf-0p for geb-bug-gnu-emacs@m.gmane.org; Sat, 14 Dec 2013 20:38:26 +0100 Original-Received: from localhost ([::1]:48389 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vrv2e-0002Kq-Vw for geb-bug-gnu-emacs@m.gmane.org; Sat, 14 Dec 2013 14:38:24 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50106) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vrv2V-0002Io-9u for bug-gnu-emacs@gnu.org; Sat, 14 Dec 2013 14:38:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vrv2K-0006kM-0b for bug-gnu-emacs@gnu.org; Sat, 14 Dec 2013 14:38:15 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36308) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vrv2J-0006kA-Ti for bug-gnu-emacs@gnu.org; Sat, 14 Dec 2013 14:38:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Vrv2J-0005Rx-FC for bug-gnu-emacs@gnu.org; Sat, 14 Dec 2013 14:38:03 -0500 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 14 Dec 2013 19:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 16148 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 16148@debbugs.gnu.org, eliz@gnu.org, david.reitter@gmail.com Original-Received: via spool by 16148-done@debbugs.gnu.org id=D16148.138704985820913 (code D ref 16148); Sat, 14 Dec 2013 19:38:02 +0000 Original-Received: (at 16148-done) by debbugs.gnu.org; 14 Dec 2013 19:37:38 +0000 Original-Received: from localhost ([127.0.0.1]:50326 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vrv1t-0005RE-OG for submit@debbugs.gnu.org; Sat, 14 Dec 2013 14:37:38 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:44713) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vrv1p-0005R1-Eg for 16148-done@debbugs.gnu.org; Sat, 14 Dec 2013 14:37:34 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MXT00K00AFWLK00@a-mtaout20.012.net.il> for 16148-done@debbugs.gnu.org; Sat, 14 Dec 2013 21:37:31 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MXT00KGWAII7ZA0@a-mtaout20.012.net.il>; Sat, 14 Dec 2013 21:37:31 +0200 (IST) In-reply-to: <53044678-73E7-46F4-88CE-33D2F2EC3E59@gmail.com> 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:81974 Archived-At: > From: David Reitter > Date: Sat, 14 Dec 2013 12:53:51 -0500 > > With a certain combination of settings, cursor movement to the left fails at the (right) end of lines: > > Emacs -Q -nw > > [Enter and evaluate the following:] > > (whitespace-newline-mode 1) > (global-hl-line-mode 1) > (setq visual-order-cursor-movement t) > > [Then press left-arrow repeatedly. Cursor will get "stuck" on a line ending.] Fixed. > - `hl-line-mode' alone does not suffice - it has to the be `global-hl-line-mode'. That's because move-point-visually uses 2 separate strategies, and the problem was only in one of them. You need to work very hard for move-point-visually to fall back on the second strategy, but the combination of the above 2 mode, each one of which is a redisplay optimizations killer, succeeded in doing just that. > Second, simpler recipe: > > Emacs -Q -nw > > [Enter and evaluate the following:] > > (whitespace-newline-mode 1) > > Place cursor at end of line, then M-: (move-point-visually -1) RET. > Nothing happens. This is the same problem (M-: also forces move-point-visually to use the 2nd strategy), so it is also fixed. Thanks.