unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* How do you determine the running environment while in emacs?
@ 2009-01-24 22:39 Mason Smith
  2009-01-24 22:58 ` Andreas Politz
  2009-01-25 16:26 ` Peter Dyballa
  0 siblings, 2 replies; 3+ messages in thread
From: Mason Smith @ 2009-01-24 22:39 UTC (permalink / raw)
  To: help-gnu-emacs

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How do you determine the running environment while in emacs?
  2009-01-24 22:39 How do you determine the running environment while in emacs? Mason Smith
@ 2009-01-24 22:58 ` Andreas Politz
  2009-01-25 16:26 ` Peter Dyballa
  1 sibling, 0 replies; 3+ messages in thread
From: Andreas Politz @ 2009-01-24 22:58 UTC (permalink / raw)
  To: help-gnu-emacs

Mason Smith wrote:
> 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


window-system is a variable defined in `C source code'.
Its value is x


Documentation:
Name of window system that Emacs is displaying through.
The value is a symbol--for instance, `x' for X windows.
The value is nil if Emacs is using a text-only terminal.

-ap


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How do you determine the running environment while in emacs?
  2009-01-24 22:39 How do you determine the running environment while in emacs? Mason Smith
  2009-01-24 22:58 ` Andreas Politz
@ 2009-01-25 16:26 ` Peter Dyballa
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Dyballa @ 2009-01-25 16:26 UTC (permalink / raw)
  To: Mason Smith; +Cc: help-gnu-emacs


Am 24.01.2009 um 23:39 schrieb Mason Smith:

> How can I tell from inside emacs whether or not I'm running in a  
> terminal?


If window-system is undefined, i.e., nil.

--
Greetings

   Pete                                           0
                                            %-/\_//
                                             (*)(*)






^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-01-25 16:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-24 22:39 How do you determine the running environment while in emacs? Mason Smith
2009-01-24 22:58 ` Andreas Politz
2009-01-25 16:26 ` Peter Dyballa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).