From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Al Eisner Newsgroups: gmane.emacs.help Subject: Re: Odd problem with window geometry Date: Wed, 4 Dec 2024 15:59:10 -0800 (PST) Message-ID: <080cb476-d29c-1260-5073-7d40d3c74df2@slac.stanford.edu> References: <6daecdb7-9495-7467-6956-31131ec38482@slac.stanford.edu> <86r06oq9hp.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3431"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Joel Reicher Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 05 01:00:01 2024 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 1tIzHl-0000hw-8c for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 05 Dec 2024 01:00:01 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tIzHD-00079u-Dw; Wed, 04 Dec 2024 18:59:27 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tIzHA-000783-01 for help-gnu-emacs@gnu.org; Wed, 04 Dec 2024 18:59:24 -0500 Original-Received: from slac-mailgate.slac.stanford.edu ([52.250.90.85]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tIzH7-0002f0-ES for help-gnu-emacs@gnu.org; Wed, 04 Dec 2024 18:59:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=slac.stanford.edu; s=default; t=1733356757; bh=y998DJ7Opd5QHK3FIAeny5VEiJQ94RnXKCWAWTDlXns=; h=Date:From:To:cc:Subject:In-Reply-To:References; b=ZDmfDlOvtFvoFMdRBCz3e4pO+GNGQ1yAm28eARHRl9572U3n6Q1PMG5doOMucPHnw 8sWNWYbZteEbLFVaCOi1/M7tLZDHwcUph89QARx/8Ady/piXT3GEE/tI5+SdgKaxuO PR1jUwvFt0nRYytuowCwzs9bzpj//N3vpDxulWO8= Original-Received: from stanford.edu (mx0b-00000d07.pphosted.com [67.231.157.125]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by az-mg-02.slac.stanford.edu (Postfix) with ESMTPS id 7C451458F4 for ; Wed, 4 Dec 2024 15:59:17 -0800 (PST) Original-Received: from m0342470.ppops.net (m0342470.ppops.net [127.0.0.1]) by pps.slac_mg (8.18.0.8/8.18.0.8) with ESMTP id 4B4NxGMY005104; Wed, 4 Dec 2024 15:59:16 -0800 Original-Received: from stanford.edu (mx0b-00000d08.pphosted.com [67.231.152.67]) by m0342470.ppops.net (PPS) with ESMTPS id 43b0wtg32n-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 04 Dec 2024 15:59:16 -0800 (PST) Original-Received: from m0342826.ppops.net (m0342826.ppops.net [127.0.0.1]) by pps.inb_pod (8.18.0.8/8.18.0.8) with ESMTP id 4B4NxG08013648; Wed, 4 Dec 2024 15:59:16 -0800 Original-Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-00000d08.pphosted.com (PPS) with ESMTPS id 43axhdgc6r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 04 Dec 2024 15:59:16 -0800 (PST) Original-Received: from m0342826.ppops.net (m0342826.ppops.net [127.0.0.1]) by pps.reinject (8.18.0.8/8.18.0.8) with ESMTP id 4B4NxFg3013640; Wed, 4 Dec 2024 15:59:15 -0800 Original-Received: from bn1pr04cu002.outbound.protection.outlook.com (mail-eastus2azlp17010022.outbound.protection.outlook.com [40.93.12.22]) by mx0b-00000d08.pphosted.com (PPS) with ESMTPS id 43axhdgc6q-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 04 Dec 2024 15:59:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=F1KfcOTUL4ajWRbjb5yT51PqqUF+AX+P+I8bcXPLF31C30yWgtlPJKFFWnXH6Fmb3MePZvgIAYpsJNGdhMPtlLYKiJx19a9EjmbBWnP52qaWH0jR67w2P7jZeb9bHHUpznMBqjdeO63TtDfVBVUt/31GQlpDL+n6azV4MaogbSbMHJ4djLcC2gh+3t0PrmY3cGF09JXd8Gl/8xYscAzYT2RporJ3jXqw87nQsZq5tSlspC52gxTfBZzj9o6PlZ8o4BWkrPfiTqK5O3i2PDmSzd2/otXAOc4qMsXX08yBpclK2ID+NBja5eyRyer1u//bsUPkq46p3ursj7bk41DWqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=y998DJ7Opd5QHK3FIAeny5VEiJQ94RnXKCWAWTDlXns=; b=cMd0WPXzaj+Q+Wb5loHlkYnT6noVIoR0XObzjZfe0T2PzJgeb/O6Rfm3W8HqzCEUQKw1y5zPOJvb0T9K9xdEMlc2aXnM0Njae2bIFactyYm64+DRIricJB+ArfV9f/3gALSGRVbbFK8DnRpYVOyUMyVtIscLqzghaxbDdorJ015yldSF47E01KGtng9QFg8fUJhs0z8/007MklZoWHpJfCvotyDBr9UKkWZ9RxUUOjvCN7S+0ZeFokkP4D9ahdaG3JO8o+r/vEJ3l8I/y5OIiyZrPA/kYPvJ77tbYD70Yx3fdP30TKU0rKZYjgqPe+y6EAUYgaQiKn2YlqMYMzAojg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=slac.stanford.edu; dmarc=pass action=none header.from=slac.stanford.edu; dkim=pass header.d=slac.stanford.edu; arc=none Original-Received: from MN2PR07MB7039.namprd07.prod.outlook.com (2603:10b6:208:1ac::11) by PH0PR07MB10696.namprd07.prod.outlook.com (2603:10b6:510:334::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8230.11; Wed, 4 Dec 2024 23:59:12 +0000 Original-Received: from MN2PR07MB7039.namprd07.prod.outlook.com ([fe80::4575:cf29:185b:25c8]) by MN2PR07MB7039.namprd07.prod.outlook.com ([fe80::4575:cf29:185b:25c8%6]) with mapi id 15.20.8207.017; Wed, 4 Dec 2024 23:59:12 +0000 In-Reply-To: <86r06oq9hp.fsf@gmail.com> X-ClientProxiedBy: BYAPR02CA0028.namprd02.prod.outlook.com (2603:10b6:a02:ee::41) To MN2PR07MB7039.namprd07.prod.outlook.com (2603:10b6:208:1ac::11) X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MN2PR07MB7039:EE_|PH0PR07MB10696:EE_ X-MS-Office365-Filtering-Correlation-Id: d613955c-8060-4ad7-65cb-08dd14bfa68b X-LD-Processed: cef2ae5a-2666-4716-9b60-e88e2aebf49a,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|1800799024|376014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?ou2mZpH9iFRyNJn9iph+YOBJtpUKHtUjCknTtt6k40+mGDvMIz/DjODImQ6B?= =?us-ascii?Q?AHvX6jCt12Vv6Netjb0600C3AhmJAG6hYkbQEZITux+s4LQAMQdJ1W7NzjXY?= =?us-ascii?Q?tFexRyN7+XM74rn3+rrgG1uC5LIc4JmyOyfS0c9sacHJ68BNu/bhNUtvpu8M?= =?us-ascii?Q?6MzPJrzFINMl4MnbI4FuVCv1fVzvA7eU6WIICMJ9Cm3VMUPn5UVRuziZCZtl?= =?us-ascii?Q?/D3GbdLvUPcslBTRDvHWdJZZuxLREuzzrjjEuXHJUJr2WmzUBdzxUen2j7kw?= =?us-ascii?Q?nlsrzDCuwvEpQOMWOOMRl/d308q6W1lM9FiwJ9ReEvU1/IwGd4xeFEh86YSB?= =?us-ascii?Q?76kdaA9JBXhhb9GKXEgHZwVrIpQZKh7xJTS+KPTRnTvcAbohmeKiX8a+wB1A?= =?us-ascii?Q?hvS5xQCsIdKvVBElY6feVrOGrGv9M98XCdo6+X/tIFoCVZs/wOs9ZqXAJ4mN?= =?us-ascii?Q?Bxa0gxWna31TyBOSiNL/Z4x8GnRUoOpCgMtJNr4s7Gdeo57TIHoGVfiS4jqb?= =?us-ascii?Q?ze2lr2w+ct+1lPEtGmDwxpq4xyzD1FMpUtQ4409nlaQMu9v4N2vEqXJaCooN?= =?us-ascii?Q?TZW5XPVmNsafotcfI3Wjidpq4v27qfp84ZdKkMFc0lm3+NLCjKbvdyPv3eMY?= =?us-ascii?Q?C4Gvq X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MN2PR07MB7039.namprd07.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(366016)(1800799024)(376014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?WhS1u2Qg8MctKBBJKcEMNZZnJ+WF2EOFKiaJ16WI2+wVXyWlzzsl3JrqFSL1?= =?us-ascii?Q?vtcT4UuahEF45to8dCtag0R9T/gZzMpeBNE9/sq1gmKmpJbF0bkqRE8klZ1f?= =?us-ascii?Q?M7tjKB4PVw6wAVxJjduFDKnHbDpeA0Y2mGtI6l/n/bdwxab+y6csuCzLVtOG?= =?us-ascii?Q?GYwZYX6mFQ2cwx/amHZ4HMXB8+nt00K+2gX5AoKXs3GybPt2/S0Uxq+/lXpE?= =?us-ascii?Q?sIFwRZc7v5LNbyT1BjyGIpuByp1zeOg5uZof55+2tkra4+jtlgdeFzwJ7VaG?= =?us-ascii?Q?uYEkeyCFzKTpadaUDAgwFit9+KkNGtZdQK3pdaY6EzBaonyFyWu2+ecCd/td?= =?us-ascii?Q?7oGAn3mZq1wjspqmUIZDRHJraC0sedV7Rk4Ik/KzkoTAta6Poq8AfRcZRFia?= =?us-ascii?Q?LyBTCZD+YqJROdY6vJxQbGtS2XJlPugxLyEy/DzMl7BkJqEPrs1qDotcaBYX?= =?us-ascii?Q?4NX9U4OI3wolN3x+daSeVlSLfxbFzAXqsyCP6B1zMIVomESdvHfT8fVulQbz?= =?us-ascii?Q?jthgm3Gb1R3QVApzQZuFROGaugeTOloNbybv6DZd+V4fN/LN0Gp2qHA3ap9r?= =?us-ascii?Q?9VYox3Emw6FVRfn6i6GQJsHlxy9Fmc9IkLX6KcMoDmfEAosSC4eDP3a6OwzP?= =?us-ascii?Q?rI X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: pezxyrc6puuICDXc7BTeTh27G5sSrsu2gznrBP2oEbPvZzgOSzM0nhtrLCUqmQ9+8eJGqPIx2TltLtQVJQozXytP2hKVjxXdTj1yRZofTZVwMSzFWS/0J9m6ozs/izt0Kyj96A2z4BhJ9oWLZxTszrnwOeEAy2yPPFMI2iQ6ahgUefsRrU/HkwFJCsA2a2uQdinu+OmlaZ62TLd5bE/SvxXAAhxdqKa266BuQHWp3Y3Lu+8WZDYrKDwG4yp9/jHGEs4BZ3nWESHkBKqHSKKnFw2Lc2mTlzEO5QXGywn80BFCxI3UN0L83UhAM9i8drptdnh39mKlC+MbY4DbCD+SAw+KpC5n0fcgBDoFwOGC+aZMLWL7jo0J5ZBvVO7DLv8H8Ai9GfVlQSgD3bJT/HqLKcumMb1fREQzxeeRR3FuIGgokUi9hTWnj0GdxPvf3Ly9DfTm38JRmU3VkUYk1MYYdsPY8ddCNXvPrccA6RHG0uziWk0Jv5S0tT3+DxDr34MZ5Fdsn7ZMqbJFoehOmZgkUlMoIW9snj/1TZxd2WccpYaQHAzLxTT4qsKbQW2g5ZorBjmSd6wU5LZQJzkokjFJ0eC9tYnP2G12pVZ2LgtCpU78GeGyoC4pLBpTkCZpkh1ZD8l74MtxEgQZwLbZ3jLgvg== X-OriginatorOrg: slac.stanford.edu X-MS-Exchange-CrossTenant-Network-Message-Id: d613955c-8060-4ad7-65cb-08dd14bfa68b X-MS-Exchange-CrossTenant-AuthSource: MN2PR07MB7039.namprd07.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Dec 2024 23:59:12.3601 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: cef2ae5a-2666-4716-9b60-e88e2aebf49a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: fGep701ZWUPYYek7TEpWzvHLMXCJ9YFbspr7Ehki6Y64ZNqoBo7axI/7dY9RMAQz6U4Hukcd6l0lJEtGzfDCHNbKFBRIxognRF5dT0BBz6E= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR07MB10696 X-Proofpoint-ORIG-GUID: 44UEuAGmOIAiKiTb0dxlQp3HK0V1XKJw X-Proofpoint-GUID: oGXuRVjgRn2qWcKbGVDQu7cTA56taMji X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1051,Hydra:6.0.680,FMLib:17.12.62.30 definitions=2024-10-05_03,2024-10-04_01,2024-09-30_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 phishscore=0 spamscore=0 malwarescore=0 lowpriorityscore=0 mlxscore=0 clxscore=1011 priorityscore=1501 mlxlogscore=999 bulkscore=0 adultscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2411120000 definitions=main-2412040184 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1051,Hydra:6.0.680,FMLib:17.12.62.30 definitions=2024-10-05_03,2024-10-04_01,2024-09-30_01 Received-SPF: pass client-ip=52.250.90.85; envelope-from=eisner@slac.stanford.edu; helo=slac-mailgate.slac.stanford.edu X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, 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.29 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-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:148607 Archived-At: On Wed, 4 Dec 2024, Joel Reicher wrote: (I initially wrote) >> I have had a consistent problem in starting up emacs on a Rocky >> 9 Linux platform. (I have no control over the machine, but it >> appears to be using emacs-27.2.) If I specify window size (with >> either -g or --geometry) on the command line, I first see a >> window of appropriate size (which changes when I change the >> values), but then as initialization completes it collapses to a >> window with only 3 or 4 lines; there is also a small change in >> width. This happens whether or not I have a .emacs file. (I >> have no other initializtion file.) I have longed used emacs on >> both Redhat=6 Linix and Linux OS-7, with no such problem, but I >> think the emacs version there was 25. In case it matters, I use >> XMing as my X server, but that is unchanged from my usage on the >> other platforms. >> >> Does this behavior ring a bell with anyone? I must be missing >> something. > > This is just a stab in the dark, but I've noticed a weird geometry > change when the toolbar is being removed. Maybe there's also one > happening when it's being drawn? Perhaps experiment with having it > enabled or disabled? And maybe same for the menu bar? > > Regards, I need the menu bar and prefer to keep the toolbar as well. But I've adequately figured this out. This page in the Emacs Lisp manual proved very helpful: https://www.gnu.org/software/emacs/manual/html_node/emacs/Frame-Parameters.html If instead of specifying geometry on the command line I define it by adding to default-frame-alist in my .emacs file, I see three steps when I start emacs: first a plausible initial window, second it shrinks to the problem window, and third it changes to my selected defaults (provided I have selected a fixed-width font). The manual does not mention that second step, which still seems anomalous, but I don't think I need to worry about it. The one remaining issue is that if I additionally specify geometry on the command line (which the manual says affects the initial window, not the default window), step 1 respects that as an initial window, step 2 is still the proble, but then for some reason step 3 is ignored, so I'm left with the 3-or-4-line window. It is possible that using a timer, as suggested in a previous thread linked by Joost, will deal with this issue. But I don't really need to include geometry on the command line. Thanks for all the responses.