From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Setting initial frame's parameters before its creation Date: Thu, 28 Feb 2013 22:47:49 -0500 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1362109676 18046 80.91.229.3 (1 Mar 2013 03:47:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 Mar 2013 03:47:56 +0000 (UTC) Cc: emacs-devel@gnu.org To: Leo Liu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 01 04:48:19 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UBGxE-0000JN-HH for ged-emacs-devel@m.gmane.org; Fri, 01 Mar 2013 04:48:16 +0100 Original-Received: from localhost ([::1]:38499 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UBGwt-0002NS-IL for ged-emacs-devel@m.gmane.org; Thu, 28 Feb 2013 22:47:55 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:56129) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UBGwq-0002NN-Lz for emacs-devel@gnu.org; Thu, 28 Feb 2013 22:47:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UBGwo-0004fb-N2 for emacs-devel@gnu.org; Thu, 28 Feb 2013 22:47:52 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:34110) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UBGwo-0004fN-JV for emacs-devel@gnu.org; Thu, 28 Feb 2013 22:47:50 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFFFpaTU/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJIgeBsEtkQoDiGGcGYFegxU X-IPAS-Result: Av4EABK/CFFFpaTU/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJIgeBsEtkQoDiGGcGYFegxU X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="2743216" Original-Received: from 69-165-164-212.dsl.teksavvy.com (HELO pastel.home) ([69.165.164.212]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 28 Feb 2013 22:47:48 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id A6AFB6A65A; Thu, 28 Feb 2013 22:47:49 -0500 (EST) In-Reply-To: (Leo Liu's message of "Fri, 01 Mar 2013 10:26:19 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.182 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:157464 Archived-At: > I am now working with a setup with two screens of different resolutions. > I would like a way in elisp to change the initial frame's parameters > before its creation. > Setting them using x resources seems to be the only way but it could > only provide good defaults for a fixed resolution and thus breaks down > with two resolutions as in my case. > Any suggestions? I have a local patch which causes Emacs (in GUI sessions) to read the .emacs because creating the "initial" frame. You could use something like that, but it requires recompiling Emacs. Another option might be to use an emacs daemon, since in this case as well the .emacs file is read before setting up any GUI frame. Stefan