all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* initial-frame-alist
@ 2009-02-05 11:24 Stephen Berman
  2009-02-05 14:46 ` initial-frame-alist Dan Nicolaescu
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Stephen Berman @ 2009-02-05 11:24 UTC (permalink / raw)
  To: emacs-devel

It appears that setting initial-frame-alist has no effect if Emacs is
started with --daemon; is this intended?  Here's a case in point:

Let ~/.emacs consist of this sexp:

(setq initial-frame-alist
      (append initial-frame-alist '((width . 85) (height . 58))))

Then do this:

$ emacs --daemon
$ emacsclient -c

The resulting frame has default width and height, not those specified in
~/.emacs.  If instead I start Emacs like this:

$ emacs

then the resulting frame does width 85 and height 58.

I note that after starting Emacs like this:

$ emacs -nw -f server-start

and then in another xterm typing:

$ emacsclient -c

the resulting frame has default width and height, not those specified in
~/.emacs.  But this would be expected if the initial frame is the one in
the xterm.  Whereas with --daemon, the apparent initial frame is the one
produced by emacsclient -c.  So is this a bug or expected behavior?  If
the latter, shouldn't it be documented?  (I hope it's relatively easily
fixed bug, since I would like to have setting initial-frame-alist take
effect if Emacs is started with --daemon.)

Steve Berman





^ permalink raw reply	[flat|nested] 9+ messages in thread
* initial-frame-alist
@ 2009-12-26 15:15 Julianne
  2009-12-28  0:02 ` initial-frame-alist Peter Dyballa
  0 siblings, 1 reply; 9+ messages in thread
From: Julianne @ 2009-12-26 15:15 UTC (permalink / raw)
  To: help-gnu-emacs

I have compiled emacs-23.1 from ftp.gnu.org on both Fedora 7 and
Fedora 12.  In the .emacs file, I try to set a different background
color for the initial frame versus the default one.  When emacs is
started in either version, the initial frame geometry is as specified,
but the color is that of the default frame.  Any new frames created
follow the default list.

This the snippet from the .emacs file:

;; Setup the default behavior of and display frame created
(setq default-frame-alist
       '((width . 80)(height . 50)
        (top . 15) (left . 560)
        (background-color . "Yellow1")
        (foreground-color . "Black")
        (font . "-*-courier-medium-r-*-*-*-100-*-*-m-*-*-*")
        ))

;; Setup the initial display to be a little differnt
(setq initial-frame-alist
       '((width . 80)(height . 50)
        (top . 10) (left . 15)
        (background-color . "DarkSeaGreen1")
        (foreground-color . "Black")
        (font . "-*-courier-medium-r-*-*-*-100-*-*-m-*-*-*")
        ))

I have seen some discussion of this problem as far back as version 22.
  Has the issue been fixed?



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2009-12-28  0:02 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-05 11:24 initial-frame-alist Stephen Berman
2009-02-05 14:46 ` initial-frame-alist Dan Nicolaescu
2009-02-05 15:13   ` initial-frame-alist Will Farrington
2009-02-05 15:51   ` initial-frame-alist Stephen Berman
2009-02-05 16:13 ` initial-frame-alist mail
2009-02-05 23:19   ` initial-frame-alist Stephen Berman
2009-02-05 19:38 ` initial-frame-alist Stefan Monnier
  -- strict thread matches above, loose matches on Subject: below --
2009-12-26 15:15 initial-frame-alist Julianne
2009-12-28  0:02 ` initial-frame-alist Peter Dyballa

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.