From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Jan_Dj=E4rv?= Newsgroups: gmane.emacs.devel Subject: Re: Emacs's --geometry argument vs default-frame-alist Date: Wed, 25 Oct 2006 08:48:35 +0200 Message-ID: <453F08C3.6070708@swipnet.se> References: NNTP-Posting-Host: main.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 1161758977 25096 80.91.229.2 (25 Oct 2006 06:49:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 25 Oct 2006 06:49:37 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 25 08:49:35 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GccZp-0001o8-Sz for ged-emacs-devel@m.gmane.org; Wed, 25 Oct 2006 08:49:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GccZp-0002BI-DE for ged-emacs-devel@m.gmane.org; Wed, 25 Oct 2006 02:49:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GccZc-0002BD-3P for emacs-devel@gnu.org; Wed, 25 Oct 2006 02:49:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GccZa-0002B1-NW for emacs-devel@gnu.org; Wed, 25 Oct 2006 02:49:11 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GccZa-0002Ay-Hc for emacs-devel@gnu.org; Wed, 25 Oct 2006 02:49:10 -0400 Original-Received: from [81.228.9.182] (helo=av7-2-sn3.vrr.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GccZa-0004E3-EF for emacs-devel@gnu.org; Wed, 25 Oct 2006 02:49:10 -0400 Original-Received: by av7-2-sn3.vrr.skanova.net (Postfix, from userid 502) id 17A01380FE; Wed, 25 Oct 2006 08:48:56 +0200 (CEST) Original-Received: from smtp3-1-sn3.vrr.skanova.net (smtp3-1-sn3.vrr.skanova.net [81.228.9.101]) by av7-2-sn3.vrr.skanova.net (Postfix) with ESMTP id 064CB380F8; Wed, 25 Oct 2006 08:48:56 +0200 (CEST) Original-Received: from coolsville.localdomain (81-235-205-78-no59.tbcn.telia.com [81.235.205.78]) by smtp3-1-sn3.vrr.skanova.net (Postfix) with ESMTP id C6A1537E5A; Wed, 25 Oct 2006 08:49:07 +0200 (CEST) User-Agent: Thunderbird 1.5.0.7 (X11/20060913) Original-To: Stefan Monnier In-Reply-To: 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:61143 Archived-At: Stefan Monnier skrev: > The interaction between the --geometry argument and the default-frame-alist > setting has recently changed. > > It is rather inconvenient for me now: > > I typically start my Emacs as follows: > > emacs --geometry 256x1+0-0 > > and in my .emacs I do something like: > > (setq initial-frame-alist '((minibuffer . only))) > (setq default-frame-alist > '((minibuffer . nil) (height . 40) (width . 80) (user-size . t))) > > This used to result in the exact behavior I want: Emacs starts as a single-line > minibuffer-only frame, and other frames have the normal size. > > But now, my default-frame-alist I set in .emacs gets overwritten by the > "256x1" geometry argument, so subsequent frames also have this weird 256x1 > shape :-( > > What was the reason for the change? > The reason was this: C.9 Options for Window Size and Position ======================================== Here is a list of the command-line options for specifying size and position of the initial Emacs frame: `-g WIDTHxHEIGHT[{+-}XOFFSET{+-}YOFFSET]]' `--geometry=WIDTHxHEIGHT[{+-}XOFFSET{+-}YOFFSET]]' Specify the size WIDTH and HEIGHT (measured in character columns and lines), and positions XOFFSET and YOFFSET (measured in pixels). The WIDTH and HEIGHT parameters apply to all frames, whereas XOFFSET and YOFFSET only to the initial frame. "The WIDTH and HEIGHT parameters apply to all frames" was not true before the change. See thread at http://lists.gnu.org/archive/html/emacs-pretest-bug/2006-10/msg00328.html So the behaviour you see now does conform to the manual. You can always put width and height in the initial-frame-alist instead of giving -g on the command line. But there is something else going on here. If I run with your settings above in my .emacs (and only those lines), I first get a 256x1 minibuffer and nothing else. But frames created after that are 80x40. Is that how it should be? Jan D. Jan D.