From: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
To: Daniel Colascione <dan.colascione@gmail.com>
Cc: Emacs developers <emacs-devel@gnu.org>
Subject: Re: more than one prefix argument
Date: Tue, 26 Jul 2011 22:36:22 +0200 [thread overview]
Message-ID: <4E2F2546.3010704@easy-emacs.de> (raw)
In-Reply-To: <4E2F1F1C.2040100@gmail.com>
Am 26.07.2011 22:10, schrieb Daniel Colascione:
> On 7/26/11 12:59 PM, Andreas Röhler wrote:
>> Hi,
>>
>> what about allowing more than one prefix argument
>> by making interactive codes "p" and "P" sending
>> truly separated.
>>
>
> We already have more than one kind of prefix argument: see
> universal-coding-system-argument for an example. You can already define as many
> kinds of "prefix argument" as you'd like: just define a global flag and a
> command to set that flag, and have post-command-hook clear the flag unless (eq
> this-command 'my-prefix-setting-function).
>
Hi,
yes I can, thanks for the hints, which will be helpful.
Let may say however that things like
21.12 Prefix Command Argument
tells it, might be easier, more clear implemented IMHO, it reads:
Here are the possible values of a raw prefix argument:
* `nil', meaning there is no prefix argument. Its numeric value is
1, but numerous commands make a distinction between `nil' and the
integer 1.
* An integer, which stands for itself.
* A list of one element, which is an integer. This form of prefix
argument results from one or a succession of `C-u''s with no
digits. The numeric value is the integer in the list, but some
commands make a distinction between such a list and an integer
alone.
;;;;;;;;;;
well, it's great:
numerous commands make a distinction between `nil' and the
integer 1.
;;;;;;;;;
Indeed: (prefix-numeric-value nil) -->1
But does this make sense in a lisp-environement?
Booleans treat nil and 1 different:
(when 1 (message "%s" "1"))-->1
(when nil (message "%s" "1"))-->nil
Cheers,
Andreas
next prev parent reply other threads:[~2011-07-26 20:36 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-26 19:59 more than one prefix argument Andreas Röhler
2011-07-26 20:10 ` Daniel Colascione
2011-07-26 20:36 ` Andreas Röhler [this message]
2011-07-26 20:57 ` Drew Adams
2011-07-26 20:36 ` Drew Adams
2011-07-27 6:25 ` Andreas Röhler
2011-07-27 9:25 ` Tim Cross
2011-07-27 9:37 ` Andreas Röhler
2011-07-27 9:48 ` Tim Cross
2011-07-27 10:21 ` Andreas Röhler
2011-07-27 11:21 ` Andreas Schwab
2011-07-27 11:46 ` Andreas Röhler
2011-07-27 12:39 ` Andreas Schwab
2011-07-27 12:51 ` Tim Cross
2011-07-27 12:46 ` Tim Cross
2011-07-27 15:09 ` Drew Adams
2011-07-27 9:38 ` Tim Cross
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=4E2F2546.3010704@easy-emacs.de \
--to=andreas.roehler@easy-emacs.de \
--cc=dan.colascione@gmail.com \
--cc=emacs-devel@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.