From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#74750: clone-frame and make-frame pixelwise issues Date: Wed, 11 Dec 2024 10:37:57 +0100 Message-ID: <4d057282-8ec2-4ddb-ac0f-23e65af6e5a1@gmx.at> References: <861pyfd8pe.fsf@gnu.org> Reply-To: martin rudalics Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------wx5VwWyvUSa0NoyqaSwlxPpF" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33347"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: Eli Zaretskii , 74750@debbugs.gnu.org To: Ship Mints Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 11 10:39:42 2024 Return-path: Envelope-to: geb-bug-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 1tLJC1-0008WM-LJ for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 11 Dec 2024 10:39:41 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tLJBR-0003HQ-P3; Wed, 11 Dec 2024 04:39:05 -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 1tLJBP-0003Gv-MN for bug-gnu-emacs@gnu.org; Wed, 11 Dec 2024 04:39:03 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tLJBP-0003Nw-DI for bug-gnu-emacs@gnu.org; Wed, 11 Dec 2024 04:39:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=In-Reply-To:From:References:MIME-Version:Date:To:Subject; bh=HfZxfafwAjx/CD6LgDGLSBRFp63ouXBnocNSfPBBiZg=; b=ne+nJ3MBrXm3uGeAelQ/o2ecp/exDhfT9OeJo2i3XAL63xSs5rIu7rgrIbartX22Qbew4tsDME2rZsdvQQM9x4mxlE04ABisY6fot4Bl0CKv9nN8bWt8z7sJWFzAComrEolstuGL68wmA6SbwKIVUUQZ2piv7oA7Ba3VYzMHbeo167iYQ8m4kBos8JdcPqlVWExqPcBR3eQ/v98/qm9R+vxjg1i5lukc8aF0OS2GI8GdjMzQTI7SyVzLrcgEQqtGFyM3IDUlnGxMTo/UAld+29DYqTx9DjL+9nzlV9Knj+fj3+OjYuyrlE8kX2/4lmzF/ZzLCbTSq3rTjQ6NLUMLFw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tLJBO-00019r-7E for bug-gnu-emacs@gnu.org; Wed, 11 Dec 2024 04:39:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 11 Dec 2024 09:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74750 X-GNU-PR-Package: emacs Original-Received: via spool by 74750-submit@debbugs.gnu.org id=B74750.17339098944296 (code B ref 74750); Wed, 11 Dec 2024 09:39:02 +0000 Original-Received: (at 74750) by debbugs.gnu.org; 11 Dec 2024 09:38:14 +0000 Original-Received: from localhost ([127.0.0.1]:32920 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tLJAY-000173-U5 for submit@debbugs.gnu.org; Wed, 11 Dec 2024 04:38:14 -0500 Original-Received: from mout.gmx.net ([212.227.15.15]:57081) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tLJAV-00016L-Rh for 74750@debbugs.gnu.org; Wed, 11 Dec 2024 04:38:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.at; s=s31663417; t=1733909878; x=1734514678; i=rudalics@gmx.at; bh=HfZxfafwAjx/CD6LgDGLSBRFp63ouXBnocNSfPBBiZg=; h=X-UI-Sender-Class:Content-Type:Message-ID:Date:MIME-Version: Subject:To:Cc:References:From:In-Reply-To:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=tgP3DfdZBIWBlWMKHBoKKcRiVrCaLPSzWLGG//XXmiVbF5xwsONBym8ecfLJbwBd D3YxXNDJbrcyWN7kwxYVN9Mz4VGe2smYI7fdDYCKmc8vGqABkr6TP7S9E3oRKfBAd l8OFJ5VuPAoq+Clx7/S/x7GjZTFH2Z3NQQ+kmAtfHxCUsKlguP741lt0/6pFcMFI+ IKTM7FY3EX0QKUC20u4uV3UuVMG9oTLRg7Rxj0cAvJ6REdDj5SlYnofBzj/vrWRlI QotY7bxX/QbZQbemMSYnG5z+r4f2XRJG3t23NniUO5n1SItIa9Lf/hSU1lAA/Oxdj +nBakxnyol9HXc8HFg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from [192.168.31.113] ([213.142.97.12]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1M2f5Z-1tKTHt2A3z-00GvHt; Wed, 11 Dec 2024 10:37:58 +0100 Content-Language: en-US In-Reply-To: X-Provags-ID: V03:K1:pGcjLtUalYsmPXx60pySzTiK4zatmf+TeoFQqegDQRp+MeTglHd Qw9+m1CBIhm6SA1NirsD5nQsEfhFEP+uumoQPLAUEPEFOHw4i6q8W4a6TP2lnCNBz6OV1dj EXrA7XHDXrAHrUXxkU/cW2fNx8OG7uIkQgdDAevFFaEfwmOzJ3TuI3m8ns70xuny1ZYtRUu NaaGj8XdE5Aaj8BzV08dg== UI-OutboundReport: notjunk:1;M01:P0:6ryWFjtZe4Q=;yCVr9hci25cBrl54q10mver48+q RDrGrezukAoHUlSH8K2WDhee/l/xEPiUNL4pKkkGbituVETnXFSLqSX5+e+X4pWP6PLUm8XR5 Yyc9VXpi4Yy/6kEe4aDQk2FNwug8qq2RFdtzDqWoc4aBG3h5bndRueIS4/w+Xn6rJkegpsBCo cP+yoqQoNPFphdMneUjQR9Z0nW/ev6v6mvQCGSl3s2WA9RzviyIrhTD+eOOK6ATm8YNEfnggL kImLUrDPBsPxtEErNi+iBT5bCCEZ7fs7HqhLUt/9BoSm9OukxhexlAdu0HB32Jjv6W/VVGfS1 eifQ1lWaXO4y1wNmRPlZW/h/OhvE8UtAkQnRtka/w5x/qsLbs/u9RVgyOxFcIAgLqVN7mA9HQ XuOfD272IrBv+rHdVBIoj0EvyxfUiWh/2FNbaK2hjl2UwlqvF+Dq7oUPLk8175lQGfXVvYiqC zG45Re8aTLBRnxtq3NCK4pEyq3VKlOygWReekgB2Fn3xFoDrSTp6KOs0dJQu8Z2Vu0rjy40EO Ffr/RVJmAj9TvXPkT2lYMKZfuxr0m05CZOk95aR4Nm7c4sEEn9JhI15oFTXfrwjaRYKImY1Oy 4qI1EBxJEnt5M16ijtKV/CIQ6t+Gxo+e3IdzR926nst4mko1j3Y6yhHxZJH9CzE8lzp3q/ZYQ dbq8YzDWBUBqrOyOw0uPjWBzzDwuMTyzvLxFtH0rLS+jh2qlxUOsQAHRH4nB31bweLHhWzI8M BSLOurhwSz+W6Qk8BoYLU8cgy4gkcPSMgphN/VHOaaB2V7nJhkJOcjV200wewSHsuyzhMApG X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:296811 Archived-At: This is a multi-part message in MIME format. --------------wx5VwWyvUSa0NoyqaSwlxPpF Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit > Somewhere in the bowels > of frame.c, et.al., is an issue where text-pixels behaves differently than > set-frame-size which is reliable on NS where make-frame using text-pixels > is incorrect by the vertical scroll bar width. GTK it's off, too, but I > didn't analyze that further. If you mean that with (progn (setq frame-resize-pixelwise t) (make-frame '((width . (text-pixels . 800))))) then (frame-text-width) evaluates to 784, please try the attached patch. Thanks, martin --------------wx5VwWyvUSa0NoyqaSwlxPpF Content-Type: text/x-patch; charset=UTF-8; name="make-frame.diff" Content-Disposition: attachment; filename="make-frame.diff" Content-Transfer-Encoding: base64 ZGlmZiAtLWdpdCBhL3NyYy9mcmFtZS5jIGIvc3JjL2ZyYW1lLmMKaW5kZXggZjYwNTNmY2Ez ZWYuLjRjMjFjZTViNTFiIDEwMDY0NAotLS0gYS9zcmMvZnJhbWUuYworKysgYi9zcmMvZnJh bWUuYwpAQCAtMTY4LDggKzE2OCwxMCBAQCBmcmFtZV9pbmhpYml0X3Jlc2l6ZSAoc3RydWN0 IGZyYW1lICpmLCBib29sIGhvcml6b250YWwsIExpc3BfT2JqZWN0IHBhcmFtZXRlcikKIAkg IHx8ICghaG9yaXpvbnRhbAogCSAgICAgICYmICFOSUxQIChmdWxsc2NyZWVuKSAmJiAhRVEg KGZ1bGxzY3JlZW4sIFFmdWxsd2lkdGgpKQogCSAgfHwgRlJBTUVfVEVSTUNBUF9QIChmKSB8 fCBGUkFNRV9NU0RPU19QIChmKSkKLSAgICAgICA6ICgoaG9yaXpvbnRhbCAmJiBmLT5pbmhp Yml0X2hvcml6b250YWxfcmVzaXplKQotCSAgfHwgKCFob3Jpem9udGFsICYmIGYtPmluaGli aXRfdmVydGljYWxfcmVzaXplKSkpOworICAgICA6ICgoaG9yaXpvbnRhbCAmJiBmLT5pbmhp Yml0X2hvcml6b250YWxfcmVzaXplCisJICYmICFFUSAocGFyYW1ldGVyLCBRc2Nyb2xsX2Jh cl93aWR0aCkpCisJfHwgKCFob3Jpem9udGFsICYmIGYtPmluaGliaXRfdmVydGljYWxfcmVz aXplCisJICAgICYmICFFUSAocGFyYW1ldGVyLCBRc2Nyb2xsX2Jhcl9oZWlnaHQpKSkpOwog CiAgIHJldHVybiBpbmhpYml0OwogfQo= --------------wx5VwWyvUSa0NoyqaSwlxPpF--