GNU bug report logs - #37909
25.3; repeat does not repeat yank correctly

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: "Ulrich Windl" <Ulrich.Windl@HIDDEN>; Keywords: moreinfo; dated Thu, 24 Oct 2019 19:22:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Added tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 37909 <at> debbugs.gnu.org:


Received: (at 37909) by debbugs.gnu.org; 25 Oct 2019 09:18:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 25 05:18:13 2019
Received: from localhost ([127.0.0.1]:37283 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iNvjZ-0000qo-LF
	for submit <at> debbugs.gnu.org; Fri, 25 Oct 2019 05:18:13 -0400
Received: from eggs.gnu.org ([209.51.188.92]:47298)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1iNvjX-0000qa-KX
 for 37909 <at> debbugs.gnu.org; Fri, 25 Oct 2019 05:18:12 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:36167)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1iNvjS-0007O2-2J; Fri, 25 Oct 2019 05:18:06 -0400
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 <eliz@HIDDEN>)
 id 1iNvjR-0000RY-FZ; Fri, 25 Oct 2019 05:18:05 -0400
Date: Fri, 25 Oct 2019 12:17:50 +0300
Message-Id: <83o8y5w5dt.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: "Ulrich Windl" <Ulrich.Windl@HIDDEN>
In-reply-to: <5DB1F9CA020000A1000349A8@HIDDEN>
 (Ulrich.Windl@HIDDEN)
Subject: Re: bug#37909: 25.3; repeat does not repeat yank correctly
References: <5DB1F9CA020000A1000349A8@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 37909
Cc: 37909 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Date: Thu, 24 Oct 2019 21:21:46 +0200
> From: "Ulrich Windl" <Ulrich.Windl@HIDDEN>
> 
> 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.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#37909; Package emacs. Full text available.

Message received at 37909 <at> debbugs.gnu.org:


Received: (at 37909) by debbugs.gnu.org; 24 Oct 2019 19:27:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 24 15:27:42 2019
Received: from localhost ([127.0.0.1]:36963 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iNilq-0001hs-GY
	for submit <at> debbugs.gnu.org; Thu, 24 Oct 2019 15:27:42 -0400
Received: from mx3.uni-regensburg.de ([194.94.157.148]:60190)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <Ulrich.Windl@HIDDEN>)
 id 1iNilp-0001hc-2T
 for 37909 <at> debbugs.gnu.org; Thu, 24 Oct 2019 15:27:41 -0400
Received: from mx3.uni-regensburg.de (localhost [127.0.0.1])
 by localhost (Postfix) with SMTP id 755166000050
 for <37909 <at> debbugs.gnu.org>; Thu, 24 Oct 2019 21:27:33 +0200 (CEST)
Received: from gwsmtp.uni-regensburg.de (gwsmtp1.uni-regensburg.de
 [132.199.5.51])
 by mx3.uni-regensburg.de (Postfix) with ESMTP id 646FE600004D
 for <37909 <at> debbugs.gnu.org>; Thu, 24 Oct 2019 21:27:33 +0200 (CEST)
Received: from uni-regensburg-smtp1-MTA by gwsmtp.uni-regensburg.de
 with Novell_GroupWise; Thu, 24 Oct 2019 21:27:33 +0200
Message-Id: <5DB1FB23020000A1000349AE@HIDDEN>
X-Mailer: Novell GroupWise Internet Agent 18.1.1 
Date: Thu, 24 Oct 2019 21:27:31 +0200
From: "Ulrich Windl" <Ulrich.Windl@HIDDEN>
To: <37909 <at> debbugs.gnu.org>
Subject: Possible work-around
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 37909
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

There is a work-around (Record yank as a macro, then execute that macro =
repeatedly): C-x ( C-y C-x ) C-u 9 8 C-x e





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#37909; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 24 Oct 2019 19:22:01 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 24 15:22:01 2019
Received: from localhost ([127.0.0.1]:36945 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iNigK-0001YL-0r
	for submit <at> debbugs.gnu.org; Thu, 24 Oct 2019 15:22:00 -0400
Received: from lists.gnu.org ([209.51.188.17]:55386)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <Ulrich.Windl@HIDDEN>)
 id 1iNigI-0001Y8-0R
 for submit <at> debbugs.gnu.org; Thu, 24 Oct 2019 15:21:58 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:56404)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <Ulrich.Windl@HIDDEN>)
 id 1iNigG-0004Iu-GG
 for bug-gnu-emacs@HIDDEN; Thu, 24 Oct 2019 15:21:57 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,URIBL_BLOCKED
 autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <Ulrich.Windl@HIDDEN>)
 id 1iNigE-0006HL-W2
 for bug-gnu-emacs@HIDDEN; Thu, 24 Oct 2019 15:21:56 -0400
Received: from mx2.uni-regensburg.de ([2001:638:a05:137:165:0:3:bdf8]:51136)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <Ulrich.Windl@HIDDEN>)
 id 1iNigE-0006Gm-MT
 for bug-gnu-emacs@HIDDEN; Thu, 24 Oct 2019 15:21:54 -0400
Received: from mx2.uni-regensburg.de (localhost [127.0.0.1])
 by localhost (Postfix) with SMTP id 2D531600004E
 for <bug-gnu-emacs@HIDDEN>; Thu, 24 Oct 2019 21:21:50 +0200 (CEST)
Received: from gwsmtp.uni-regensburg.de (gwsmtp1.uni-regensburg.de
 [132.199.5.51])
 by mx2.uni-regensburg.de (Postfix) with ESMTP id 01199600004D
 for <bug-gnu-emacs@HIDDEN>; Thu, 24 Oct 2019 21:21:47 +0200 (CEST)
Received: from uni-regensburg-smtp1-MTA by gwsmtp.uni-regensburg.de
 with Novell_GroupWise; Thu, 24 Oct 2019 21:21:46 +0200
Message-Id: <5DB1F9CA020000A1000349A8@HIDDEN>
X-Mailer: Novell GroupWise Internet Agent 18.1.1 
Date: Thu, 24 Oct 2019 21:21:46 +0200
From: "Ulrich Windl" <Ulrich.Windl@HIDDEN>
To: <bug-gnu-emacs@HIDDEN>
Subject: 25.3; repeat does not repeat yank correctly
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-Received-From: 2001:638:a05:137:165:0:3:bdf8
X-Spam-Score: -1.4 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.4 (--)

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 th=
e 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=3DI<1-49>C<6>S< >U}
{L/R:D=3DI<0-9>}'", and the text inserted was
"''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''=
''''''''''''''''''''''''''".

In GNU Emacs 25.3.1 (x86_64-suse-linux-gnu, GTK+ Version 3.22.30)
 of 2019-05-04 built on lamb70
Windowing system distributor 'The X.Org Foundation', version 11.0.1200300=
0
System Description:    openSUSE Leap 15.1

Configured using:
 'configure --with-pop --without-hesiod --with-kerberos --with-kerberos5
 --with-xim --with-wide-int --with-file-notification=3Dinotify
 --with-modules --enable-autodepend --prefix=3D/usr
 --mandir=3D/usr/share/man --infodir=3D/usr/share/info --datadir=3D/usr/s=
hare
 --localstatedir=3D/var --sharedstatedir=3D/var/lib --libexecdir=3D/usr/l=
ib

--enable-locallisppath=3D/usr/share/emacs/25.3/site-lisp:/usr/share/emacs=
/site-lisp
 --with-x --with-sound --with-xpm --with-jpeg --with-tiff --with-gif
 --with-png --with-rsvg --with-dbus --with-xft --without-gpm
 --with-x-toolkit=3Dgtk3 --with-xwidgets --with-toolkit-scroll-bars
 --x-includes=3D/usr/include --x-libraries=3D/usr/lib64 --with-libotf
 --with-m17n-flt --build=3Dx86_64-suse-linux 'CFLAGS=3D-fmessage-length=3D=
0
 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=3D2
 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables
 -fstack-clash-protection -g -D_GNU_SOURCE
 -DGDK_DISABLE_DEPRECATION_WARNINGS -DGLIB_DISABLE_DEPRECATION_WARNINGS
 -pipe -Wno-pointer-sign -Wno-unused-variable -Wno-unused-label
 -Wno-unprototyped-calls -fno-optimize-sibling-calls -fno-PIE
 -DSYSTEM_PURESIZE_EXTRA=3D55000 -DSITELOAD_PURESIZE_EXTRA=3D10000 '
 LDFLAGS=3D-Wl,-O2'

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND DBUS GCONF GSETTINGS NOTIFY
ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11 MODULES XWIDGETS

Important settings:
  value of $LC_CTYPE: de_DE.UTF-8
  value of $LC_NUMERIC: POSIX
  value of $LANG: de_DE.UTF-8
  value of $XMODIFIERS: @im=3Dibus
  locale-coding-system: utf-8-unix

Major mode: Shell-script

Minor modes in effect:
  sh-electric-here-document-mode: t
  diff-auto-refine-mode: t
  shell-dirtrack-mode: t
  show-paren-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent messages:
Undo! [2 times]
Mark set
Repeating command 98 self-insert-command
You can run the command =E2=80=98repeat=E2=80=99 with C-x z
Repeating command 98 self-insert-command
Undo!
Mark set
Undo!
Making completion list... [2 times]
GNU Emacs 25.3.1 (x86_64-suse-linux-gnu, GTK+ Version 3.22.30) of 2019-05=
-04

Load-path shadows:
/usr/share/emacs/site-lisp/lilypond-init hides
/usr/share/emacs/site-lisp/site-start.d/lilypond-init

Features:
(shadow sort mail-extr warnings emacsbug message dired rfc822 mml
mml-sec epg epg-config mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums
mail-utils repeat apropos misearch multi-isearch eieio-opt speedbar
sb-image ezimage dframe vc-git sh-script smie smerge-mode cus-edit
wid-edit diff cus-start cus-load diff-mode vc vc-dispatcher vc-filewise
vc-rcs perl-mode ido seq ess-toolbar ess-mouse mouseme thingatpt
browse-url ess-swv ess-noweb ess-noweb-font-lock-mode ess-bugs-l
ess-sas-d ess-sas-l ess-sas-a ess-stata-mode ess-stata-lang cc-vars
cc-defs make-regexp essd-els ess-sp6-d ess-dde ess-sp3-d ess-julia
julia-mode ert pp findess-r-syntax ess-r-completion ess-roxy essddr ess-r=
d noutline outline
easy-mmode hideshow ess-s-lang ess-help ess ess-mode ess-noweb-mode
ess-inf ess-tracebug compile tramp tramp-compat auth-source cl-seq eieio
byte-opt bytecomp byte-compile cl-extra cconv eieio-core gnus-util
mm-util help-fns help-mode mail-prsvr password-cache tramp-loaddefs
cl-macs trampver ucs-normalize shell pcomplete comint ansi-color ring
format-spec advice ess-generics cl gv cl-loaddefs pcase cl-lib
ess-custom executable easymenu ess-compat ess-utils ess-site xfonts
rmailgen paren time-date mule-util delsel lpr tooltip eldoc electric
uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win
term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe
tabulated-list newcomment elisp-mode lisp-mode prog-mode register page
menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock
syntax facemenu font-core frame cl-generic cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help
simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces
cus-face macroexp files text-properties overlay sha1 md5 base64 format
env code-pages mule custom widget hashtable-print-readable backquote
dbusbind inotify dynamic-setting system-font-setting font-render-setting
xwidget-internal move-toolbar gtk x-toolkit x multi-tty
make-network-process emacs)

Memory information:
((conses 16 315008 16003)
 (symbols 48 31274 0)
 (miscs 40 462 461)
 (strings 32 52716 9687)
 (string-bytes 1 1531952)
 (vectors 16 47137)
 (vector-slots 8 859179 3988)
 (floats 8 332 474)
 (intervals 56 2744 70)
 (buffers 976 27))





Acknowledgement sent to "Ulrich Windl" <Ulrich.Windl@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#37909; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 28 Oct 2019 16:00:03 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.