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: Fri, 06 Feb 2009 00:19:45 +0100 Message-ID: <877i44bhf2.fsf@escher.local.home> References: <87prhxazz9.fsf@escher.local.home> <87d4dwhnfe.fsf@justinbogner.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1233876023 14673 80.91.229.12 (5 Feb 2009 23:20:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Feb 2009 23:20:23 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 06 00:21:36 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 1LVDXJ-00042n-9I for ged-emacs-devel@m.gmane.org; Fri, 06 Feb 2009 00:21:33 +0100 Original-Received: from localhost ([127.0.0.1]:60811 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LVDVz-0000vR-Ut for ged-emacs-devel@m.gmane.org; Thu, 05 Feb 2009 18:20:11 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LVDVw-0000uh-3w for emacs-devel@gnu.org; Thu, 05 Feb 2009 18:20:08 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LVDVr-0000qt-UV for emacs-devel@gnu.org; Thu, 05 Feb 2009 18:20:07 -0500 Original-Received: from [199.232.76.173] (port=34538 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LVDVr-0000qk-KX for emacs-devel@gnu.org; Thu, 05 Feb 2009 18:20:03 -0500 Original-Received: from main.gmane.org ([80.91.229.2]:38619 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 1LVDVr-0001am-05 for emacs-devel@gnu.org; Thu, 05 Feb 2009 18:20:03 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LVDVo-000405-AI for emacs-devel@gnu.org; Thu, 05 Feb 2009 23:20:00 +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 23:20:00 +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 23:20:00 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 48 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:108807 Archived-At: On Thu, 05 Feb 2009 09:13:25 -0700 mail@justinbogner.com wrote: > Stephen Berman writes: >> 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: >> > > [ SNIP ... ] > > This seems like expected behaviour: there is no frame initially. Having > `emacsclient -c` work differently depending on whether or not it's the > first time it's been invoked seems wrong. Is it wrong if it's the only way that initial-frame-alist can be effectively used with --daemon? > If we do want to "fix" this > behaviour, then I suppose initial-frame-alist should apply to a frame in > any case where no other frame exists, ie: > > emacs --daemon > emacsclient -c > # initial-frame-alist applies > emacsclient -c > # initial-frame-alist does not apply > # now close all of the emacs windows > emacsclient -c > # initial-frame-alist applies again > > This behaviour should also happen if emacs was started by `emacs -nw` and > the server started there, for consistency. WDYT? This would be fine by me. Steve Berman