home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / emacs / 2686 < prev    next >
Encoding:
Internet Message Format  |  1992-07-23  |  2.1 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!caen!nic.umass.edu!dime!dime.cs.umass.edu!moss
  2. From: moss@cs.umass.edu (Eliot Moss)
  3. Newsgroups: comp.emacs
  4. Subject: Re: "Feature" in emacs
  5. Message-ID: <MOSS.92Jul23094416@ibis.cs.umass.edu>
  6. Date: 23 Jul 92 13:44:16 GMT
  7. References: <1992Jul22.064913.16215@cssc-syd.tansu.com.au>
  8.     <RATINOX.92Jul22213523@splinter.coe.northeastern.edu>
  9. Sender: news@dime.cs.umass.edu
  10. Reply-To: moss@cs.umass.edu
  11. Organization: Dept of Comp and Info Sci, Univ of Mass (Amherst)
  12. Lines: 32
  13. In-reply-to: ratinox@splinter.coe.northeastern.edu's message of 23 Jul 92 01:35:23 GMT
  14.  
  15. >>>>> On 23 Jul 92 01:35:23 GMT, ratinox@splinter.coe.northeastern.edu
  16. >>>>> (Richard Pieri/Stainless Steel Rat) said:
  17.  
  18. >>>>> On 22 Jul 92 06:49:13 GMT, mattw@cssc-syd.tansu.com.au (Matthew
  19. >>>>> Watson) said:
  20.  
  21. MW> I just accidentally put an environment variable in a load-file argument
  22. MW> like (load-file "${ENV}/foo.el") Then I looked back later and thought,
  23. MW> "Why is that working?"  Seems that emacs passes the pathname to a shell
  24. MW> or something for evaluation.  Interesting.
  25.  
  26. Richard> Interesting, indeed, because it worked for me, too. I'd say it's
  27. Richard> probably like the parsing of "~/"; sometimes it works, sometimes it
  28. Richard> won't. For portability's sake, (getenv ("VAR")) is much safer.
  29.  
  30. Sheesh! People like RMS go to all the effort to write nice info files for
  31. emacs, and guys like you don't read them! (No significant offense intended,
  32. but it *is* a good thing to read documentation sometimes ...) The emacs info
  33. specifically mentions that $ forms are always do environment variable
  34. substitutions in file names. This won't happen to every *string*, of course,
  35. but it does happen in file names. The info is less explicit about "~", but it
  36. is so ubiquitous in the documentation that it is clear that ~/ and ~foo/ forms
  37. are supported if at all possible on the underlying operating system. (Even
  38. demacs under MSDOS does ~; it just can't do ~foo.)
  39. --
  40.  
  41.         J. Eliot B. Moss, Associate Professor
  42.         Department of Computer Science
  43.         Lederle Graduate Research Center
  44.         University of Massachusetts
  45.         Amherst, MA  01003
  46.         (413) 545-4206, 545-1249 (fax); Moss@cs.umass.edu
  47.