all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Corey Foote'" <coreyfoote@hotmail.com>, <help-gnu-emacs@gnu.org>
Subject: RE: Inserting numeric characters multiple times
Date: Tue, 13 Jan 2009 08:15:46 -0800	[thread overview]
Message-ID: <002301c9759a$338a12f0$0200a8c0@us.oracle.com> (raw)
In-Reply-To: <BLU105-W47CD09253EC1C560412A6DAD90@phx.gbl>

> Normally when I want to insert a single character multiple
> times I type C-u N and then the character, where N is the
> number of time I want it inserted. How would I do this if
> the character was a number?

`C-u N C-u 5' inserts `5' N times

The Emacs manual is your friend. `C-h r', the `i C-u' takes you to node
`Arguments', at the end of which you see this:

"You can use a numeric argument before a self-inserting character to
insert multiple copies of it.  This is straightforward when the
character is not a digit; for example, `C-u 6 4 a' inserts 64 copies of
the character `a'.  But this does not work for inserting digits; `C-u 6
4 1' specifies an argument of 641.  You can separate the argument from
the digit to insert with another `C-u'; for example, `C-u 6 4 C-u 1'
does insert 64 copies of the character `1'."





  reply	other threads:[~2009-01-13 16:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-13 16:08 Inserting numeric characters multiple times Corey Foote
2009-01-13 16:15 ` Drew Adams [this message]
2009-01-13 16:23 ` Paul R
2009-01-13 16:26 ` Peter Dyballa

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='002301c9759a$338a12f0$0200a8c0@us.oracle.com' \
    --to=drew.adams@oracle.com \
    --cc=coreyfoote@hotmail.com \
    --cc=help-gnu-emacs@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 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.