From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dr Rainer Woitok Newsgroups: gmane.emacs.help Subject: Re: Problems positioning and sizing Emacs frames Date: Tue, 20 Dec 2022 18:50:08 +0100 Message-ID: <25505.62928.514443.188767@tux.local> References: <25504.44446.960135.252447@tux.local> <874jtqetrk.fsf@yahoo.com> <25505.40590.857322.122749@tux.local> <87wn6mcl1l.fsf@yahoo.com> <25505.47568.168556.799771@tux.local> <87sfhachjg.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4959"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Po Lu Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 20 19:33:19 2022 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 1p7hQU-000167-Pn for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 20 Dec 2022 19:33:18 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p7gkx-0003jS-UX; Tue, 20 Dec 2022 12:50:23 -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 1p7gkt-0003jF-Ul for help-gnu-emacs@gnu.org; Tue, 20 Dec 2022 12:50:20 -0500 Original-Received: from mail-ej1-x635.google.com ([2a00:1450:4864:20::635]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p7gkr-0000dS-6C for help-gnu-emacs@gnu.org; Tue, 20 Dec 2022 12:50:18 -0500 Original-Received: by mail-ej1-x635.google.com with SMTP id u19so30998508ejm.8 for ; Tue, 20 Dec 2022 09:50:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=references:in-reply-to:subject:cc:to:date:message-id :content-transfer-encoding:mime-version:from:from:to:cc:subject:date :message-id:reply-to; bh=J4L7un7nI2W7+GTNTD660NCjac1FCF4GdbxGTUKUcd4=; b=AZRpZYE/fkZXp096iSRgRTZLoo+poU/+7A6X2g7pmcj/J6Yfj+/F8R7WX1vlKWX6Su CMJ5JxP3XYXX69KGuQ+BID9RMCdRRW2N8zDYDxVcHJwsZo/cWauleE0giJ4kCWZ0mO0r AT3K+g+XBU9oTLyaHfoJ0PKxZgellzasxPyBlpX/R6CGYypVyfibX9fwtXLx/M65aVk5 9Ox5/oI3WdVc9MVHj+Dz+HaRv0ZOAl+HJ+bEgLAWj4x8QNJfT3OZvnKH7pIzEIfKbkfA MiW2jPAOCW3SV5HOiSnCEy9ouyHp+fLPePY6JP6N0UiiD1DOohATjrGY3uEmjVPsPfkw igaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=references:in-reply-to:subject:cc:to:date:message-id :content-transfer-encoding:mime-version:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=J4L7un7nI2W7+GTNTD660NCjac1FCF4GdbxGTUKUcd4=; b=PM/hy29bBMCh6gO66kXZrkbuzkkvDBshfc5z2dIyJGZhedX8sZFFS8Qlpz/HldAunK 3pDYLt+FBrG9vnQPsMQT2PF7Dzj/YQXrP6hktQ2hcEnjgKDKWN0eyiRMYwEuGDx6vPqh y7rPjIQkB8VH37hTQuO76yDVW4U0JKE6mvlCf5UHFIqBYQYYl1cee9IvV9EteJHebXop Y7QK3U+EzZna32jqiZrfBtZz67ZLJKU4vVZNR58Clq6IVVUb4UmatuKXlROE2VBRmjW9 2AGweWprU9gzWexDpYsM+C1pqZiDGBgG95c3114w3VJxpzcfEF29Tw70UgY3W4CINqDz mmtA== X-Gm-Message-State: ANoB5plBrv4nNAh6Q+aCVqpEy49yxfj/uwaAUqyi6Aa8UOP3gweII40V vHocEq63QFUUgcmds55amKk= X-Google-Smtp-Source: AA0mqf68kWip3IVTIvzP7H2SLuIEiUvw8b0oeUKIcgKJ7q6uT4ODvl2lDYTiWQKPcpwfYh1fzDGBXA== X-Received: by 2002:a17:907:7424:b0:7c1:6fd3:1ef3 with SMTP id gj36-20020a170907742400b007c16fd31ef3mr27526006ejc.33.1671558611828; Tue, 20 Dec 2022 09:50:11 -0800 (PST) Original-Received: from gmail.com (p200300df071dd6581efccc4e6c1ada45.dip0.t-ipconnect.de. [2003:df:71d:d658:1efc:cc4e:6c1a:da45]) by smtp.gmail.com with ESMTPSA id ch16-20020a170906c2d000b0079e11b8e891sm5855097ejb.125.2022.12.20.09.50.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Dec 2022 09:50:10 -0800 (PST) X-Google-Original-From: Dr Rainer Woitok In-Reply-To: Msg <87sfhachjg.fsf@yahoo.com> of 2022-12-20 21:48:35 +0800 from luangruo@yahoo.com X-Mailer: VM 8.0.12-devo-585 under 21.5 (beta34) "kale" XEmacs Lucid (x86_64-pc-linux) Received-SPF: pass client-ip=2a00:1450:4864:20::635; envelope-from=rainer.woitok@gmail.com; helo=mail-ej1-x635.google.com X-Spam_score_int: -32 X-Spam_score: -3.3 X-Spam_bar: --- X-Spam_report: (-3.3 / 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, NICE_REPLY_A=-1.161, 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.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:141875 Archived-At: Po Lu, On Tuesday, 2022-12-20 21:48:35 +0800, you wrote: > ... > Did you set `frame-resize-pixelwise' to t? I didn't up to now. However, setting it changed neither size nor posi- tion of the initial frame, but it slightly changed the window manager's geometry information for the frames created via "C-x 5 Cf": it returned "1040x950+58+58" for the first frame and "1040x950+87+46" for the sec- ond, where the "1040x950" part probably is the "80x40" window size in pixels, the difference between 58 and 87 still is 29 pixels to the right while the difference between 58 and 46 is 12 pixels up, which might not have had any effect in my former tests because these frames were already at "+xxx+0", and thus going farther up was just not possible. I had set "frame-resize-pixelwise" in my "init.el" file, but according to the documentation this file is only read AFTER the initial frame has been created. Upon further reading the documentation I finally found frame parameter "user-position", and setting this to "t" in both vari- ables, "default-frame-alist" and "initial-frame-alist" at least solved the positioning problems for the frames opened via "C-x 5 C-f". Uff :-) Another observation regarding the initial frame: when I open a new file in these frames and enter "C-u 90 O", the gap in the uppermost line be- tween the rightmost "O" and the continuation symbol in the fringe area is roughly twice as wide in the "79x40" frame as in the "80x40" frames. Could this indicate some rounding effect eventually causing the initial frame becoming too wide and being cut off? Sincerely, Rainer