From: source liu <sourceonly@gmail.com>
To: Thien-Thi Nguyen <ttn@gnuvola.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: problem repeat entry for a number
Date: Wed, 14 Mar 2012 16:46:13 +0800 [thread overview]
Message-ID: <CAAzVxgMqat1zUCFyOsBKEXnNRMHJi-0G3bvs3f=tmjnYKoQ9ag@mail.gmail.com> (raw)
In-Reply-To: <871uovtznz.fsf@gnuvola.org>
> (defun p-try (&optional arg)
> "Show ARG in the echo area, as by (interactive \"p\")."
> (interactive "p")
> (message "arg is: %S" arg))
>
> (defun P-try (&optional arg)
> "Show ARG in the echo area, as by (interactive \"P\")."
> (interactive "P")
> (message "arg is: %S" arg))
>
> (global-set-key [(shift return)] 'p-try)
> (global-set-key [(meta return)] 'P-try)
>
> If you evaluate these forms in *scratch*, you can try the
> following experiments:
>
> 1. S-RET
> 2. C-u S-RET
> 3. C-u - S-RET
> 4. C-u - C-u S-RET
> (and so on)
Interesting example, maybe i could start my survey of elisp from here.
Here 4th cases the 2nd C -u serves as mutiple by 4. Right?
> C-u is a way to supply qualified numerical information, and not
> only numerical. Perhaps someone who knows its history can explain
> how it evolved to its present functionality.
Got it. no more questions on this topic for now.
> I am a student of Emacs.
You are modest!
> Thanks for the opportunity to spew. :-D
did it feel more purify of yourself after spew? :-D
--
Liu An
Institution of modern physics, Shanghai, China
next prev parent reply other threads:[~2012-03-14 8:46 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
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 [this message]
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='CAAzVxgMqat1zUCFyOsBKEXnNRMHJi-0G3bvs3f=tmjnYKoQ9ag@mail.gmail.com' \
--to=sourceonly@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=ttn@gnuvola.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.
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).