home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / gnu / emacs / help / 5259 < prev    next >
Encoding:
Text File  |  1993-01-06  |  834 b   |  32 lines

  1. Newsgroups: gnu.emacs.help
  2. Path: sparky!uunet!retix.com!dspencer
  3. From: dspencer@mproj.retix.com (David Spencer)
  4. Subject: Why does completing-read take an ALIST?
  5. Message-ID: <1993Jan6.001155.1238@spock.retix.com>
  6. Sender: dspencer@spock.retix.com (David Spencer)
  7. Organization: Retix, Santa Monica CA
  8. Distribution: na
  9. Date: Wed, 6 Jan 1993 00:11:55 GMT
  10. Lines: 20
  11.  
  12. I've never understood why the second arg to completing-read, 'TABLE',
  13. is an alist.  As far as I can tell, the cdr's of each element are
  14. not used, so why not just make it a list of strings?
  15.  
  16. i.e. you have to say
  17.  
  18. (setq table '(
  19.     ( "print" . nil )
  20.     ( "printer" . nil )
  21.     ( "plastic" . nil ))
  22.  
  23. Whereas I think that you should just be able to say:
  24.  
  25. (setq table '( "print" "printer" "plastic"))
  26.  
  27. As it seems lame to have to add on a '. nil' onto every element.
  28.  
  29.     Thanks,
  30.         Dave
  31.  
  32.