From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thibault Polge Subject: Bug: org-indent-mode with visual-line-mode breaks C-a and C-e Date: Thu, 30 Mar 2017 21:33:24 +0200 Message-ID: <87tw6a36gr.fsf@thb.lt> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37712) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ctfpD-0000tU-VV for emacs-orgmode@gnu.org; Thu, 30 Mar 2017 15:33:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ctfp9-0000SW-18 for emacs-orgmode@gnu.org; Thu, 30 Mar 2017 15:33:39 -0400 Received: from 10.mo7.mail-out.ovh.net ([178.33.250.56]:60208) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ctfp8-0000Ox-RL for emacs-orgmode@gnu.org; Thu, 30 Mar 2017 15:33:34 -0400 Received: from player762.ha.ovh.net (b7.ovh.net [213.186.33.57]) by mo7.mail-out.ovh.net (Postfix) with ESMTP id C05D14966F for ; Thu, 30 Mar 2017 21:33:24 +0200 (CEST) Received: from rudiger.thb.lt (55.184.14.109.rev.sfr.net [109.14.184.55]) (Authenticated sender: thibault@thb.lt) by player762.ha.ovh.net (Postfix) with ESMTPSA id B9B9BE0071 for ; Thu, 30 Mar 2017 21:33:24 +0200 (CEST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain * Summary With visual-line-mode and org-indent-mode activated, C-a and C-e misbehaves on indented text blocks. C-a and C-e sometimes start jumping over lines (ie, go backwards or forward one extra line) and sometimes even reverses direction (C-e goes backward). I can reproduce this from emacs -Q with builtin Org 8.2.10. The issue can also be reproduced without enabling org-indent-mode, although it is much less severe without it. * Steps to reproduce >From emacs -Q: 1. Open the attached document, or create a new org-mode file with an heading and a (preferably long) paragraph or text under it. 2. Enable visual-line-mode and org-indent-mode 3. Reduce Emacs frame width. 4. With text-scale-mode or (set-frame-parameter), seriously increase the font size (if it can't display more than two or three words per line, that's perfect). 5. Go to the last character of the huge paragraph. 6. Start playing with C-a and C-e. The cursor will wander erratically within the paragraph, often in the wrong direction. Notice: setting the frame width, the font size and going to the end of the document is not strictly required, as the bug will appear sooner or later, but in my tests it made it appear much faster, in a matter of seconds.] I'm using Emacs 25.2rc2 with org 9.0.5 from ELPA, but have been experiencing this since Emacs 24.5 and the built-in Org (8.x I believe). I can reproduce under the same conditions with the built-in org of Emacs 25.2rc2 as well. Thanks a lot for your help, Thibault --=-=-= Content-Type: text/x-org Content-Disposition: attachment; filename=org-bug.org * This will break On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as saying through shrinking from toil and pain. These cases are perfectly simple and easy to distinguish. In a free hour, when our power of choice is untrammelled and when nothing prevents our being able to do what we like best, every pleasure is to be welcomed and every pain avoided. But in certain circumstances and owing to the claims of duty or the obligations of business it will frequently occur that pleasures have to be repudiated and annoyances a ccepted. The wise man therefore always holds in these matters to this principle of selection: he rejects pleasures to secure other greater pleasures, or else he endures pains to avoid worse pains. --=-=-=--