[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
(window-system) returns nil on after-make-frame-functions when creating
(window-system) returns nil on after-make-frame-functions when creating an X frame
Mon, 9 Mar 2009 10:02:12 -0700
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 configuration
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 sensibly
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".
Though my use in this case is not advised, I think the current behavior in
this scenario does not make sense.
GnuPG Key: B9012279 is available from HKP server pgp.mit.edu
Description: PGP signature
- (window-system) returns nil on after-make-frame-functions when creating an X frame,
Mike Mattie <=