>> frame-initial-frameWe're talking about determining the current state, so the fact that it's
> hmm. The name of variable looked promising and I didn't know about it, but
> it's value is `nil'.
> emacs-version is "24.3.50.1"
nil at some point is not necessarily a problem. Also, if that var work,
try terminal-frame instead (which the one I was thinking of, really).
It's also nil when you look at it interactively, but just like the
other, it's not always nil (otherwise those vars would be useless).
Stefan