[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: (window-system) returns nil on after-make-frame-functions when creat
Re: (window-system) returns nil on after-make-frame-functions when creating an X frame
Mon, 9 Mar 2009 12:51:55 -0700
On Mon, Mar 09, 2009 at 01:54:30PM -0400, Chong Yidong wrote:
> Mike Mattie <address@hidden> writes:
> > 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 sensibly return "x".
> > Currently it returns nil. When (window-system) is evaluated in the
> > scratch buffer sometime after the frame is made, well after
> > after-make-frame-functions it does indeed return "x".
> Did you give `window-system' the frame as an argument?
I finally hunted down the error in my code. I needed to pass the frame
argument given to the after-make-frame-functions functions.
Now it works correctly. Sorry for the noise.
GnuPG Key: B9012279 is available from HKP server pgp.mit.edu
Description: PGP signature