all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Benjamin Rutt <rutt+news@cis.ohio-state.edu>
Subject: Re: Yanking multiple times
Date: Wed, 28 May 2003 21:43:47 -0400	[thread overview]
Message-ID: <wc3he7eplws.fsf@gamma.cis.ohio-state.edu> (raw)
In-Reply-To: 8an0h6vehl.fsf@sm.intel.com

Balaji Venkataraman <bvenkata+nospam@sm.intel.com> writes:

> How does one yank the same line multiple times?  e.g. - do a C-a, C-k and
> then paste the same line 20 times (of course I don't want to hit C-y 20
> times). I understand that a numeric argument to C-y, goes back into the 
> kill-ring by that much, rather than repeat the command.

You can do it with a keyboard macro.  In CVS emacsen, you can do

F3 C-y F4

Then, pressing F4 will repeat the C-y.  You can do C-u 20 F4 to repeat
the keyboard macro 20 times.

The same is true in older emacsen with older, still-supported
keybindings, via

C-x ( C-y C-x ) 

followed by

C-u 20 C-x e
-- 
Benjamin

  parent reply	other threads:[~2003-05-29  1:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-28 23:27 Yanking multiple times Balaji Venkataraman
2003-05-28 23:55 ` François Fleuret
2003-05-29  1:36   ` Balaji Venkataraman
2003-05-29  8:11     ` François Fleuret
2003-05-29  1:43 ` Benjamin Rutt [this message]
2003-05-31  1:09   ` Balaji Venkataraman

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=wc3he7eplws.fsf@gamma.cis.ohio-state.edu \
    --to=rutt+news@cis.ohio-state.edu \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.