From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: uzibalqa Newsgroups: gmane.emacs.help Subject: Re: Frame shifted upwards upon changing font size Date: Thu, 15 Sep 2022 11:43:03 +0000 Message-ID: References: <87leqml110.fsf@gmail.com> <87bkrhksxf.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="15736"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Gregory Heytings , Eli Zaretskii , help-gnu-emacs@gnu.org To: Robert Pluim Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 15 13:44:50 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 1oYnIY-0003tt-77 for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 15 Sep 2022 13:44:50 +0200 Original-Received: from localhost ([::1]:38238 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oYnIW-0007Op-PK for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 15 Sep 2022 07:44:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47010) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oYnH0-0007Od-97 for help-gnu-emacs@gnu.org; Thu, 15 Sep 2022 07:43:15 -0400 Original-Received: from mail-4027.protonmail.ch ([185.70.40.27]:60177) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oYnGx-0008Vq-Sm for help-gnu-emacs@gnu.org; Thu, 15 Sep 2022 07:43:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail; t=1663242188; x=1663501388; bh=50KhGkH3jxREUPSunvnJDG8T1tiUvkrdLvvpXce56Cg=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID; b=H4SMxw1pyqh2frwaNzQHmjPebuLCPT8TjG7C4t5cSkroal7/AmgY9aVMXFk2lZnHJ kvuo6XkZ5KwkfG+FKh897+yiYas5wJOUPCXfynKU5b6okKJJ9sMs7ulPyEg5pbdTow lxlQqocGUte7arkxqp7/lYM0jSwXCiRdTK0MnYkpm2/LCScCOCWlHR+V5FwUHw9Gzg zYGsIip3MQG9MFO2jGAYMcdk50OFyFesSpylDILy7zYyQTeyB/B7I8aT+vwAQhsh+d gNMt2W5CzKVirW+68VqOXJHZYsZ/AJRqfgu9qVG7ZbvFbxFliGJvtunEvFr74BU0g5 RAFxfAW+IlWnA== In-Reply-To: <87bkrhksxf.fsf@gmail.com> Feedback-ID: 52887082:user:proton Received-SPF: pass client-ip=185.70.40.27; envelope-from=uzibalqa@proton.me; helo=mail-4027.protonmail.ch 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, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-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" Xref: news.gmane.io gmane.emacs.help:139476 Archived-At: ------- Original Message ------- On Thursday, September 15th, 2022 at 7:17 AM, Robert Pluim wrote: > > > > > > On Wed, 14 Sep 2022 15:09:55 +0000, uzibalqa uzibalqa@proton.me= said: >=20 >=20 > uzibalqa> Could emacs get to understand the monitor within which the init= ial frame >=20 > >> >=20 > uzibalqa> gets displayed and be able to center the frame in that monitor? >=20 > >> >=20 > >> >=20 > >> `frame-monitor-attributes' will give you the same information as` >=20 > >> display-monitor-attributes-list', but for the monitor where the >=20 > >> currently selected frame is displayed. >=20 > >> >=20 > >> >=20 > >> Robert >=20 > >> -- >=20 >=20 > uzibalqa> frame-monitor-attributes gives me >=20 >=20 > uzibalqa> ((geometry 1080 1152 1366 768) (workarea 1080 1152 1311 768) (m= m-size 344 194) >=20 >=20 > uzibalqa> (frames # #)= (source . "Gdk")) >=20 >=20 > uzibalqa> How do I interpret this, and how can I use this information? >=20 >=20 > Well, you do >=20 > (alist-get 'geometry (frame-monitor-attributes)) >=20 > 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. >=20 > Robert > -- Would (frame-position) and the first two elements in (alist-get 'geometry (= frame-monitor-attributes)) give me the same information?