From: Thien-Thi Nguyen <ttn@gnuvola.org>
To: source liu <sourceonly@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: problem repeat entry for a number
Date: Mon, 12 Mar 2012 12:17:23 +0100 [thread overview]
Message-ID: <87mx7mqda4.fsf@gnuvola.org> (raw)
In-Reply-To: Thien-Thi Nguyen's message of "Fri\, 09 Mar 2012 09\:05\:33 +0100"
() Thien-Thi Nguyen <ttn@gnuvola.org>
() Fri, 09 Mar 2012 09:05:33 +0100
got it, thanks for your patience.
first i tried C - h k C-u, and get help message.
of course it gave out some information, but i'm a little dazzled by
the description.
*** part of C -h k C-u *****
Repeating C-u without digits or minus sign
multiplies the argument by 4 each time.
For some commands, just C-u by itself serves as a flag
*** end of C -h k C-u *****
I may treat the flag "C-u" as a *terminating flag* now since i know
C-u can be used this way. but at that time i thought nothing of it
( even not think of type C -u again) and of course, i've no idea about
C -q for quote
input numbers until i got answer from the mailist.
Another way to say that C-u can act as "terminating flag" is this sentence:
C-u following the digits or minus sign ends the argument.
which follows the previous one:
Digits or minus sign following C-u make up the numeric argument.
which in turn follows:
Begin a numeric argument for the following command.
Reading those in order, here is what i think and do:
Begin a numeric argument for OK, having typed C-u once, i have
the following command. now "begun a numeric argument";
i am now in a new state of input
where i can express that argument
directly to Emacs.
Digits or minus sign following Wonderful! In this new state, if
C-u make up the numeric i type digits, they accumulate in
argument. the minibuffer. I like number 9,
so i type 9 because this argument
is meant to tell the next command
to insert a character that many
times. Yeah!
C-u following the digits or OK, now i want to command Emacs
minus sign ends the argument. to insert a char. Normally i can
simply type the char, thus doing
two actions: flagging termination
(leaving the special input state)
and issuing another (self-insert)
command. I wonder why this other
C-u invocation is mentioned here.
Hmm, i see that if i type another
digit now, Emacs does NOT do the
right thing (reading my mind).
Stupid Emacs! I suppose i will
have to separate the actions, and
that's what C-u is for. Perhaps
i can use it for non-digits, too.
Anyway, let's try: i type C-u and
see it in the minibuffer; i type
9 and see "999999999" inserted in
the buffer. Good, Emacs may be
stupid but at the very least it
is obedient.
So, one suggestion to avoid being dazzled is to take it easy
and read the help text slowly, exercizing immediately what you
understand (or misunderstand) to keep your feet on the ground.
This is easy because Emacs is interactive, can undo mistakes,
and is obedient (usually :-D).
i also tried to use C-h k M - <num> and C-h k C-<num>,
but failed to get answer.
This is because you were moving too quickly, as i did when i
presumed you had read the manual. See, we all rush needlessly
sometimes.
then, i tried to find answers through internet, and find
little related information.
If we converse well, perhaps our exchange here will help someone
else in the future. But, there is no guarantee.
finally, I join the list and made a post, and got the
satisfied answers
Thanks for explaining.
if there is better way (or how should i do the search), plz
tell me, it would help a lot.
Well, life is a search, so if you want a better search, live a
better life!
next prev parent reply other threads:[~2012-03-12 11:17 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-07 3:03 problem repeat entry for a number source liu
2012-03-07 3:42 ` Jambunathan K
2012-03-07 4:13 ` source liu
2012-03-07 5:00 ` Deniz Dogan
2012-03-07 8:59 ` source liu
2012-03-07 5:32 ` Teemu Likonen
2012-03-07 9:01 ` source liu
2012-03-08 8:05 ` Thien-Thi Nguyen
2012-03-08 8:17 ` source liu
2012-03-08 8:54 ` Thien-Thi Nguyen
2012-03-08 9:25 ` source liu
2012-03-12 11:17 ` Thien-Thi Nguyen [this message]
2012-03-13 3:13 ` source liu
2012-03-13 10:46 ` Thien-Thi Nguyen
2012-03-13 15:34 ` source liu
2012-03-14 7:22 ` Thien-Thi Nguyen
2012-03-14 8:46 ` source liu
2012-03-13 15:49 ` Drew Adams
2012-03-14 2:12 ` source liu
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=87mx7mqda4.fsf@gnuvola.org \
--to=ttn@gnuvola.org \
--cc=help-gnu-emacs@gnu.org \
--cc=sourceonly@gmail.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).