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: Frame shifted upwards upon changing font size Date: Thu, 15 Sep 2022 09:17:32 +0200 Message-ID: <87bkrhksxf.fsf@gmail.com> References: <87leqml110.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14097"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Gregory Heytings , Eli Zaretskii , help-gnu-emacs@gnu.org To: uzibalqa Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 15 09:28:29 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 1oYjIR-0003Pq-3G for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 15 Sep 2022 09:28:27 +0200 Original-Received: from localhost ([::1]:53014 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oYjIP-0002WZ-Ni for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 15 Sep 2022 03:28:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51542) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oYj7y-0006zD-7p for help-gnu-emacs@gnu.org; Thu, 15 Sep 2022 03:17:38 -0400 Original-Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]:47097) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oYj7w-00032Z-GI; Thu, 15 Sep 2022 03:17:37 -0400 Original-Received: by mail-wr1-x42a.google.com with SMTP id g3so8461964wrq.13; Thu, 15 Sep 2022 00:17:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date; bh=4pAF39eb8Z4SoZVoMw/0ntutHEOYnjX8fBRI34xQOUY=; b=BWGMcFEROdv0NqPVChn3sN2jm7CEzzS1PXoI/DLlerH149Mo/oS6hmnjVlAPZSekGd e1z6TomwzCYXTLb1m8gfdFEVvXRZhJHrONBwZRD/1F9Ebhb1oH+TLXm90lpopisAM8tm bp64qpb6KC0+16LstkxcaaCwTX1fxKHwvgxGhngEWK9X4adICdRS6y/XZyciuFQKE3ZW 55d6h3G6fWFy0DxnEYg6gemZCSG77fY50i9ClPMkrR9LhQ9XjaTKmY4r9vqAw3d0G2pl fw/3Id7b83nYVEyW6nHCEPjOrvcURxK0C5kIIZ1vtVf6V0eB6hm+KSjmeSR4SqQfhcGy uwvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=4pAF39eb8Z4SoZVoMw/0ntutHEOYnjX8fBRI34xQOUY=; b=gom3k4l6EWf+bQuYeSChPOOUwifiU+H1ebA3zWrj9HldWkg9GXdeqCVW48ZkbuN+rh sMEydzNFLNbbpslJkcdCc79sarLGaNlUfZtgmFTVf53mFivZJCncyD3ufENpUnhmY8Sg EdR5rrgbKWW+mrKkvHRsU1+qxX8ZUZBeH37J9MT/sp0k8LIT2JxfuUUpzd+x59eST+MZ A6wsJPVz8X1bXE2Q6LKi8d7D4+WEHRZcnZfVr5xFeOkt6+9DyzSp+8euIPHgv+YEzjUi w3KNe6D1qsE+m2gnZKba1pRqdyXh2sWcs4IIDImAFuxdsAztetVLFZl/vFjiNqsbVZ7G U1ZQ== X-Gm-Message-State: ACgBeo1X/l3ZoBg6P8MMtdjT3cPtdIUTjixQMpgPt3xGESwfBfkNGWV8 jLGzUDmXDI0zHkhN31zTWxrD182WBGA= X-Google-Smtp-Source: AA6agR6dYgNozS9orWTVgZF/RLYTunbvhKCpWBTrt+ml5PXmipsZLkGkwm0mxw0eOX6zR8ngr4c2pw== X-Received: by 2002:a5d:6488:0:b0:225:f99:338b with SMTP id o8-20020a5d6488000000b002250f99338bmr24000961wri.638.1663226253771; Thu, 15 Sep 2022 00:17:33 -0700 (PDT) Original-Received: from rltb ([2a01:e0a:3f3:fb50:16a0:9848:d23c:7dcb]) by smtp.gmail.com with ESMTPSA id g8-20020a5d4888000000b00228634628f1sm1539447wrq.110.2022.09.15.00.17.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Sep 2022 00:17:33 -0700 (PDT) In-Reply-To: (uzibalqa@proton.me's message of "Wed, 14 Sep 2022 15:09:55 +0000") Received-SPF: pass client-ip=2a00:1450:4864:20::42a; envelope-from=rpluim@gmail.com; helo=mail-wr1-x42a.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, T_SCC_BODY_TEXT_LINE=-0.01 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" Xref: news.gmane.io gmane.emacs.help:139472 Archived-At: >>>>> On Wed, 14 Sep 2022 15:09:55 +0000, uzibalqa sai= d: uzibalqa> Could emacs get to understand the monitor within which the in= itial frame >>=20 uzibalqa> gets displayed and be able to center the frame in that monito= r? >>=20 >>=20 >> `frame-monitor-attributes' will give you the same information as` >> display-monitor-attributes-list', but for the monitor where the >> currently selected frame is displayed. >>=20 >>=20 >> Robert >> -- uzibalqa> frame-monitor-attributes gives me uzibalqa> ((geometry 1080 1152 1366 768) (workarea 1080 1152 1311 768) = (mm-size 344 194)=20 uzibalqa> (frames # #) (source . "Gdk")) uzibalqa> How do I interpret this, and how can I use this information? Well, you do (alist-get 'geometry (frame-monitor-attributes)) which gives you a list, of which the 3rd element is the width of the monitor, which you can use in Gregory=CA=BCs example function. Robert --=20