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