From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.help Subject: Re: How can I automatically determine the best frame-height? Date: Thu, 22 Apr 2021 11:24:40 +0200 Message-ID: <875z0eacyv.fsf@gmail.com> References: <86tunzznhh.fsf@protonmail.com> <86y2dbv2yo.fsf@protonmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1305"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Wayne Harris To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Apr 22 11:27:18 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lZVcE-0000FQ-PG for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 22 Apr 2021 11:27:18 +0200 Original-Received: from localhost ([::1]:56270 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lZVcD-00042p-Rx for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 22 Apr 2021 05:27:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34878) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lZVZq-0002ED-Vd for help-gnu-emacs@gnu.org; Thu, 22 Apr 2021 05:24:52 -0400 Original-Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]:33354) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lZVZk-0006Vt-F6 for help-gnu-emacs@gnu.org; Thu, 22 Apr 2021 05:24:50 -0400 Original-Received: by mail-wm1-x332.google.com with SMTP id q123-20020a1c43810000b029012c7d852459so3867735wma.0 for ; Thu, 22 Apr 2021 02:24:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:gmane-reply-to-list:date:in-reply-to :message-id:mime-version; bh=Laz9/oXSDXf47hR+5StdEL+2KwsWC2jxUCXO1SPDZro=; b=VpsEXPQoVTNSMCLYpjCcy2sRF3yxAcJMYm9ZwodifU+epJa+Kr9YnvQ9wRsim53vo0 6c1IEUnjsOhN164u2MYqFO3aWtucc0AQ7YAYDfCLu0bFblQW4UD4w8OOTlsH/kPRQzfW mWiEb8AVM1ZsVwebfiZOfMqGtArzZ3/9k3Yym6cxvnrjOBGo7XYCeZBxQ+95tIJavp0t cKY/2xlbq6Oc/EcGM4dWyHffYklGPDS5uPZj3vhh3gZxQVlNHOQKEKUQ3LNytSlBVWIW Oi7KNOK5Bd0ACb7ZAEVCtX9mUlBpEM1ETvOGJqlj5Wq5U9dSqIMzmsxptc1y5gYCQ4uv D9OQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references :gmane-reply-to-list:date:in-reply-to:message-id:mime-version; bh=Laz9/oXSDXf47hR+5StdEL+2KwsWC2jxUCXO1SPDZro=; b=gA9Qdju6AuCItswPWG5S/3bjVvAWC9CluWunuCwfERiAY9KOodYERLvt8U4BKkPf+G Upa4n8Pflx+VOsZlM7Naz+IqspdK+MvW4t57MFJ7JT2WZ00bULz36buRGsDqF4syZw8x FXWOepC3QWUH/P+SgaNAnFl2fGZlmzDWx3Dr2eT00PV0d6J0RvG3vWKLETeM5Rd25zhL gqcbRFlO9ibE9qO8R/meOzJkhmiz988YJJ+5sl8MY0sWpb6o8AyU7yLSfuzc25n9P3C7 ki2YK6H4HtZF05H7ZhzbLATtXuKkFzARBe/ybPf0GF/NOHsUbEvVXdH/rEc92XC/Eht4 wMMg== X-Gm-Message-State: AOAM5326LEIMqtyfBih8ElCkVV0zK7d0DfUStqIiqIrJWTbJ6qggGYcw niuJEpfQd/JATjAjh85Isfg= X-Google-Smtp-Source: ABdhPJzMiTAtoC1y7hQxqzZEKaXpegkGx5Dk46cipSsYKxYL+NSIDimqnxBigzaHsLZH8ouHghUtcg== X-Received: by 2002:a05:600c:4fd4:: with SMTP id o20mr14842131wmq.166.1619083482517; Thu, 22 Apr 2021 02:24:42 -0700 (PDT) Original-Received: from rltb ([82.66.8.55]) by smtp.gmail.com with ESMTPSA id u14sm2575686wrq.65.2021.04.22.02.24.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Apr 2021 02:24:41 -0700 (PDT) Gmane-Reply-To-List: yes In-Reply-To: <86y2dbv2yo.fsf@protonmail.com> (Wayne Harris via Users list for the's message of "Wed, 21 Apr 2021 16:42:55 -0300") Received-SPF: pass client-ip=2a00:1450:4864:20::332; envelope-from=rpluim@gmail.com; helo=mail-wm1-x332.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:129112 Archived-At: >>>>> On Wed, 21 Apr 2021 16:42:55 -0300, Wayne Harris via Users list for the GNU Emacs text editor said: >> (add-to-list 'default-frame-alist '(fullscreen . maximized)) Wayne> I added it to site-start.el. It takes effect. I don't like it Wayne> maximized, though. I just wish it'd stick to the height of the initial Wayne> frame, which I set with -fh on the command line. Wayne> I looked up the manual and came up with Wayne> (add-to-list 'default-frame-alist '(height . 0.90)) Wayne> where 90% is about right for me, but this has the side-effect that the Wayne> initial-frame is not full-height any longer, that is, this undoes the Wayne> order given by -fh on the command line. You can specify parameters that apply only to the first frame using 'initial-frame-alist' (and then not specify -fh on the command line). Robert --