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#17777: 24.3.91; Word motion commands are broken Date: Sat, 18 Jul 2015 15:22:49 +0300 Message-ID: <83d1zp64fa.fsf@gnu.org> References: <8338f7wxse.fsf@gnu.org> <87k38j4wb5.fsf@mail.jurta.org> <87io9jwvq7.fsf_-_@mail.linkov.net> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1437222203 28398 80.91.229.3 (18 Jul 2015 12:23:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 18 Jul 2015 12:23:23 +0000 (UTC) Cc: 17777@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 18 14:23:11 2015 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 1ZGR95-0005OP-HH for geb-bug-gnu-emacs@m.gmane.org; Sat, 18 Jul 2015 14:23:11 +0200 Original-Received: from localhost ([::1]:48278 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZGR94-00036w-Hr for geb-bug-gnu-emacs@m.gmane.org; Sat, 18 Jul 2015 08:23:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46112) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZGR91-00036L-Iq for bug-gnu-emacs@gnu.org; Sat, 18 Jul 2015 08:23:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZGR8w-0002Lb-IQ for bug-gnu-emacs@gnu.org; Sat, 18 Jul 2015 08:23:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51150) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZGR8w-0002LX-ET for bug-gnu-emacs@gnu.org; Sat, 18 Jul 2015 08:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZGR8w-0000UO-9C for bug-gnu-emacs@gnu.org; Sat, 18 Jul 2015 08:23:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 18 Jul 2015 12:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17777 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17777-submit@debbugs.gnu.org id=B17777.14372221661852 (code B ref 17777); Sat, 18 Jul 2015 12:23:02 +0000 Original-Received: (at 17777) by debbugs.gnu.org; 18 Jul 2015 12:22:46 +0000 Original-Received: from localhost ([127.0.0.1]:52596 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZGR8f-0000Tg-Nb for submit@debbugs.gnu.org; Sat, 18 Jul 2015 08:22:45 -0400 Original-Received: from mtaout27.012.net.il ([80.179.55.183]:50301) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZGR8d-0000TR-13 for 17777@debbugs.gnu.org; Sat, 18 Jul 2015 08:22:44 -0400 Original-Received: from conversion-daemon.mtaout27.012.net.il by mtaout27.012.net.il (HyperSendmail v2007.08) id <0NRO00E00NBHWI00@mtaout27.012.net.il> for 17777@debbugs.gnu.org; Sat, 18 Jul 2015 15:19:47 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout27.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NRO00BJKNKZ1Y40@mtaout27.012.net.il>; Sat, 18 Jul 2015 15:19:47 +0300 (IDT) In-reply-to: <87io9jwvq7.fsf_-_@mail.linkov.net> 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:105023 Archived-At: > From: Juri Linkov > Date: Fri, 17 Jul 2015 02:04:00 +0300 > > 0. emacs -Q > 1. (progn > (setq visual-order-cursor-movement t) > (toggle-truncate-lines)) > 2. Insert a long line of e.g. (foobar) (foobar) (foobar) ... > 3. Then try to adjust the window size to put the right window edge > on the closing paren of one of these repeated strings (you may need > to try different window widths before you could reproduce the bug) > 4. Then put the cursor on the beginning of the test line > 5. Now define and repeat the macro consisting of two keys: > (forward-sexp) and (right-char) > 6. When after repeating the macro with the cursor reaches > the right window edge, then the cursor jumps to the second next line > instead of doing the horizontal scrolling. I couldn't reproduce this using the recipe you provided. But here's a much simpler recipe that is 100% reproducible: In step 2, insert a single sexp that is longer than the window width, followed by some text, for example: (foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar) foo Now step 3 is unnecessary, and the problem is clearly visible. Btw, if your recipe is modified to insert an empty line after the above sexp, then running the macro goes down by 2 lines, not by one. I think I fixed this in commit a65e00b, please try.