Received: (at 75936) by debbugs.gnu.org; 30 Jan 2025 07:25:04 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jan 30 02:25:04 2025 Received: from localhost ([127.0.0.1]:44107 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tdOv9-0004nq-H7 for submit <at> debbugs.gnu.org; Thu, 30 Jan 2025 02:25:04 -0500 Received: from sonic316-22.consmr.mail.ne1.yahoo.com ([66.163.187.148]:33356) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <luangruo@HIDDEN>) id 1tdOv7-0004mz-7j for 75936 <at> debbugs.gnu.org; Thu, 30 Jan 2025 02:25:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1738221895; bh=ECGa3iGtejmMgXlxSf1qjRa0vjbvObnppGAw+ItXZmg=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=Rb289HCEwGqfweDTnujztsHZ3O0Vt5U7kxOuBN6Ke8dr3eVKzblLm7Vd8YfjdoTYp+RX1rDrBNDtvkvBoy9RHX/NJ+rcU/uE5ZOIktF1Z17L+lfpOggBVbcQN4/arUY4WnCfr7cZQjeaw2fyAaUo6P5D3gLWn8PdBuPZbmdrMh3fQY1szhNmHJvGGT4RJ/39W1trwYrSAupBh6vjwhaWulHA6qYB/LadqlF0MlrjUinAwJWSw7zr+5QdTIrPYWRujwXnTElrIZUhHB8wm8bgT24abl0hsW4G6g5Xq/nyRJFTgLUl0yFLOpYn9E8hKFEsZzlM/vMY1xJgS2dd1lRm2w== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1738221895; bh=7GD9IM02zgOqKUTLW9IAbJg+zuUOCBbWS3EAvLMU+IV=; h=X-Sonic-MF:From:To:Sub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K.qKu38PrSivM_KsV0OBdMFmsOXis8G5PiNlUvzAILEQvfOkf8fM7EFaIy3a PAXaud0wa9oiyKIY3UqH2jq9odtryo1SnnhQJGJIFNWMwoTUa2rzX5SvfzZX_vuiz4dRjKOZUouE oaTryA9ZRJM6uBWjyaXHUV5O7tOja7KiyCiHES4U7qGpfHM0TlqV3rGpbp6ZWpMyBMlh9vNCDPAe Y4OUJRCvOK5jBiSjKAh5XiMEH5gHtu1uoRqhASpCbUTOwlBozuDTaD9cDLoYvcD9I4tHhLRNt96T zSz1oWr9NL629tue9_rslJcZdatOXl6iWFGmOQjThFxSlg4WB1SqhmjLy_ysj1U3w3wLOKfbk4yS Sg46v29PNiyJS6a1b_5irDFai04mASqTHeADeW6L5Wxm9VehvjggQFQN.nutumpbMQgVp23YsO91 kh4D78VsC4z9_Ra7gImMjN93X_EhTrN1gWmmNZEkGSqNvS.mdJJhv4wOue.RE2yPeDPxsPI45PEF PgAubJVY7BD5gEflo3AfUXaNAxCj_BICcLnRRWK6I0MvrRcemlJuh8NLF2nc- X-Sonic-MF: <luangruo@HIDDEN> X-Sonic-ID: 29220c23-45f7-447d-9582-8ff7702a3db3 Received: from sonic.gate.mail.ne1.yahoo.com by sonic316.consmr.mail.ne1.yahoo.com with HTTP; Thu, 30 Jan 2025 07:24:55 +0000 Received: by hermes--production-sg3-5b7954b588-h28gr (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 7f1928e4f054c2160fa80c2306f8dea2; Thu, 30 Jan 2025 07:24:49 +0000 (UTC) From: Po Lu <luangruo@HIDDEN> To: Eli Zaretskii <eliz@HIDDEN> Subject: Re: bug#75936: monitor width reporting In-Reply-To: <86o6zolro6.fsf@HIDDEN> (Eli Zaretskii's message of "Thu, 30 Jan 2025 08:52:25 +0200") References: <192a64-679ac200-b-45e86380@138906690> <86o6zolro6.fsf@HIDDEN> Date: Thu, 30 Jan 2025 15:24:43 +0800 Message-ID: <8734h0ojb8.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Mailer: WebService/1.1.23187 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Content-Length: 4343 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 75936 Cc: martin rudalics <rudalics@HIDDEN>, david <david@HIDDEN>, 75936 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Eli Zaretskii <eliz@HIDDEN> writes: >> From: "david" <david@HIDDEN> >> Date: Wed, 29 Jan 2025 17:03:39 -0700 >> >> This is a bug that caused me some trouble; but mainly it is FYI. The physical >> arrangement is a laptop, which has a 4K screen, driving a single 4K screen. I >> get (still and always) the different results below from two different Emacs >> builds. > > Can you tell more about the differences between these two builds? Are > they builds of the same Emacs version with the same configure-time > switches/options and the same versions of the development tools, or > are any of those factors different between the builds (and if so, > which ones)? > >> >> The items below are: >> >> A: code from a startup file; the messages are debug stuff, normally absent, the >> intention behind the code is to compute the aspect ratio of a single monitor. >> >> B and C: output from two different Emacs builds, see ned and nut directories. >> The different widths matter to me because I am computing a ratio that >> later wreak havoc 8-( The creation dates probably matter to you. >> Other than the dates I see no way to differentiate between the builds. >> >> A >> ;; Probably this is not the aspect ratio of the full screen, probably the window manager will keep >> ;; some of the screen for itself. >> (defconst .emacs-monitor-aspect-ratio >> (let ((geometry (assoc 'geometry (frame-monitor-attributes (selected-frame))) )) >> (message (format "geometry %s" geometry)) >> (message (format "width %s" (float (nth 3 geometry)))) >> (message (format "height %s" (nth 4 geometry))) >> (message (format "pix width %s" (display-pixel-width))) >> (message (format "pix height %s" (display-pixel-height))) >> (message (format "mm width %s" (display-mm-width))) >> (message (format "mm height %s" (display-mm-height))) >> (message (format "screens %s" (display-screens))) >> (message (format "attributes %s" (display-monitor-attributes-list))) >> (message (format "frame atts %s" (frame-monitor-attributes))) >> (/ (float (nth 3 geometry)) >> (nth 4 geometry))) >> "*The ratio width/height for the current display screen, calculated in screen pixels.") >> >> B >> .emacs-emacs-directory: /home/dajo/ned/emacs-29.3/ >> geometry (geometry 0 0 3840 2160) >> width 3840.0 >> height 2160 >> pix width 7680 >> pix height 2160 >> mm width 2032 >> mm height 572 >> screens 1 >> attributes (((name . DP-1) (geometry 0 0 3840 2160) (workarea 0 72 3840 2088) (mm-size 597 336) (frames #<frame *scratch* - GNU Emacs at Aglaea 0x559619a129a8>) (source . XRandR 1.5)) ((name . eDP-1) (geometry 3840 0 3840 2160) (workarea 3840 0 3840 2160) (mm-size 309 173) (frames) (source . XRandR 1.5))) >> frame atts ((name . DP-1) (geometry 0 0 3840 2160) (workarea 0 72 3840 2088) (mm-size 597 336) (frames #<frame *scratch* - GNU Emacs at Aglaea 0x559619a129a8>) (source . XRandR 1.5)) >> >> Nepenthes .emacs loading in GNU Emacs 29.3 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0, Xaw scroll bars) >> of 2024-07-18. >> >> C >> .emacs-emacs-directory: /home/dajo/nut/emacs-29.3/ >> geometry (geometry 0 0 7680 2160) >> width 7680.0 >> height 2160 >> pix width 7680 >> pix height 2160 >> mm width 2032 >> mm height 572 >> screens 1 >> attributes (((name . combined screen) (geometry 0 0 7680 2160) (workarea 0 72 7680 2088) (mm-size 2032 572) (frames #<frame *scratch* - GNU Emacs at Aglaea 0x5620435c10a8>) (source . fallback))) >> frame atts ((name . combined screen) (geometry 0 0 7680 2160) (workarea 0 72 7680 2088) (mm-size 2032 572) (frames #<frame *scratch* - GNU Emacs at Aglaea 0x5620435c10a8>) (source . fallback)) >> >> Nepenthes .emacs loading in GNU Emacs 29.3 (build 3, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0, Xaw scroll bars) >> of 2025-01-29. > > Looks like one of the outputs reports two separate screens, whereas > the other reports a combined screen? If so, aren't the differences > expected? Or what am I missing? The latter Emacs build was configured on a system without XRandr headers, XRandr being the X server extension that provides detailed monitor information.
bug-gnu-emacs@HIDDEN
:bug#75936
; Package emacs
.
Full text available.Received: (at 75936) by debbugs.gnu.org; 30 Jan 2025 06:52:36 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jan 30 01:52:36 2025 Received: from localhost ([127.0.0.1]:44023 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tdOPj-0003HV-PO for submit <at> debbugs.gnu.org; Thu, 30 Jan 2025 01:52:36 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:35132) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tdOPh-0003HB-8b for 75936 <at> debbugs.gnu.org; Thu, 30 Jan 2025 01:52:33 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1tdOPb-0007pC-Kk; Thu, 30 Jan 2025 01:52:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=XBbpVkRJNtijgpa5HB1GcUp2jm2/b/9+uYtlX+F4OLw=; b=FMDRdQdIXQTw bedVYdtjtmmp84pY7sMdwM76B1lFeUPoVAkoM2k7pNUdaHMNAas9G1EYO2A1AFnt4HRq3UluAgZpy 0H+0l1h+92q1ZiKQnhlHe5z6Hu8TeLp8XjH8o2SLmZLKvAm7uXo3EGAW+DOralSTK7i2W13+mPp4n IsEgUr527gysEmG56XF4bgvJ3Ho/lPlShtqLu1zy40nvGLFheX9d6afs5ksuuxQ29/uR531QFcpZ2 74OMGCVGjcG6olZkmnKA4/rjeu2sG8JulNQKeuHhA38hvobukANCbAzrBjeM2KSLIGrulM58/G2Qf dYU0ZOYxJR035N3queF3/A==; Date: Thu, 30 Jan 2025 08:52:25 +0200 Message-Id: <86o6zolro6.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: "david" <david@HIDDEN>, Po Lu <luangruo@HIDDEN>, martin rudalics <rudalics@HIDDEN> In-Reply-To: <192a64-679ac200-b-45e86380@138906690> (david@HIDDEN) Subject: Re: bug#75936: monitor width reporting References: <192a64-679ac200-b-45e86380@138906690> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 75936 Cc: 75936 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > From: "david" <david@HIDDEN> > Date: Wed, 29 Jan 2025 17:03:39 -0700 > > This is a bug that caused me some trouble; but mainly it is FYI. The physical > arrangement is a laptop, which has a 4K screen, driving a single 4K screen. I > get (still and always) the different results below from two different Emacs > builds. Can you tell more about the differences between these two builds? Are they builds of the same Emacs version with the same configure-time switches/options and the same versions of the development tools, or are any of those factors different between the builds (and if so, which ones)? > > The items below are: > > A: code from a startup file; the messages are debug stuff, normally absent, the > intention behind the code is to compute the aspect ratio of a single monitor. > > B and C: output from two different Emacs builds, see ned and nut directories. > The different widths matter to me because I am computing a ratio that > later wreak havoc 8-( The creation dates probably matter to you. > Other than the dates I see no way to differentiate between the builds. > > A > ;; Probably this is not the aspect ratio of the full screen, probably the window manager will keep > ;; some of the screen for itself. > (defconst .emacs-monitor-aspect-ratio > (let ((geometry (assoc 'geometry (frame-monitor-attributes (selected-frame))) )) > (message (format "geometry %s" geometry)) > (message (format "width %s" (float (nth 3 geometry)))) > (message (format "height %s" (nth 4 geometry))) > (message (format "pix width %s" (display-pixel-width))) > (message (format "pix height %s" (display-pixel-height))) > (message (format "mm width %s" (display-mm-width))) > (message (format "mm height %s" (display-mm-height))) > (message (format "screens %s" (display-screens))) > (message (format "attributes %s" (display-monitor-attributes-list))) > (message (format "frame atts %s" (frame-monitor-attributes))) > (/ (float (nth 3 geometry)) > (nth 4 geometry))) > "*The ratio width/height for the current display screen, calculated in screen pixels.") > > B > .emacs-emacs-directory: /home/dajo/ned/emacs-29.3/ > geometry (geometry 0 0 3840 2160) > width 3840.0 > height 2160 > pix width 7680 > pix height 2160 > mm width 2032 > mm height 572 > screens 1 > attributes (((name . DP-1) (geometry 0 0 3840 2160) (workarea 0 72 3840 2088) (mm-size 597 336) (frames #<frame *scratch* - GNU Emacs at Aglaea 0x559619a129a8>) (source . XRandR 1.5)) ((name . eDP-1) (geometry 3840 0 3840 2160) (workarea 3840 0 3840 2160) (mm-size 309 173) (frames) (source . XRandR 1.5))) > frame atts ((name . DP-1) (geometry 0 0 3840 2160) (workarea 0 72 3840 2088) (mm-size 597 336) (frames #<frame *scratch* - GNU Emacs at Aglaea 0x559619a129a8>) (source . XRandR 1.5)) > > Nepenthes .emacs loading in GNU Emacs 29.3 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0, Xaw scroll bars) > of 2024-07-18. > > C > .emacs-emacs-directory: /home/dajo/nut/emacs-29.3/ > geometry (geometry 0 0 7680 2160) > width 7680.0 > height 2160 > pix width 7680 > pix height 2160 > mm width 2032 > mm height 572 > screens 1 > attributes (((name . combined screen) (geometry 0 0 7680 2160) (workarea 0 72 7680 2088) (mm-size 2032 572) (frames #<frame *scratch* - GNU Emacs at Aglaea 0x5620435c10a8>) (source . fallback))) > frame atts ((name . combined screen) (geometry 0 0 7680 2160) (workarea 0 72 7680 2088) (mm-size 2032 572) (frames #<frame *scratch* - GNU Emacs at Aglaea 0x5620435c10a8>) (source . fallback)) > > Nepenthes .emacs loading in GNU Emacs 29.3 (build 3, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0, Xaw scroll bars) > of 2025-01-29. Looks like one of the outputs reports two separate screens, whereas the other reports a combined screen? If so, aren't the differences expected? Or what am I missing?
bug-gnu-emacs@HIDDEN
:bug#75936
; Package emacs
.
Full text available.Received: (at submit) by debbugs.gnu.org; 30 Jan 2025 00:03:53 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jan 29 19:03:53 2025 Received: from localhost ([127.0.0.1]:43457 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tdI2C-00051n-KA for submit <at> debbugs.gnu.org; Wed, 29 Jan 2025 19:03:53 -0500 Received: from lists.gnu.org ([2001:470:142::17]:45296) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <david@HIDDEN>) id 1tdI29-00051U-9x for submit <at> debbugs.gnu.org; Wed, 29 Jan 2025 19:03:50 -0500 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 <david@HIDDEN>) id 1tdI23-0003SW-Sk for bug-gnu-emacs@HIDDEN; Wed, 29 Jan 2025 19:03:43 -0500 Received: from mx243.frii.com ([199.45.237.243]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <david@HIDDEN>) id 1tdI22-0000jE-0O for bug-gnu-emacs@HIDDEN; Wed, 29 Jan 2025 19:03:43 -0500 Received: from mx1.frii.com (mx1.frii.com [127.0.0.1]) by mx1.frii.com (Postfix) with ESMTP id 4Yjzl00SgjzB2Zfv for <bug-gnu-emacs@HIDDEN>; Wed, 29 Jan 2025 17:03:40 -0700 (MST) Authentication-Results: mx1.frii.com (amavis); dkim=pass (1024-bit key) reason="pass (just generated, assumed good)" header.d=ngdr.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ngdr.net; h= content-transfer-encoding:content-type:message-id:subject:date :mime-version:user-agent:to:from; s=dkim; t=1738195419; bh=Aclxs kB1Z8Hbs29hnCE1fzStu4oPf3FRnEQ5OsdyG9Q=; b=WVfEs2uDIFhYPWqtcodVk Xx3VtWPr91oG8w7XeOnyvZgnv1mS1uIuyJI+uUmzXCD2qAgLZr8btMK4VyGsCU3A f0GPfRYH+5ygt6XGxOpPZ143fn4CqUUJqGM6TMlXyizuAgNzWgAvEZe41XgOwicr cR/OuhrAr5E65nYUibFL2M= X-Amavis-Modified: Mail body modified (using disclaimer) - mx1.frii.com X-Virus-Scanned: amavis at mx1.frii.com X-Spam-Flag: NO X-Spam-Score: 0.9 X-Spam-Level: X-Spam-Status: No, score=0.9 tagged_above=-100 required=4.5 tests=[ALL_TRUSTED=0.1, BAYES_50=0.8] autolearn=ham autolearn_force=no Received: from mx1.frii.com ([127.0.0.1]) by mx1.frii.com (mx1.frii.com [127.0.0.1]) (amavis, port 10026) with ESMTP id WsC65wShWL6Y for <bug-gnu-emacs@HIDDEN>; Wed, 29 Jan 2025 17:03:39 -0700 (MST) Received: from mx1.frii.com (mx1.frii.com [127.0.0.1]) by mx1.frii.com (Postfix) with ESMTPSA id 4Yjzkz3bwBzB2Zfs for <bug-gnu-emacs@HIDDEN>; Wed, 29 Jan 2025 17:03:39 -0700 (MST) From: "david" <david@HIDDEN> To: bug-gnu-emacs@HIDDEN User-Agent: SOGoMail 5.10.0 MIME-Version: 1.0 Date: Wed, 29 Jan 2025 17:03:39 -0700 Subject: monitor width reporting Message-ID: <192a64-679ac200-b-45e86380@138906690> X-Forward: 73.229.82.30 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=199.45.237.243; envelope-from=david@HIDDEN; helo=mx243.frii.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, 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-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.0 (/) This is a bug that caused me some trouble; but mainly it is FYI. The p= hysical arrangement is a laptop, which has a 4K screen, driving a single 4K scr= een. I get (still and always) the different results below from two different E= macs builds. The items below are: A: code from a startup file; the messages are debug stuff, normally abs= ent, the intention behind the code is to compute the aspect ratio of a single= monitor. B and C: output from two different Emacs builds, see ned and nut direct= ories. The different widths matter to me because I am computing a rat= io that later wreak havoc 8-( The creation dates probably matter to y= ou. Other than the dates I see no way to differentiate between the= builds. =0C A ;; Probably this is not the aspect ratio of the full screen, probably= the window manager will keep ;; some of the screen for itself. (defconst .emacs-monitor-aspect-ratio (let ((geometry (assoc 'geometry (frame-monitor-attributes (se= lected-frame))) )) (message (format "geometry %s" geometry)) (message (format "width %s" (float (nth 3 geometry)))) (message (format "height %s" (nth 4 geometry))) (message (format "pix width %s" (display-pixel-width))) (message (format "pix height %s" (display-pixel-height))) (message (format "mm width %s" (display-mm-width))) (message (format "mm height %s" (display-mm-height))) (message (format "screens %s" (display-screens))) (message (format "attributes %s" (display-monitor-attributes-li= st))) (message (format "frame atts %s" (frame-monitor-attributes))) (/ (float (nth 3 geometry)) (nth 4 geometry))) "*The ratio width/height for the current display screen, calculated= in screen pixels.") =0C B .emacs-emacs-directory: /home/dajo/ned/emacs-29.3/ geometry (geometry 0 0 3840 2160) width 3840.0 height 2160 pix width 7680 pix height 2160 mm width 2032 mm height 572 screens 1 attributes (((name . DP-1) (geometry 0 0 3840 2160) (workarea 0 72 3840= 2088) (mm-size 597 336) (frames #<frame *scratch* - GNU Emacs at Aglae= a 0x559619a129a8>) (source . XRandR 1.5)) ((name . eDP-1) (geometry 384= 0 0 3840 2160) (workarea 3840 0 3840 2160) (mm-size 309 173) (frames) (= source . XRandR 1.5))) frame atts ((name . DP-1) (geometry 0 0 3840 2160) (workarea 0 72 3840= 2088) (mm-size 597 336) (frames #<frame *scratch* - GNU Emacs at Aglae= a 0x559619a129a8>) (source . XRandR 1.5)) Nepenthes .emacs loading in GNU Emacs 29.3 (build 1, x86=5F64-pc-linux-= gnu, X toolkit, cairo version 1.16.0, Xaw scroll bars) of 2024-07-18. =0C C .emacs-emacs-directory: /home/dajo/nut/emacs-29.3/ geometry (geometry 0 0 7680 2160) width 7680.0 height 2160 pix width 7680 pix height 2160 mm width 2032 mm height 572 screens 1 attributes (((name . combined screen) (geometry 0 0 7680 2160) (workare= a 0 72 7680 2088) (mm-size 2032 572) (frames #<frame *scratch* - GNU Em= acs at Aglaea 0x5620435c10a8>) (source . fallback))) frame atts ((name . combined screen) (geometry 0 0 7680 2160) (workare= a 0 72 7680 2088) (mm-size 2032 572) (frames #<frame *scratch* - GNU Em= acs at Aglaea 0x5620435c10a8>) (source . fallback)) Nepenthes .emacs loading in GNU Emacs 29.3 (build 3, x86=5F64-pc-linux-= gnu, X toolkit, cairo version 1.16.0, Xaw scroll bars) of 2025-01-29.
"david" <david@HIDDEN>
:bug-gnu-emacs@HIDDEN
.
Full text available.bug-gnu-emacs@HIDDEN
:bug#75936
; Package emacs
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.