unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
Subject: RE: repeat the last command n times
Date: Thu, 16 Mar 2006 20:36:30 -0800	[thread overview]
Message-ID: <DNEMKBNJBGPAOPIJOOICCENGDDAA.drew.adams@oracle.com> (raw)
In-Reply-To: <1142290702.226733.105130@u72g2000cwu.googlegroups.com>

    As John said, it works as indicated. That is, it doesn't work together
    with yank, because yank doesn't take the argument as a repeat count.
    The existence of an argument just tells yank that the point should be
    at the beginning of the inserted sequence after insertion. C-u 12 C-y
    doesn't make 12 yanks, but 1 yank with the point being at beginning of
    the inserted string. Now the documentation of repeat (that is C-x z)
    sais that it passes the argument to the command to be repeated. Thus
    C-y C-u 12 C-x z makes first a yank, then repeats it one time. After
    the second yank, the repeated one, the point will be at the beginning
    of the inserted string.

Thank you for making it clear, Florian. The main point is that the prefix
arg is passed to the previous command (the one that is repeated), and it is
that command that interprets the arg as it likes (as usual).

Actually, a prefix arg for `yank' is more complicated than what you
describe. A plain `C-u' (no number) has the effect you describe. But if a
number N is supplied, then `yank' inserts the Nth most recent entry in the
kill-ring. In the example given, `C-u 12 C-y' inserts the 12th most recently
killed span of text.

      reply	other threads:[~2006-03-17  4:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-12 13:59 repeat the last command n times Florian Kaufmann
2006-03-13 21:11 ` Drew Adams
     [not found] ` <mailman.10.1142284306.30034.help-gnu-emacs@gnu.org>
2006-03-13 21:43   ` Johan Bockgård
2006-03-13 22:58   ` Florian Kaufmann
2006-03-17  4:36     ` Drew Adams [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=DNEMKBNJBGPAOPIJOOICCENGDDAA.drew.adams@oracle.com \
    --to=drew.adams@oracle.com \
    /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.
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).