home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / gnu / emacs / help / 3935 < prev    next >
Encoding:
Internet Message Format  |  1992-09-01  |  2.2 KB

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