home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!jvnc.net!yale.edu!think.com!barmar
- From: barmar@think.com (Barry Margolin)
- Newsgroups: gnu.emacs.help
- Subject: Re: What's a prefix argument?
- Message-ID: <180pfoINNmme@early-bird.think.com>
- Date: 1 Sep 92 22:05:44 GMT
- References: <37461@sdcc12.ucsd.edu> <17sb61INNlpg@early-bird.think.com> <1992Sep1.044936.10073@digi.lonestar.org>
- Organization: Thinking Machines Corporation, Cambridge MA, USA
- Lines: 39
- NNTP-Posting-Host: telecaster.think.com
-
- In article <1992Sep1.044936.10073@digi.lonestar.org> kgallagh@digi.lonestar.org (Kevin Gallagher) writes:
- >Strictly speaking, a numeric argument is one type of the more general concept
- >of prefix argument. Prefix arguments come in two flavors: numeric and raw.
- >The gory details can be found in the GNU Emacs Lisp Reference Manual, section
- >18.7.
-
- In either format, they refer to the numeric argument. As it says in the
- referenced section, "a @i(prefix argument), a number specified before the
- command itself." The only difference between raw and numeric is whether
- the program cares how the user entered the argument.
-
- >For the GNU Emacs user who is NOT an Emacs Lisp programmer, the phrase
- >"numeric argument" conveys some meaning immediately while the phrase "prefix
- >argument" requires some explanation.
-
- Exactly. And since the descriptions displayed by C-h k and C-h d should be
- geared towards the user, not programmer, I think it is a mistake to use the
- term "prefix argument" in these.
-
- In fact, the distinction between prefix arguments and numeric arguments
- isn't even useful for programmers calling a function. Consider the
- following description:
-
- kill-line:
- Kill the rest of the current line; if no nonblanks there, kill thru newline.
- With prefix argument, kill that many lines from point.
- Negative arguments kill lines backward.
-
- When calling from a program, nil means "no arg",
- a number counts as a prefix arg.
-
- Does it say whether it's talking about a numeric or raw prefix argument?
- When calling it from a program, does the programmer care whether it's a
- prefix argument rather than some other mechanism?
- --
- Barry Margolin
- System Manager, Thinking Machines Corp.
-
- barmar@think.com {uunet,harvard}!think!barmar
-