Xref: utzoo comp.emacs:5206 comp.windows.x:7672 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uflorida!gatech!mcnc!rti!xyzzy!tiktok!meissner From: meissner@tiktok.dg.com (Michael Meissner) Newsgroups: comp.emacs,comp.windows.x Subject: Re: GNU Emacs shell mode and DISPLAY env variable Message-ID: <3195@xyzzy.UUCP> Date: 2 Feb 89 13:27:24 GMT References: <35945@think.UUCP> Sender: usenet@xyzzy.UUCP Reply-To: meissner@tiktok.UUCP (Michael Meissner) Distribution: na Organization: Data General (Languages @ Research Triangle Park, NC.) Lines: 19 In article <35945@think.UUCP> barmar@think.UUCP (Barry Margolin) writes: | In GNU Emacs 18.52: | | When running GNU Emacs in an X window (using its "-d" option), is | there any way to get shell mode to automatically set the subprocess's | DISPLAY environment variable appropriately, as xterm does? I'm | putting some customization into my .cshrc that wants to do certain | things if it's being run in an X11 window (specifically, it's checking | to see whether DISPLAY contains a ".", so it can tell whether it's in | an X10 or X11 window, since we haven't yet fully converted). Go into the source directory for emacs, and add a define to config.h for MAINTAIN_ENVIRONMENT, do a make clean, followed by a make. If this is defined, emacs passes the entire environment to subprocesses. You can also do (setenv "variable" "value") then from within emacs. Note, the documentation for setenv is messed up.... -- Michael Meissner, Data General. Uucp: ...!mcnc!rti!xyzzy!meissner Arpa: meissner@dg-rtp.DG.COM (or) meissner%dg-rtp.DG.COM@relay.cs.net