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

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

bug#37909: 25.3; repeat does not repeat yank correctly


From: Eli Zaretskii
Subject: bug#37909: 25.3; repeat does not repeat yank correctly
Date: Fri, 25 Oct 2019 12:17:50 +0300

> Date: Thu, 24 Oct 2019 21:21:46 +0200
> From: "Ulrich Windl" <Ulrich.Windl@rz.uni-regensburg.de>
> 
> Trying to repeat the last yank 98 times using "C-u 98 M-x repeat" turned out
> that the last yank wasn't inserted 98 times, but the last character of the 
> last
> yank (which is quite unexpected). Most preferrably as a vi-user I'd like C-u 
> 98
> C-y to yank the last kill 98 times, but things seem different.
> 
> For the records: The last kill was "' '{L/R:D=I<1-49>C<6>S< >U}
> {L/R:D=I<0-9>}'", and the text inserted was
> "''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''".

The doc string of 'repeat' says:

  Repeat most recently executed command.
  If REPEAT-ARG is non-nil (interactively, with a prefix argument),
  supply a prefix argument to that command.

So "C-u 98 M-x repeat" invokes the _previous_ command, in your case
C-y, with the argument of 98.  And the documentation of C-y says:

  With argument N, reinsert the Nth most recent kill.

So it does NOT insert the most recent kill 98 times, it inserts the
98th recent kill.

Does this explain what you saw?  If not, what remains unexplained or
unexpected?

Thanks.





reply via email to

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