home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / gnu / emacs / help / 4084 < prev    next >
Encoding:
Text File  |  1992-09-11  |  1.2 KB  |  36 lines

  1. Path: sparky!uunet!airgun!airgun.wg.waii.com!jct
  2. From: jct@se33.wg2.waii.com (Jim Thompson)
  3. Newsgroups: gnu.emacs.help
  4. Subject: Re: set environment variables within emacs
  5. Message-ID: <JCT.92Sep11062743@se33.wg2.waii.com>
  6. Date: 11 Sep 92 10:27:43 GMT
  7. References: <9209110054.AA12527@accura_nc.aisg.com>
  8. Sender: news@airgun.wg.waii.com
  9. Reply-To: thompson@wg2.waii.com
  10. Organization: Western Geophysical Exploration Products
  11. Lines: 21
  12. Nntp-Posting-Host: se33.wg2.waii.com
  13. In-reply-to: keith@aisg.COM's message of 11 Sep 92 00:54:34 GMT
  14.  
  15.  
  16. In article <9209110054.AA12527@accura_nc.aisg.com> keith@aisg.COM (Keith B. Kee {AISG} ) writes:
  17.  
  18. > How can I do a setenv operation in emacs? For instance, I want to do
  19. > a "setenv LD_OPTIONS '-y_test' " before I compile a program.
  20.  
  21. See variable process-environment:
  22.  
  23. Documentation:
  24. List of strings to append to environment of subprocesses that are started.
  25. Each string should have the format ENVVARNAME=VALUE.
  26.  
  27. To modify it:
  28.  
  29. (setq process-environment (cons "LD_OPTIONS=-y_test" process-environment))
  30.  
  31. --
  32.    _    Jim Thompson           |  Wanted:
  33.  _| ~-  thompson@wg2.waii.com  |    Nick Park's "Grand Day Out"
  34.  \,  _} Western Geophysical    |    on VHS-format videotape
  35.    \(   Houston, Texas         |  Email me if you know where I can buy it.
  36.