From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#37909: 25.3; repeat does not repeat yank correctly Date: Fri, 25 Oct 2019 12:17:50 +0300 Message-ID: <83o8y5w5dt.fsf@gnu.org> References: <5DB1F9CA020000A1000349A8@gwsmtp.uni-regensburg.de> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="174799"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 37909@debbugs.gnu.org To: "Ulrich Windl" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 25 11:19:21 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iNvkb-000jEr-OP for geb-bug-gnu-emacs@m.gmane.org; Fri, 25 Oct 2019 11:19:17 +0200 Original-Received: from localhost ([::1]:57974 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iNvka-0000un-40 for geb-bug-gnu-emacs@m.gmane.org; Fri, 25 Oct 2019 05:19:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56455) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iNvkN-0000ug-Ot for bug-gnu-emacs@gnu.org; Fri, 25 Oct 2019 05:19:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iNvkM-0007ee-PU for bug-gnu-emacs@gnu.org; Fri, 25 Oct 2019 05:19:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56697) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iNvkM-0007eY-Ia for bug-gnu-emacs@gnu.org; Fri, 25 Oct 2019 05:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iNvkM-0000rw-Br for bug-gnu-emacs@gnu.org; Fri, 25 Oct 2019 05:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 25 Oct 2019 09:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37909 X-GNU-PR-Package: emacs Original-Received: via spool by 37909-submit@debbugs.gnu.org id=B37909.15719950943278 (code B ref 37909); Fri, 25 Oct 2019 09:19:02 +0000 Original-Received: (at 37909) by debbugs.gnu.org; 25 Oct 2019 09:18:14 +0000 Original-Received: from localhost ([127.0.0.1]:37283 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iNvjZ-0000qo-LF for submit@debbugs.gnu.org; Fri, 25 Oct 2019 05:18:13 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:47298) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iNvjX-0000qa-KX for 37909@debbugs.gnu.org; Fri, 25 Oct 2019 05:18:12 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:36167) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iNvjS-0007O2-2J; Fri, 25 Oct 2019 05:18:06 -0400 Original-Received: from [176.228.60.248] (port=3469 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iNvjR-0000RY-FZ; Fri, 25 Oct 2019 05:18:05 -0400 In-reply-to: <5DB1F9CA020000A1000349A8@gwsmtp.uni-regensburg.de> (Ulrich.Windl@rz.uni-regensburg.de) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:170155 Archived-At: > Date: Thu, 24 Oct 2019 21:21:46 +0200 > From: "Ulrich Windl" > > 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.