[Top][All Lists]

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

bug#17777: 24.3.91; Word motion commands are broken

From: Juri Linkov
Subject: bug#17777: 24.3.91; Word motion commands are broken
Date: Fri, 17 Jul 2015 02:04:00 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (x86_64-pc-linux-gnu)

reopen 17777

>> For testing I tried to set `visual-order-cursor-movement' to t
>> and noticed that it breaks the word motion commands in keyboard macros.
>> Steps to reproduce:
>> 0. emacs -Q
>> 1. (setq visual-order-cursor-movement t)
>> 2. (insert "word word word")
>> 3. C-a C-x ( C-right right C-x ) C-x e e e ...
>> doesn't move point by words, only by characters.
> Thanks, fixed in emacs-24 revision 117241.

I kept this setting in ~/.emacs, and now noticed it not working
in another specific case:

0. emacs -Q
1. (progn
     (setq visual-order-cursor-movement t)
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.

If it's difficult to reproduce this problem, this screenshot
might help you to see the window configuration where starting
to repeat the macro 9 times from the beginning of the foobars line
jumps to the line with the text “Macro:”

PNG image

reply via email to

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