From unknown Sun Jun 22 07:38:18 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#60575 <60575@debbugs.gnu.org> To: bug#60575 <60575@debbugs.gnu.org> Subject: Status: 28.2; string-pixel-width always returns zero Reply-To: bug#60575 <60575@debbugs.gnu.org> Date: Sun, 22 Jun 2025 14:38:18 +0000 retitle 60575 28.2; string-pixel-width always returns zero reassign 60575 emacs submitter 60575 Sean Devlin severity 60575 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 05 10:51:42 2023 Received: (at submit) by debbugs.gnu.org; 5 Jan 2023 15:51:42 +0000 Received: from localhost ([127.0.0.1]:52657 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDSWs-0004zT-9d for submit@debbugs.gnu.org; Thu, 05 Jan 2023 10:51:42 -0500 Received: from lists.gnu.org ([209.51.188.17]:54908) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDSWr-0004zM-44 for submit@debbugs.gnu.org; Thu, 05 Jan 2023 10:51:41 -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 ) id 1pDSWq-0007ua-Td for bug-gnu-emacs@gnu.org; Thu, 05 Jan 2023 10:51:40 -0500 Received: from mail-vk1-xa34.google.com ([2607:f8b0:4864:20::a34]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pDSWo-0004uy-RM for bug-gnu-emacs@gnu.org; Thu, 05 Jan 2023 10:51:40 -0500 Received: by mail-vk1-xa34.google.com with SMTP id b81so18346155vkf.1 for ; Thu, 05 Jan 2023 07:51:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toadstyle-org.20210112.gappssmtp.com; s=20210112; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:from:to:cc:subject:date:message-id:reply-to; bh=w3M0mhNvhM+ez0Ula8OrjMHj5g9mR8UQm1m5wZkI7xg=; b=BhZqq7Yk9z+6HnrUfw1ehYBdqvrkAobvJMrMMz/qxseG/Dv36FAXkFtfVJJq3CSFZP PAycaj/dRsnK9JPyn67T9vk3TZbRgwxZ/hMC2Cdvnyyt60FGZ3xK7H7/YOKYFCEVYyMX Ws1NJEaJ/044Zbfi3dshdMylavlaOPgpL9FZu/GMl0UHCQ5zeiios5GcLknOXdO18YVz o+jahsUF50w9i9kYENW02scz98PzhSXqYHIPrDptUeCNwNdjzavuq4XCLyAcaV8rH9/n 9FYcoy2bWj+EHCBkJGbxwUDcwWZCPAhSdDKm7Rn9SxphhjBfu/p7LCpfAQxbirshxoIY pg2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=w3M0mhNvhM+ez0Ula8OrjMHj5g9mR8UQm1m5wZkI7xg=; b=epd0eqtOLWZcCpeGQt6uFwXwURaaeL9Ntj4dE513VtKGGeF/RKAKxE6jiQrq+9AR2m v5oBtBTb6AqURVjqSxcR1ta0wVC5LHuByW+r0bScsDapEpHD2W+5Imb9N+4EWWuy7iqa s5OLY/moj1lAQFnz1dYBf9gZWGsfS4qyubvVfoyHJc4BHN8tu2KAChWcAcIvuE7wYA6L pSch8lKaMYNLhWXrbdaDGKIAVhKRNPpubJHvh4BFM/35esbmMZt5HV2Bst1VphwPoGpc 6APqgI18vajhu2DzEVLNPoslrWR0SbXT7q6whw/w3dJFFg7bsoSYOyaAW9o3jaRT5RDy vcNg== X-Gm-Message-State: AFqh2krgMyCMnazqnm4Sp6kE9SRSObPyA7SbenaOnVK6gVNktqLZba5r DHux62WxhWAbp8NKCl9sm1e7Qfmbcv5U8wsY X-Google-Smtp-Source: AMrXdXv5R5QpjonBa8UULGmK4ERQwkwhbYgpVO5zsh5N/mW/XgvzxDa3icBFEq/HjNhskrChKa+hsg== X-Received: by 2002:a1f:9b81:0:b0:3cc:110e:b81e with SMTP id d123-20020a1f9b81000000b003cc110eb81emr24300958vke.8.1672933896859; Thu, 05 Jan 2023 07:51:36 -0800 (PST) Received: from smtpclient.apple ([70.107.172.48]) by smtp.gmail.com with ESMTPSA id i17-20020a05620a405100b006fcb77f3bd6sm26473328qko.98.2023.01.05.07.51.36 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Jan 2023 07:51:36 -0800 (PST) From: Sean Devlin Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.400.42\)) Subject: 28.2; string-pixel-width always returns zero Message-Id: Date: Thu, 5 Jan 2023 10:51:25 -0500 To: bug-gnu-emacs@gnu.org X-Mailer: Apple Mail (2.3731.400.42) Received-SPF: pass client-ip=2607:f8b0:4864:20::a34; envelope-from=spd@toadstyle.org; helo=mail-vk1-xa34.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, 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-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Hi folks, The compat package recently added a function string-pixel-width. On my macOS GUI build of Emacs 28.2, this function always returns zero. I'm using commit 46d97649897e91a4086b9812346eed168a8c9cc9 of the compat package. To reproduce this result, install compat with the given commit hash and evaluate the following forms: (require 'compat) (string-pixel-width "a string of some width") The second form returns zero regardless of the input string. I see that string-pixel-width inserts the string in a buffer and then calls (buffer-text-pixel-size nil nil t). This function is also defined in compat and calls window-text-pixel-size to do its work. It looks like the handling of the x-limit parameter in window-text-pixel-size may have changed in the Emacs 29 branch. In particular, it seems to set the max_x variable to INT_MAX if x-limit is t (or any non-nil value that is not a fixnum in the expected range). The string-pixel-width function does pass t as the x-limit argument, so I think the behavior will differ between Emacs 29 and earlier versions. Maybe the string-pixel-width function in compat should just pass most-positive-fixnum for x-limit. Thanks! In GNU Emacs 28.2 System Description: macOS 13 Configured using: 'configure --with-ns '--enable-locallisppath=/Library/Application Support/Emacs/${version}/site-lisp:/Library/Application Support/Emacs/site-lisp' --with-modules' Configured features: ACL GMP GNUTLS JSON LIBXML2 MODULES NOTIFY KQUEUE NS PDUMPER THREADS TOOLKIT_SCROLL_BARS ZLIB Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: IELM Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util rmail rmail-loaddefs auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json map text-property-search mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils pulse color help-fns radix-tree help-mode xref project time-date subr-x thingatpt find-func compat compat-29 compat-28 compat-27 compat-26 compat-25 compat-24 vc-git diff-mode easy-mmode vc-dispatcher seq byte-opt gv bytecomp byte-compile cconv cl-print ielm pp comint ansi-color ring misearch multi-isearch dired-aux cl-loaddefs cl-lib dired dired-loaddefs iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads kqueue cocoa ns multi-tty make-network-process emacs) Memory information: ((conses 16 73699 8408) (symbols 48 8298 1) (strings 32 24928 1639) (string-bytes 1 835607) (vectors 16 17852) (vector-slots 8 238271 15106) (floats 8 118 69) (intervals 56 1264 0) (buffers 992 18)) From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 10 18:19:15 2023 Received: (at 60575) by debbugs.gnu.org; 10 Jan 2023 23:19:15 +0000 Received: from localhost ([127.0.0.1]:41366 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pFNti-0006lw-Tb for submit@debbugs.gnu.org; Tue, 10 Jan 2023 18:19:15 -0500 Received: from mail-qt1-f178.google.com ([209.85.160.178]:39919) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pFNtg-0006lg-Rp for 60575@debbugs.gnu.org; Tue, 10 Jan 2023 18:19:13 -0500 Received: by mail-qt1-f178.google.com with SMTP id s5so7953724qtx.6 for <60575@debbugs.gnu.org>; Tue, 10 Jan 2023 15:19:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toadstyle-org.20210112.gappssmtp.com; s=20210112; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:from:to:cc:subject:date:message-id:reply-to; bh=P36O/GOx7p5P5YoyGG8vX7M28ePldhoU4n9iMuIsulQ=; b=2eCkXESZ4lUogHQQwx/vqGTxx5OqE4TAJiEJ2PjYxRmy4M4nNxUavXJt/MaARmpZLW N/aVI+dOsvBAfjPns0FK/xy/ZKfuKBrRhS+5QKh1p+ct7zRYONZk/ky14UGzp3d6nypV rEy8zrBp1mhkpugNJz6VIU+DW0g/qKBs3Ior4t0HrgOLzh4Sb38QAmysba+C/AGGapw3 j89mH86JMqsRSGvsq0mw1BJBZ0igwQqkIFBQPLLBD9S0B4JkpjaGBc6xo/xipg/VJ/87 0FyDbe89Ec2AwwuPd/acnBfVfFfoBOjjpaAmlmun78sP6CoIhAv8VkSRJjW8rRFAO7Vp cosA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=P36O/GOx7p5P5YoyGG8vX7M28ePldhoU4n9iMuIsulQ=; b=hKgBtsoE8SovqrHp55fNo9feFDCyH2x7d7iuDel8JG1KqZIuuMQ4WTB8m1zdpiv8wZ Jjh7q0BhaTnaMX56PsAHhnxOynfwlhaA3vyw44CtIKyaa5rZpP3ZaELz+ZSgcFXuAE0H tkQ6TVALJTienf/GCH24roYKPaiYBSVJDij14uPZ2LAcZL8IyLw99uVMrB5qxmaqbzIW jNHnDFVEylfJdCnTvY/8Y5BGqBsWmLVWEpPgiiSa+Nv2BNZ2KjA4lmvRevQTFGRRjFXw eT56XeCMlf/CWCIBvyZyqAUHbXGuuBLyhOijiyZgs6wLHzY9rbh+56jizTazecPfXFML 0A1g== X-Gm-Message-State: AFqh2koOR1SgZh59xpZZcnRV0Hm88puIyBuCoPmeDMiubCSnW5NdlorE lB+xytmBHEcCfOsy+8kQGI6WHdG+Pmz1IzeL X-Google-Smtp-Source: AMrXdXupROkNOUiHtT7680P9SH3IVMkLbH0m+NuwX/0Fi/GrcWpYzMCUvdCD3BCUcrXxc76zPNFLEA== X-Received: by 2002:ac8:4891:0:b0:3a4:fddd:f8ef with SMTP id i17-20020ac84891000000b003a4fdddf8efmr6981976qtq.53.1673392747139; Tue, 10 Jan 2023 15:19:07 -0800 (PST) Received: from smtpclient.apple ([70.107.172.48]) by smtp.gmail.com with ESMTPSA id f26-20020ac8499a000000b003ae450e43acsm2640614qtq.12.2023.01.10.15.19.06 for <60575@debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Jan 2023 15:19:06 -0800 (PST) From: Sean Devlin Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.400.51\)) Subject: bug#60575: close 60575 Message-Id: Date: Tue, 10 Jan 2023 18:18:56 -0500 To: 60575@debbugs.gnu.org X-Mailer: Apple Mail (2.3731.400.51) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 60575 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) The function string-pixel-width was removed from compat in = 067896a6f06db342c64f28c26b46dc258a758dd1, so this bug can be closed. Thanks!= From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 11 07:19:44 2023 Received: (at 60575-done) by debbugs.gnu.org; 11 Jan 2023 12:19:44 +0000 Received: from localhost ([127.0.0.1]:41871 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pFa51-0002vs-V6 for submit@debbugs.gnu.org; Wed, 11 Jan 2023 07:19:44 -0500 Received: from eggs.gnu.org ([209.51.188.92]:43766) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pFa51-0002vd-0h for 60575-done@debbugs.gnu.org; Wed, 11 Jan 2023 07:19:43 -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 ) id 1pFa4v-0007UE-EB; Wed, 11 Jan 2023 07:19:37 -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=dUnyTpEG9OH2FYv6Rv5VoWXgQyCz6ZTS6D0/RTSd5bU=; b=IRwiynKWw0YL fbDIaC8/eSVzmmNic/vyhnETSrB4ca6MjaVyxJCHz2Q6FBYSC3WZPNqsKX7Z8PWGwLUOiOE1n8TVZ pyKS7IdBUxtXGc+aCrpPdbdl8xav1vADm4feXaP3gcEyAss//pTU3H3yNEDAFV/vBs0MiMRqyHbTm YFzFAcloMY9Rtpqz5L6X21bEF9u6hopZqiRRmlOH+uC/C+aPtXNJcgOIPfLcfrJnXREPpQu+iYDZk YiRa/ivRpXwhjEnlMqSa3mFK5AGiI0dMgtZFXeOOIJBx+4Q7eHDzCo074NDNDvrKOB6qzbLSKQKae Yv1xaWJvAwny8GpB3BtKZQ==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pFa4X-0008Jv-HN; Wed, 11 Jan 2023 07:19:37 -0500 Date: Wed, 11 Jan 2023 14:19:44 +0200 Message-Id: <83lem9mffj.fsf@gnu.org> From: Eli Zaretskii To: Sean Devlin In-Reply-To: (message from Sean Devlin on Tue, 10 Jan 2023 18:18:56 -0500) Subject: Re: bug#60575: close 60575 References: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 60575-done Cc: 60575-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Sean Devlin > Date: Tue, 10 Jan 2023 18:18:56 -0500 > > The function string-pixel-width was removed from compat in 067896a6f06db342c64f28c26b46dc258a758dd1, so this bug can be closed. > > Thanks! Done, thanks. From unknown Sun Jun 22 07:38:18 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 08 Feb 2023 12:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator