From: Stefan Kangas <stefan@marxist.se>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Ulrich Windl <Ulrich.Windl@rz.uni-regensburg.de>,
37909-done@debbugs.gnu.org
Subject: bug#37909: 25.3; repeat does not repeat yank correctly
Date: Thu, 16 Jan 2020 15:26:57 +0100 [thread overview]
Message-ID: <87r1zzwk7i.fsf@marxist.se> (raw)
In-Reply-To: <83o8y5w5dt.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 25 Oct 2019 12:17:50 +0300")
Eli Zaretskii <eliz@gnu.org> writes:
>> 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?
More information was requested, but none was given within 11 weeks, so
I'm closing this bug. If this is still an issue, please reply to this
email (use "Reply to all" in your email client) and we can reopen the
bug report.
Best regards,
Stefan Kangas
prev parent reply other threads:[~2020-01-16 14:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-24 19:21 bug#37909: 25.3; repeat does not repeat yank correctly Ulrich Windl
2019-10-24 19:27 ` bug#37909: Possible work-around Ulrich Windl
2019-10-25 9:17 ` bug#37909: 25.3; repeat does not repeat yank correctly Eli Zaretskii
2020-01-16 14:26 ` Stefan Kangas [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r1zzwk7i.fsf@marxist.se \
--to=stefan@marxist.se \
--cc=37909-done@debbugs.gnu.org \
--cc=Ulrich.Windl@rz.uni-regensburg.de \
--cc=eliz@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).