Here what I have:> We're talking about determining the current state
# cat ~/.emacs-experiments
-- (message "initial-frame: %s; frame: %s; eq: %s;" frame-initial-frame (selected-frame) (eq frame-initial-frame (selected-frame)))
# emacs -q --daemon=exp --load ~/.emacs-experiments
-- ("emacs" "--load" "/home/constantin/.emacs-experiments")
-- Starting Emacs daemon.
-- initial-frame: nil; frame: #<frame F1 0x9a6a50>; eq: nil;
On 25 November 2013 22:26, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
>> 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