all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stephen Berman <stephen.berman@gmx.net>
To: emacs-devel@gnu.org
Subject: Re: initial-frame-alist
Date: Thu, 05 Feb 2009 16:51:02 +0100	[thread overview]
Message-ID: <87iqnoc26x.fsf@escher.local.home> (raw)
In-Reply-To: 200902051446.n15Ek525004594@rodan.ics.uci.edu

On Thu, 5 Feb 2009 06:46:05 -0800 (PST) Dan Nicolaescu <dann@ics.uci.edu> wrote:

> Stephen Berman <stephen.berman@gmx.net> writes:
>
>   > 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.  
>
> It's not, the initial frame is a special frame that cannot be displayed.

I guess you are referring to FRAME_INITIAL_P.  But AFAICT this is not
the same as the "initial X window" frame created by frame-initialize,
whose parameters are held in initial-frame-alist.  I see now that
startup.el precludes this with --daemon:

  ;; Under X Window, this creates the X frame and deletes the terminal frame.
  (unless (daemonp)
    (frame-initialize))

I wonder if there is a way to make this take account of a subsequent
initial invocation of emacsclient -c.  Hmm...

> Again: emacs --daemon is equivalent to emacs -nw -f server-start
> If you try more, you can probably find even more variations of this same
> basic issue...

I'm not trying to find these cases, it's just that I run up against them
the more I use --daemon with my init-file.

>   > 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.)
>
> Patches are welcome!

I would be glad to oblige if I had more than (or even just) the vaguest
idea how to go about it.

Steve Berman





  parent reply	other threads:[~2009-02-05 15:51 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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   ` Stephen Berman [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87iqnoc26x.fsf@escher.local.home \
    --to=stephen.berman@gmx.net \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.