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

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

RE: Using the same custom file in two different OSes


From: Drew Adams
Subject: RE: Using the same custom file in two different OSes
Date: Thu, 17 Jan 2013 06:19:04 -0800

> >   (if (display-graphic-p) ...
> 
> FYI, I'm using: (if window-system ...
> but that comes down to pretty much the same thing, it seems.

`window-system' has the advantage that it works with older Emacs releases.

But `display-graphic-p' is what is recommended for recent releases.
>From the doc string of `window-system':

 "Use of this function as a predicate is deprecated.  Instead,
  use `display-graphic-p' or any of the other `display-*-p'
  predicates which report frame's specific UI-related capabilities."




reply via email to

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