Xref: utzoo comp.emacs:5191 comp.windows.x:7622 Path: utzoo!utgpu!watmath!clyde!ima!think!barmar From: barmar@think.COM (Barry Margolin) Newsgroups: comp.emacs,comp.windows.x Subject: GNU Emacs shell mode and DISPLAY env variable Message-ID: <35945@think.UUCP> Date: 1 Feb 89 00:15:26 GMT Sender: news@think.UUCP Reply-To: barmar@think.UUCP (Barry Margolin) Distribution: na Organization: Thinking Machines Corporation, Cambridge, MA Lines: 19 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). I did an apropos of "^x-" and "display" in Emacs, looking for a variable or function that would return the current display, but didn't see anything. Can anyone help me? Barry Margolin Thinking Machines Corp. barmar@think.com {uunet,harvard}!think!barmar