From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mason Smith Newsgroups: gmane.emacs.help Subject: How do you determine the running environment while in emacs? Date: Sat, 24 Jan 2009 14:39:59 -0800 (PST) Organization: http://groups.google.com Message-ID: <660e6c4d-23f1-4354-92d5-ad7971364104@n21g2000vba.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1232899261 379 80.91.229.12 (25 Jan 2009 16:01:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 25 Jan 2009 16:01:01 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jan 25 17:02:09 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LR7QP-0005BZ-RB for geh-help-gnu-emacs@m.gmane.org; Sun, 25 Jan 2009 17:01:29 +0100 Original-Received: from localhost ([127.0.0.1]:41370 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LR7P8-0001mp-7C for geh-help-gnu-emacs@m.gmane.org; Sun, 25 Jan 2009 11:00:10 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!n21g2000vba.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 6 Original-NNTP-Posting-Host: 131.215.45.199 Original-X-Trace: posting.google.com 1232836799 26358 127.0.0.1 (24 Jan 2009 22:39:59 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sat, 24 Jan 2009 22:39:59 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: n21g2000vba.googlegroups.com; posting-host=131.215.45.199; posting-account=6zm9SAoAAABaEVlBJxasOLZLc6XiJvYb User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.5) Gecko/2008120908 Red Hat/3.0.5-1.el5_2 Firefox/3.0.5, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:166293 X-Mailman-Approved-At: Sun, 25 Jan 2009 10:59:23 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:61621 Archived-At: I'd like to write some code for .emacs buffer that will only run if I'm not in terminal window. How can I tell from inside emacs whether or not I'm running in a terminal? I've looked around the emacs manual but can't seem to find anything. Mason