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

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

bug#23999: 25.0.95; Emacs hangs in rectangle-mark-mode with numeric pref


From: Stefan Monnier
Subject: bug#23999: 25.0.95; Emacs hangs in rectangle-mark-mode with numeric prefix argument to `C-f'
Date: Fri, 22 Jul 2016 10:17:50 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

>> @@ -644,7 +644,7 @@ rectangle--*-char
>>                 (curcol (current-column))
>>                 (nextcol
>>                  (condition-case nil
>> -                    (save-excursion
>> +                    (progn
>>                        (funcall cmd 1)
>>                        (cond
>>                         ((> bol (point)) (- curcol 1))

Hmm... this function is quite messy.  Using `progn' here make it even
more messy (e.g. what happens when you jump over some TAB among the
N movements).

My impression is that the whole `save-excursion' thingy should be moved
out of the while loop.  And actually there probably shouldn't be any
such loop at all: we should just do +n or -n directly.


        Stefan





reply via email to

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