Subject: Re: bug#23999: 25.0.95; Emacs hangs in rectangle-mark-mode with numeric prefix argument to `C-f'

From: Stefan Monnier <[email-masked]>
Date: Fri, 22 Jul 2016 10:17:50 -0400

>> @@ -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