[Top][All Lists]

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

Re: (window-system) returns nil on after-make-frame-functions when creat

From: Dan Nicolaescu
Subject: Re: (window-system) returns nil on after-make-frame-functions when creating an X frame
Date: Mon, 9 Mar 2009 10:36:47 -0700 (PDT)

Mike Mattie <address@hidden> writes:

  > Hi,
  > The behavior of (window-system) as it stands has a corner-case that
  > does not make sense.
  > I run a function on after-make-frame-functions that loads my GUI 
  > (previously discussed).
  > To make sure it runs only when a X frame is created, vs. a TTY I would check
  > that it is an X frame.
  > To do this I called (window-system) which normally returns "x". It is not
  > the best idea, but intuitively after the X frame is created it would 
  > return "x".
  > Currently it returns nil. When (window-system) is evaluated in the scratch
  > buffer sometime after the frame is made, well after 
  > it does indeed return "x".

How are you calling (window-system) ? You should be calling it from
within a `with-selected-frame'

reply via email to

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