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#17823: 24.3.91; end-of-visual-line: incorrect behaviour with truncate-lines and a line-prefix Date: Sat, 21 Jun 2014 15:36:52 +0300 Message-ID: <83ionutp5n.fsf@gnu.org> References: <87r42jv5rr.fsf@yahoo.fr> <83ionvqujt.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1403354306 28186 80.91.229.3 (21 Jun 2014 12:38:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 21 Jun 2014 12:38:26 +0000 (UTC) Cc: 17823-done@debbugs.gnu.org To: theonewiththeevillook@yahoo.fr Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 21 14:38:19 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 1WyKYl-0002SU-Ds for geb-bug-gnu-emacs@m.gmane.org; Sat, 21 Jun 2014 14:38:19 +0200 Original-Received: from localhost ([::1]:44759 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WyKYk-0005GC-W6 for geb-bug-gnu-emacs@m.gmane.org; Sat, 21 Jun 2014 08:38:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50495) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WyKYc-00058f-EI for bug-gnu-emacs@gnu.org; Sat, 21 Jun 2014 08:38:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WyKYW-00087q-A8 for bug-gnu-emacs@gnu.org; Sat, 21 Jun 2014 08:38:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36093) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WyKYW-00087m-7a for bug-gnu-emacs@gnu.org; Sat, 21 Jun 2014 08:38:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WyKYW-00083X-0A for bug-gnu-emacs@gnu.org; Sat, 21 Jun 2014 08:38:04 -0400 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 21 Jun 2014 12:38:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 17823 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 17823@debbugs.gnu.org, eliz@gnu.org, theonewiththeevillook@yahoo.fr Original-Received: via spool by 17823-done@debbugs.gnu.org id=D17823.140335423330881 (code D ref 17823); Sat, 21 Jun 2014 12:38:03 +0000 Original-Received: (at 17823-done) by debbugs.gnu.org; 21 Jun 2014 12:37:13 +0000 Original-Received: from localhost ([127.0.0.1]:55474 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WyKXg-000820-Tx for submit@debbugs.gnu.org; Sat, 21 Jun 2014 08:37:13 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:42530) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WyKXd-00080n-Q8 for 17823-done@debbugs.gnu.org; Sat, 21 Jun 2014 08:37:11 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0N7I00F00QBEDI00@a-mtaout22.012.net.il> for 17823-done@debbugs.gnu.org; Sat, 21 Jun 2014 15:37:03 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N7I00FCJR1QHL10@a-mtaout22.012.net.il>; Sat, 21 Jun 2014 15:37:03 +0300 (IDT) In-reply-to: <83ionvqujt.fsf@gnu.org> 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:90631 Archived-At: > Date: Fri, 20 Jun 2014 21:56:22 +0300 > From: Eli Zaretskii > Cc: 17823@debbugs.gnu.org > > > From: Nicolas Richard > > Date: Fri, 20 Jun 2014 19:40:24 +0200 > > > > (progn > > (insert (make-string 500 ?x)) > > (column-number-mode) ;; just to see it. plays no role. > > (beginning-of-line) > > (setq line-prefix (make-string 10 ? )) > > (visual-line-mode) > > (toggle-truncate-lines 1)) > > > > then hit C-e (end-of-visual-line) a few times. After some hits, the > > cursor doesn't move anymore, although it's not at the end of the line. > > On my machine, it goes to column 70, then 100, then stops there even > > when hitting C-e again. > > > > I expect emacs to scroll horizontally instead > > Why do you expect that? "Visual line" means the line that is on > display. What isn't on display does not exist for this purpose. > > Is there some real-life use case behind this? If so, please show it. Actually, no, don't bother. I found out that this was due to the original code in vertical-motion being incorrect due to some subtle aspect of the display engine which the code ignored. Fixed in revision 117277 on the emacs-24 branch.