From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.devel Subject: Re: Where is the frame resized after startup? Date: Mon, 22 Jan 2007 23:20:40 +0100 Message-ID: <45B538B8.9030203@gmail.com> References: <45B3FAEC.3030904@student.lu.se> <45B3FE4B.6010009@gmail.com> <45B491E4.2010508@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1169504510 17966 80.91.229.12 (22 Jan 2007 22:21:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 22 Jan 2007 22:21:50 +0000 (UTC) Cc: lekktu@gmail.com, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 22 23:21:42 2007 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 1H97Xo-0002xy-Cf for ged-emacs-devel@m.gmane.org; Mon, 22 Jan 2007 23:21:40 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H97Xn-0000Ym-SK for ged-emacs-devel@m.gmane.org; Mon, 22 Jan 2007 17:21:39 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H97Wt-0008Ay-GK for emacs-devel@gnu.org; Mon, 22 Jan 2007 17:20:43 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H97Wr-00089L-Pp for emacs-devel@gnu.org; Mon, 22 Jan 2007 17:20:43 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H97Wr-000899-GJ for emacs-devel@gnu.org; Mon, 22 Jan 2007 17:20:41 -0500 Original-Received: from [80.76.149.213] (helo=ch-smtp02.sth.basefarm.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1H97Wp-0005Y3-HX; Mon, 22 Jan 2007 17:20:39 -0500 Original-Received: from c83-254-145-24.bredband.comhem.se ([83.254.145.24]:62011 helo=[127.0.0.1]) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.63) (envelope-from ) id 1H97Wn-0006KH-9U; Mon, 22 Jan 2007 23:20:38 +0100 User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) Original-To: Eli Zaretskii In-Reply-To: X-Antivirus: avast! (VPS 000704-3, 2007-01-22), Outbound message X-Antivirus-Status: Clean X-Scan-Result: No virus found in message 1H97Wn-0006KH-9U. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1H97Wn-0006KH-9U 64561de9b556026ba3820a56c86c93cc 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:65391 Archived-At: Eli Zaretskii wrote: >> Date: Mon, 22 Jan 2007 11:28:52 +0100 >> From: "Lennart Borgman (gmail)" >> CC: lekktu@gmail.com, emacs-devel@gnu.org >>> What do you mean by ``after all startup code has run'', exactly? >> >> Yes, that was a bit unclear. In this case I meant "after creation and >> sizing of the first frame". > > Assuming that window-setup-hook is not good for that, perhaps you can > explain why you need that hook to run after sizing of the initial > frame and no earlier. A very simple thing. I want to maximize the frame. > One idea to try is inside window-setup-hook put a function into > after-make-frame-functions. That function should do whatever you want > to do after initial frame is created, then remove itself from > after-make-frame-functions. Thanks, I have done that, but it does not work for the first frame. I add to the hook in a defcustom.