[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Rationale behind conversion of a nil prefix arg to numeric 1
From: |
Drew Adams |
Subject: |
RE: Rationale behind conversion of a nil prefix arg to numeric 1 |
Date: |
Sun, 4 Sep 2016 17:52:06 -0700 (PDT) |
> > Yes. Most commands use the argument as a repeat count, so having it
> > default to one makes perfect sense.
>
> Ahh! You mean, like, C-u 80
>
> conveniently draws a line across the screen. Yes, that makes it
> understandable indeed. Sounds like the prefix argument was more or
^
numeric
> less conceived as a repeat count.
Yes. It's a feature. There are several forms a raw prefix argument
can take, and one `prefix-numeric-value' of it, whatever the form.
The latter is called the numeric prefix argument.
A command can test the numeric value (an integer) and do different
things, depending on the value.
A command can also test the raw prefix argument: test for its
presence (non-nil) and even test for its specific non-nil form.
See the Emacs manual, node `Arguments'
http://www.gnu.org/software/emacs/manual/html_node/emacs/Arguments.html
And see the Elisp manual, nodes:
* `Prefix Command Arguments'
http://www.gnu.org/software/emacs/manual/html_node/elisp/Prefix-Command-Arguments.html
* `Interactive Codes' (`p' and `P')
http://www.gnu.org/software/emacs/manual/html_node/elisp/Interactive-Codes.html
- Re: Rationale behind conversion of a nil prefix arg to numeric 1, (continued)
- RE: Rationale behind conversion of a nil prefix arg to numeric 1, Drew Adams, 2016/09/08
- Re: Rationale behind conversion of a nil prefix arg to numeric 1, Andreas Röhler, 2016/09/06
- RE: Rationale behind conversion of a nil prefix arg to numeric 1, Drew Adams, 2016/09/05
- Re: Rationale behind conversion of a nil prefix arg to numeric 1, Florian v. Savigny, 2016/09/05
- RE: Rationale behind conversion of a nil prefix arg to numeric 1, Drew Adams, 2016/09/05
- Re: Rationale behind conversion of a nil prefix arg to numeric 1, B.V. Raghav, 2016/09/05
Re: Rationale behind conversion of a nil prefix arg to numeric 1, Florian v. Savigny, 2016/09/04
- RE: Rationale behind conversion of a nil prefix arg to numeric 1,
Drew Adams <=
Re: Rationale behind conversion of a nil prefix arg to numeric 1, Thien-Thi Nguyen, 2016/09/15