From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.devel Subject: Re: initial-frame-alist Date: Thu, 05 Feb 2009 16:51:02 +0100 Message-ID: <87iqnoc26x.fsf@escher.local.home> References: <87prhxazz9.fsf@escher.local.home> <200902051446.n15Ek525004594@rodan.ics.uci.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1233849276 7897 80.91.229.12 (5 Feb 2009 15:54:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Feb 2009 15:54:36 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 05 16:55:50 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LV6Zu-0002Fu-VQ for ged-emacs-devel@m.gmane.org; Thu, 05 Feb 2009 16:55:47 +0100 Original-Received: from localhost ([127.0.0.1]:35824 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LV6Yb-0005FQ-PR for ged-emacs-devel@m.gmane.org; Thu, 05 Feb 2009 10:54:25 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LV6VZ-0003TI-IG for emacs-devel@gnu.org; Thu, 05 Feb 2009 10:51:17 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LV6VX-0003SS-Ul for emacs-devel@gnu.org; Thu, 05 Feb 2009 10:51:17 -0500 Original-Received: from [199.232.76.173] (port=38851 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LV6VX-0003SK-Lu for emacs-devel@gnu.org; Thu, 05 Feb 2009 10:51:15 -0500 Original-Received: from main.gmane.org ([80.91.229.2]:41828 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LV6VX-0006Xc-3B for emacs-devel@gnu.org; Thu, 05 Feb 2009 10:51:15 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LV6VT-0001nw-VM for emacs-devel@gnu.org; Thu, 05 Feb 2009 15:51:11 +0000 Original-Received: from i59f55934.versanet.de ([89.245.89.52]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 05 Feb 2009 15:51:11 +0000 Original-Received: from stephen.berman by i59f55934.versanet.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 05 Feb 2009 15:51:11 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 49 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: i59f55934.versanet.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:108795 Archived-At: On Thu, 5 Feb 2009 06:46:05 -0800 (PST) Dan Nicolaescu wrote: > Stephen Berman 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