bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#17777: 24.3.91; Word motion commands are broken


From: Eli Zaretskii
Subject: bug#17777: 24.3.91; Word motion commands are broken
Date: Sat, 18 Jul 2015 15:22:49 +0300

> From: Juri Linkov <address@hidden>
> 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:
>    <C-M-right> (forward-sexp) and <right> (right-char)
> 6. When after repeating the macro with <C-x e> 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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]