help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to find out if emacs is running inside GUI or terminal


From: Eli Zaretskii
Subject: Re: How to find out if emacs is running inside GUI or terminal
Date: Mon, 25 Nov 2013 05:45:14 +0200

> Date: Sun, 24 Nov 2013 19:04:05 -0700
> From: Bob Proulx <bob@proulx.com>
> 
> > C-h v window-system
> > 
> >   [...]
> > 
> >   Use of this variable as a boolean is deprecated.  Instead,
> >   use `display-graphic-p' or any of the other `display-*-p'
> >   predicates which report frame's specific UI-related capabilities.
> 
> Deprecated!  I wish people would let the API mature and stabilize.  I
> hadn't heard of the display-graphic-p functions yet.  Thanks for
> mentioning them.

display-graphic-p (as well as the other display-*-p predicates) exist
since Emacs 21.1.  And window-system is deprecated approximately since
that time also.  So I think this deprecation is mature enough ;-)

> > There are several display-*-p functions for querying about specific
> > features for a display.
> 
> Sure.  Unless you happen to be using an older emacs that doesn't have
> those newer functions.

I very much doubt that you have such old Emacsen around.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]