From debbugs-submit-bounces@debbugs.gnu.org Wed Mar 07 17:13:50 2018 Received: (at submit) by debbugs.gnu.org; 7 Mar 2018 22:13:50 +0000 Received: from localhost ([127.0.0.1]:49959 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ethJm-00057H-6N for submit@debbugs.gnu.org; Wed, 07 Mar 2018 17:13:50 -0500 Received: from eggs.gnu.org ([208.118.235.92]:51328) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ethJk-000574-ED for submit@debbugs.gnu.org; Wed, 07 Mar 2018 17:13:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ethJe-0005fH-BH for submit@debbugs.gnu.org; Wed, 07 Mar 2018 17:13:43 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_40,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:55152) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ethJe-0005f9-7H for submit@debbugs.gnu.org; Wed, 07 Mar 2018 17:13:42 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42296) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ethJa-0003Nz-O8 for bug-gnu-emacs@gnu.org; Wed, 07 Mar 2018 17:13:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ethJX-0005cZ-Jh for bug-gnu-emacs@gnu.org; Wed, 07 Mar 2018 17:13:38 -0500 Received: from mout.kundenserver.de ([217.72.192.74]:38295) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ethJX-0005bj-9B for bug-gnu-emacs@gnu.org; Wed, 07 Mar 2018 17:13:35 -0500 Received: from [18.26.2.123] ([18.26.2.123]) by mrelayeu.kundenserver.de (mreue102 [212.227.15.184]) with ESMTPSA (Nemesis) id 0LwZF1-1ebsrC1hp1-018Ifw for ; Wed, 07 Mar 2018 23:13:33 +0100 To: bug-gnu-emacs@gnu.org From: =?UTF-8?Q?Cl=c3=a9ment_Pit-Claudel?= Subject: window-text-pixel-width includes width of following propertized space Message-ID: <80696d4e-c179-f14b-25e4-656a77954ceb@live.com> Date: Wed, 7 Mar 2018 17:13:32 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="5htIZ2zOq6bJn0gGbjnU0RwqdlGfpzr4m" X-Provags-ID: V03:K0:2MnlXlWUj6uSesjUa3XV2eGvGcjSg2WUmVNvZ3iG0MZ7aIlOBBJ wXpxCzi6Ii3uDZW1+pYZssXN7nML85e+yE6lv7vZTbHO0G0MT4peC7DPm81juQyL1I0I/Qz uIEuWLB30YhW3T8e8nbvbYNM+TQHrDpkmUwyyzVblZhQVTaJEk+XzsQF5lOoGFbYl/paZlI S8IpAAQ/7tHtHt7ib4xlw== X-UI-Out-Filterresults: notjunk:1;V01:K0:9zNqa5i2UWo=:6o+4gm1iMFe6KwaEVIg5M0 0AVwzvRjBZ/O2uQh8rVe1JmsZWB3uhVem/JVGbCMjdJ/w9yJwaxU8dcLbMDKLEcJLjQ339koC B4IkSE1eD1NEht52v5WRQK0DpbOfK7xGZ/+LfQbLOiCJ0u+/tp4WFvquJKwfb9F90NuvHAepL aiq7zS6YeUZn7WyPbTnP0uifE3/b0Y6ztqIQ4YVxv4CUsdTfotHRFVEdrVYQFcnZ5ol5OvqN2 xrVGj57zFXR3Ke9W45DK64tv7aKl67pJdV67gXT2e9Ut80LOJE2SqTS6W3ZuEbDIYpHOGBIFf 4Luo6W0/IY4Vi0gtyaNxuTdkmRZckfowHMUUZHpi0OGW2T0M4Styh8yLEM5rXLbFDRyv8zQoh HEGfAzCa0Fbrih7YhjVDBrCAS63M/Z+2bByOJthdG/F3AitmWke6MC2g0TaHRDj3CLvSoz7iJ kLg2AMe2GnCU3piqrbajPZZSbyd6cevd0kSGZN0d9NczU4YHAuKmFHodR1Kj1FJkRn4jeY3dD M/Zf3vsv/SNOukffHnawqaStMyBl5qiaw6HwKDC89SGgSRHpKSyvA1nl99c+dMY1qCgcKatNJ S+Pt71T16ivlgyFSqN8y396uAJnjfObPZKkJjKGTMnVqL6pi45fo1P4k3pmF8hrE+xdb4d71Z lpiod9kVcoc0CEsvBuOJZQ40KB5UDkhKFlcv9VWwBJePR9Nfp/kHx9rCGT8PXJw5YduM45bW4 +XqFvsa5ht6TV9g7sHx88Bgy0cW6b/deNWoQ1w== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) 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: -4.0 (----) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --5htIZ2zOq6bJn0gGbjnU0RwqdlGfpzr4m Content-Type: multipart/mixed; boundary="42S3DzBNamqvHwYifGtsRPahAmXfEPBl9"; protected-headers="v1" From: =?UTF-8?Q?Cl=c3=a9ment_Pit-Claudel?= To: bug-gnu-emacs@gnu.org Message-ID: <80696d4e-c179-f14b-25e4-656a77954ceb@live.com> Subject: window-text-pixel-width includes width of following propertized space --42S3DzBNamqvHwYifGtsRPahAmXfEPBl9 Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: quoted-printable Hi all, I'm trying to measure strings in an Emacs buffer. The current code is yi= elding surprising results: (progn (save-excursion (insert #("s " 1 2 (display (space :width (50)))))) (window-text-pixel-size nil (point) (1+ (point)))) On my machine a single 's' is 8 pixels wide, but this snippet returns 58.= =20 The following snippet, however, returns 8 as expected: (progn (save-excursion (insert "s ")) (window-text-pixel-size nil (point) (1+ (point)))) It seems that adding a display property on the space changes the return v= alue of window-text-pixel-size; is that expected? Thanks, Cl=C3=A9ment. --42S3DzBNamqvHwYifGtsRPahAmXfEPBl9-- --5htIZ2zOq6bJn0gGbjnU0RwqdlGfpzr4m Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJaoGQMAAoJEPqg+cTm90wjLLkQAJCVSKCefYGrm1OZjboRrT+c 3st8HTRRJvdIIVMIL/qU1xTBuynk1YagIbBlN9Mol3Xn8ahsK2J6ZdDzHw83fgws j8AxEpKBw4Gq9vPGCyOD+ITTsTqhCHxXX3oOTlURio/VZ6qdn3pmWpF2TahbYFDM +oWWO8dKIra9UiwZ7ucEAC2cfeDRCYTAlNz1AzCmjI7vfSQEgGsEHoR7wcsFdLhk zciR05AtkdbqIKzKjgLKQOUjPoLqo7swdqcfgoaJ7OW2Ml990tNRbzRJqtUwc/a0 27UK6FrUQeGjRtpdliXKGZyhGjyM91wEiLdnMVraddRqT0uJM9Tyh+FkpqJbF0jw u54VpZCu9H/iY9wyEUxGCCgYqQodGz/KB3xUEo1wo80SdCUZgacBqi/eWkVtWedx mKtXNpJqh5saDStB/5Zh9fcJsYBgjGNOlrhw6SbqlrHAD41eFoT5dHETU3aR35zt efjtv9YrgZjU2hHBskcYzT6HOhNXoSDzCOZgZcCiMZPE249L8E8CeASAICYjV77F zUTOtxxVmjogOVdCaZGVwe1Sa3ux8KfGRO9ZHqzpffsvqG99qVra9mEeHVQ5blpJ MR4RcYvDIJ2VxnG6eeoKMD1wpKtziXKaBtNuekYihH598o3+Sf7lHgPWyeIX58y+ XjQ7Npn/0Ph61LoxmRA2 =uSRy -----END PGP SIGNATURE----- --5htIZ2zOq6bJn0gGbjnU0RwqdlGfpzr4m-- From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 08 08:34:12 2018 Received: (at 30746) by debbugs.gnu.org; 8 Mar 2018 13:34:12 +0000 Received: from localhost ([127.0.0.1]:50343 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1etvgR-0005QI-99 for submit@debbugs.gnu.org; Thu, 08 Mar 2018 08:34:12 -0500 Received: from eggs.gnu.org ([208.118.235.92]:53052) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1etvgP-0005Q3-G6 for 30746@debbugs.gnu.org; Thu, 08 Mar 2018 08:34:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1etvgH-0006sk-Ab for 30746@debbugs.gnu.org; Thu, 08 Mar 2018 08:34:04 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:59247) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1etvgH-0006sg-6E; Thu, 08 Mar 2018 08:34:01 -0500 Received: from [176.228.60.248] (port=3676 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1etvgG-0008On-Ib; Thu, 08 Mar 2018 08:34:00 -0500 Date: Thu, 08 Mar 2018 15:33:55 +0200 Message-Id: <83fu5apu7w.fsf@gnu.org> From: Eli Zaretskii To: =?utf-8?Q?Cl=C3=A9ment?= Pit-Claudel In-reply-to: <80696d4e-c179-f14b-25e4-656a77954ceb@live.com> (message from =?utf-8?Q?Cl=C3=A9ment?= Pit-Claudel on Wed, 7 Mar 2018 17:13:32 -0500) Subject: Re: bug#30746: window-text-pixel-width includes width of following propertized space References: <80696d4e-c179-f14b-25e4-656a77954ceb@live.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 30746 Cc: 30746@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: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: Clément Pit-Claudel > Date: Wed, 7 Mar 2018 17:13:32 -0500 > > (progn > (save-excursion > (insert #("s " 1 2 (display (space :width (50)))))) > (window-text-pixel-size nil (point) (1+ (point)))) > > On my machine a single 's' is 8 pixels wide, but this snippet returns 58. > > The following snippet, however, returns 8 as expected: > > (progn > (save-excursion > (insert "s ")) > (window-text-pixel-size nil (point) (1+ (point)))) > > It seems that adding a display property on the space changes the return value of window-text-pixel-size; is that expected? It's expected given the relatively naïve implementation, which didn't expect such calamities. Hopefully now fixed on the master branch. From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 16 10:09:53 2018 Received: (at 30746) by debbugs.gnu.org; 16 Mar 2018 14:09:53 +0000 Received: from localhost ([127.0.0.1]:36977 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ewq3N-00053A-EA for submit@debbugs.gnu.org; Fri, 16 Mar 2018 10:09:53 -0400 Received: from mout.kundenserver.de ([212.227.126.135]:50111) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ewq3L-00052w-FQ for 30746@debbugs.gnu.org; Fri, 16 Mar 2018 10:09:52 -0400 Received: from [18.26.2.123] ([18.26.2.123]) by mrelayeu.kundenserver.de (mreue005 [212.227.15.168]) with ESMTPSA (Nemesis) id 0MN95A-1ez1ub0m9g-006c2c; Fri, 16 Mar 2018 15:09:45 +0100 Subject: Re: bug#30746: window-text-pixel-width includes width of following propertized space To: Eli Zaretskii References: <80696d4e-c179-f14b-25e4-656a77954ceb@live.com> <83fu5apu7w.fsf@gnu.org> From: =?UTF-8?Q?Cl=c3=a9ment_Pit-Claudel?= Message-ID: Date: Fri, 16 Mar 2018 10:09:40 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <83fu5apu7w.fsf@gnu.org> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Vuz9yLz5XcRe0v6XDvTS1iwy3ZRiYW32m" X-Provags-ID: V03:K0:S0RigWGLLGS4G3WrWVK3oMTDwTlJQ4NlA5AVOhZQDzNcwkIBPUc f10kzV4dBC2O/81zVaXGrL64z2xw6ge9IKTjgfh9SV58h/E5oRWrxeXvhMEvWb7WPstmlzb 0n3dujHpZWxDgnaJPObYzST6fo9o9BlkVvgLonqb7QLooMvUoJYVnIzxSQbItiKxda7Lx+4 I6EdDyyQy3c3B7vyO6Fmw== X-UI-Out-Filterresults: notjunk:1;V01:K0:2RfMiZfu8jA=:k4SirL3uKKyDoTqmVh7DZv 1nPsJ8niGYjaXYDTfHl/cYRqBwe6TFx7TYwOTiYEql7OHUm9VWNGTw3ZsF8K9hDmnlJUegTE0 A66Q75XLO0lEetv8d19DH7xwQIAUJRBDqZc4Z7xOzFyoNU60lIKLv8R519jTWlu/Kys9fPJu6 BZWJyJ/cm9lQoKyBrImI7Q0h8BQ9Jp7yJaJkX449vtg+/ERF7YEedLbVddoV66yOCSErUugQL l1eCKzW7pckPF0WWSHNMjRusRbntxIkPS2Z6zdu1kW7VuZgAPKyxJ4zEKyhYQWl2G6mOXStNr 3u+seThzZS/henpnNj0/SsQ5LRJRVrIa1XigHTyqduJqrr7Qg/5KWmfyAj4F5LhJwbXlgh5CU QZLAPBxDiBNuyzd0w5DHiD8DopvvNCeYnQGq18HCBTnz+pcdW6RoAw1yaDNJx4fYtgko8iTTQ HV6VSCuSdTgoTRxuKv0ye+tPJ17e52x/axcGcA+XMgY255E2GzLFFI4ZBGkmEe5dPIeRT6SI0 Okwal7ngKQzJ1gl2lfy6EbKqY/DyQ7lTJIzeMB353BCPBqE25K2oBQ1tErZ8qx3hzo2Eidfh/ 0Xati7qVYCZbujMQpHUnlAxhR9ySnXh95ubRUkP07NmwUdwdPzL1Egw36H7T2LNJuJCh6EHxC YaLftmNfJ32eA9Fp85w8ag0OBSxuvkO3XF1mUIKSAowAKRK1WVujvJEiVux0iSMMB24rW+Wdm KqxeSFJ0U79475XLXQHt07eTuw1u6+mNtO7Htg== X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 30746 Cc: 30746@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: 1.0 (+) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --Vuz9yLz5XcRe0v6XDvTS1iwy3ZRiYW32m Content-Type: multipart/mixed; boundary="7lkIyYyBj1kbmHcaH4bWgIEb3iYH8fswz"; protected-headers="v1" From: =?UTF-8?Q?Cl=c3=a9ment_Pit-Claudel?= To: Eli Zaretskii Cc: 30746@debbugs.gnu.org Message-ID: Subject: Re: bug#30746: window-text-pixel-width includes width of following propertized space References: <80696d4e-c179-f14b-25e4-656a77954ceb@live.com> <83fu5apu7w.fsf@gnu.org> In-Reply-To: <83fu5apu7w.fsf@gnu.org> --7lkIyYyBj1kbmHcaH4bWgIEb3iYH8fswz Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: quoted-printable On 2018-03-08 08:33, Eli Zaretskii wrote: >> From: Cl=C3=A9ment Pit-Claudel >> Date: Wed, 7 Mar 2018 17:13:32 -0500 >> >> (progn >> (save-excursion >> (insert #("s " 1 2 (display (space :width (50)))))) >> (window-text-pixel-size nil (point) (1+ (point)))) >> >> On my machine a single 's' is 8 pixels wide, but this snippet returns = 58. =20 >> >> The following snippet, however, returns 8 as expected: >> >> (progn >> (save-excursion >> (insert "s ")) >> (window-text-pixel-size nil (point) (1+ (point)))) >> >> It seems that adding a display property on the space changes the retur= n value of window-text-pixel-size; is that expected? >=20 > It's expected given the relatively na=C3=AFve implementation, which did= n't > expect such calamities. Hopefully now fixed on the master branch. Thanks a lot; the width is indeed fixed. However, the fix seems to have = broken the height calculation: the first snippet above now returns (8 . 0= ), whereas the second one returns (8 . 16). Cheers, Cl=C3=A9ment. --7lkIyYyBj1kbmHcaH4bWgIEb3iYH8fswz-- --Vuz9yLz5XcRe0v6XDvTS1iwy3ZRiYW32m Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJaq9AlAAoJEPqg+cTm90wjsPQP/jZh0m2AAu23BFYdP0sHNylS Wahmh4Eftoo9Pl1lk3uA7k7ZNXATyhStxMi8t8ILpZ0M5o2YNgX1scgcQ/bDmQu3 0zysmd8XgDRghDvYTCJsfOHd2YL1tedeaNaAPV/O+PYt9QJR7q1NaIHc+mQ34Am2 BTq8qt8kTYNd+TDvroHOI1Y8F0f3EvN0+efKN+mnAluypNq0Qlab1mQuQgRCaOCe jlfWnPSLzdItOKzlUjRPA7fS5YiISPsyeJuBrpcW2JlcoSMIr9eKuUhxUuOGFaon cmaW8/xZkbrhyh+kHzQvwaC7z/pDVJ7EJIk1zR9YJ2g1aNe+vfKoAHeRE09pfRD1 91n3Y9nvxGupc4sPy1Y6fvmUXvHOm6H8vRGsx7PR9loPbjzcF+Qm/+MbkzuuYNrW mfCeenwnWuaTfW82tRLJd2oeJHGBtEVdlL+7rwFBw/8jHzQ4MG8N/zfPRnlX2mPr K5f5e9JTx6K/1QA6DKW/fbOckA7AfWaPOkZnqFg8UcuObrAt9odzIi9oiS5sU6S3 KP6dEElMynaawyP1M9Ov7fTDZrFZbjxmSi6dcqXEMWrSTB1QvxuEWC0h4W+03IHf KZz+/qT+O67pqbN2q7tT5eDQV4tGmLMlrurdUfUU3OeEEG6zdBaTOo6DO43FtLpC eWzDnXZ0DcNlWPfx03px =zJ9H -----END PGP SIGNATURE----- --Vuz9yLz5XcRe0v6XDvTS1iwy3ZRiYW32m-- From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 16 12:13:12 2018 Received: (at 30746) by debbugs.gnu.org; 16 Mar 2018 16:13:12 +0000 Received: from localhost ([127.0.0.1]:37184 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ewryh-0001eZ-0P for submit@debbugs.gnu.org; Fri, 16 Mar 2018 12:13:12 -0400 Received: from eggs.gnu.org ([208.118.235.92]:53474) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ewrye-0001eL-J4 for 30746@debbugs.gnu.org; Fri, 16 Mar 2018 12:13:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ewryV-00085K-Ez for 30746@debbugs.gnu.org; Fri, 16 Mar 2018 12:13:03 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57247) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ewryV-00085C-Bd; Fri, 16 Mar 2018 12:12:59 -0400 Received: from [176.228.60.248] (port=1056 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ewryU-0000aC-Np; Fri, 16 Mar 2018 12:12:59 -0400 Date: Fri, 16 Mar 2018 18:13:00 +0200 Message-Id: <83po44ov77.fsf@gnu.org> From: Eli Zaretskii To: =?utf-8?Q?Cl=C3=A9ment?= Pit-Claudel In-reply-to: (message from =?utf-8?Q?Cl=C3=A9ment?= Pit-Claudel on Fri, 16 Mar 2018 10:09:40 -0400) Subject: Re: bug#30746: window-text-pixel-width includes width of following propertized space References: <80696d4e-c179-f14b-25e4-656a77954ceb@live.com> <83fu5apu7w.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 30746 Cc: 30746@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: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Cc: 30746@debbugs.gnu.org > From: Clément Pit-Claudel > Date: Fri, 16 Mar 2018 10:09:40 -0400 > > Thanks a lot; the width is indeed fixed. However, the fix seems to have broken the height calculation: the first snippet above now returns (8 . 0), whereas the second one returns (8 . 16). Fixed. From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 16 16:49:57 2018 Received: (at 30746) by debbugs.gnu.org; 16 Mar 2018 20:49:57 +0000 Received: from localhost ([127.0.0.1]:37333 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ewwIX-0001qg-DW for submit@debbugs.gnu.org; Fri, 16 Mar 2018 16:49:57 -0400 Received: from mout.kundenserver.de ([212.227.126.135]:44625) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ewwIU-0001qR-AU for 30746@debbugs.gnu.org; Fri, 16 Mar 2018 16:49:56 -0400 Received: from [18.26.2.123] ([18.26.2.123]) by mrelayeu.kundenserver.de (mreue001 [212.227.15.168]) with ESMTPSA (Nemesis) id 0MZsqM-1fBqVx3K4U-00LWYa; Fri, 16 Mar 2018 21:49:47 +0100 Subject: Re: bug#30746: window-text-pixel-width includes width of following propertized space To: Eli Zaretskii References: <80696d4e-c179-f14b-25e4-656a77954ceb@live.com> <83fu5apu7w.fsf@gnu.org> <83po44ov77.fsf@gnu.org> From: =?UTF-8?Q?Cl=c3=a9ment_Pit-Claudel?= Message-ID: Date: Fri, 16 Mar 2018 16:49:43 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <83po44ov77.fsf@gnu.org> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="PS0y4VaPua2VOBtDbwkar2OZNeufVlOjR" X-Provags-ID: V03:K0:ZCRyKjZbEjyxuq4O7WVbhpB1/cNHPT6AQZYEzyZd2uN3YEIF1bG TCcEKjfTe6HLKhPgIs3gTCxiTJN2+CRJ8YLif5oDqavgz++YjMHzWGBY2JiYHt3GdoQHxSJ Xpg1mqOUJ3hwgUE9HP9tkYp5/5EQRRF1WdRFVqikBcGCFCoS1WeCsOTTCU4a1lMQCh5Mb/9 BWJbtKliS7HG2rNbMNDHg== X-UI-Out-Filterresults: notjunk:1;V01:K0:yFxOSZ0asks=:ceMPt92ONYwNolWRb8lXYV WFRYBkgEzHOmkEoaxxdCVgrwXD6McFPqHWTQinFH7rY2hnQU3F3TR1Ia77uKLeeUHaGMCVv1l kA9enKAC31IFIpViSWKkk9dVKJGLQrlKHBGiAWv4E6T3DDIxXIrfiXk0zNmR7JsNjvOHq2FEr aSnuOVrsiCTadWfVE+YDgBNYPgSldAJj2/JNLfb5HBpizH1rNtM0Edu/AJISW9mrmzkCM1w5t F1Dt9sH5AhzeN4E+bKg24uTTyRGqCHMcocOitakdRZD8wIJA2xKSAYCeNZRZTIM7geKHmtpji WomtO+jRJuj1FhC6ch6EwqVgE4lzXdX82W75j3KzSJPHrt6JWMRthHxKgBQugonNDUJpcLbSY iJ7geMcTsZCjGuENUoNvGYAFDPFko3nhnaphYeyXSmKOzCyPaY6xu4uqkm8+K5AtKy/igfoJ6 Jivd5anVM+j81ef5oZtikyBEUhlemYjqmjlpTwKj0tJOcijuiGfLXC1VkgjBlaK6QhJ3hyOZL /LC4xkq3SUbGoe3sSNUkYPFb0wgd3uh0r3Chkl6LeDj5QHroSPZyess4esVpw/wiq+8B7A0Sz L5Dtd9WsGusISFL4Tlw5mwxQlZuEvOXL7NWAydSOuEVqASh9j8A7BA6erG0TSuWsJbdNQTOlf q7I6SDQkXDiFmS0N+hZNGzR6oa1Bnv/GVUWTLXl66c3/RwMJhQJmi4rxZ59DvYHZJI95HtFUQ tV5eP36OmdkV3DL1pJE0B8ecmtIRInp+lj6nfg== X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 30746 Cc: 30746@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: 1.0 (+) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --PS0y4VaPua2VOBtDbwkar2OZNeufVlOjR Content-Type: multipart/mixed; boundary="iPfCoMNU8EpAT891dDeN1wRHgKgHnraOk"; protected-headers="v1" From: =?UTF-8?Q?Cl=c3=a9ment_Pit-Claudel?= To: Eli Zaretskii Cc: 30746@debbugs.gnu.org Message-ID: Subject: Re: bug#30746: window-text-pixel-width includes width of following propertized space References: <80696d4e-c179-f14b-25e4-656a77954ceb@live.com> <83fu5apu7w.fsf@gnu.org> <83po44ov77.fsf@gnu.org> In-Reply-To: <83po44ov77.fsf@gnu.org> --iPfCoMNU8EpAT891dDeN1wRHgKgHnraOk Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: quoted-printable On 2018-03-16 12:13, Eli Zaretskii wrote: >> Cc: 30746@debbugs.gnu.org >> From: Cl=C3=A9ment Pit-Claudel >> Date: Fri, 16 Mar 2018 10:09:40 -0400 >> >> Thanks a lot; the width is indeed fixed. However, the fix seems to ha= ve broken the height calculation: the first snippet above now returns (8 = =2E 0), whereas the second one returns (8 . 16). >=20 > Fixed. Works perfectly. Thanks a lot. --iPfCoMNU8EpAT891dDeN1wRHgKgHnraOk-- --PS0y4VaPua2VOBtDbwkar2OZNeufVlOjR Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJarC3nAAoJEPqg+cTm90wjwxsQAJtBFTpYdv2PKBtVmGHMoVs5 KvjNBjixDLAQh2er9HhoH+bowtAJIDSIXfrRmFmd1BSdoOWjnPWexPuEMLfRQXgu FuHbtzi2WfRCFacgEkcZwafZmCxC7imaJDoEfQcQdzvOoDE6L6NfEvJ0kBq7yDOw TzEXz9I4rIvGZHOCvHO1Lw5Wry3UDcHeoD+42kKzXZ2GpeoZmOugYJvOPSz02c2i DfEF5ucxCfmLd+p72iwJK1Ryrk/rzvguzD9Xv+kU9s3C63aB0vq7Pe/6UTSIRhi2 Z0bHGpGJw/BzOLOqx/jlSxkazCqzvcGAvC9p84RUD1klmtV/JyzWfCdOunauF6fF RLuTcrY1PdkA2reljLcb+gwpauwCrSk2AgJG5lRncCb3ui4PaPHJQrD6vlqJdua6 NJ+S3rXNFn3P9u1FuSCliZ47uvJFA8kdQLaEtVytB9YGjqgPsFvQ6FkASqeIatm+ n7prx50OHPgYktCNbOsdNJarDT8ZpL/nxArojALWsM/R0LQ1Ot00Mjh5UM4zOFCh 4U452Nj2rbN9AGMtdo+EXQifqvCYlMZKNXu3ley6F714uk0fU5CYSIqi+dGJVst3 onr6lisA4YUgFdqy/vokXzZcAyJmuomi9KUMNDl2KBwE3qfcy0io0toGdjRHMhy7 Wy9xYkITU+H4IQ4evRfj =Ux8Q -----END PGP SIGNATURE----- --PS0y4VaPua2VOBtDbwkar2OZNeufVlOjR-- From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 28 17:51:27 2019 Received: (at 30746) by debbugs.gnu.org; 28 Sep 2019 21:51:27 +0000 Received: from localhost ([127.0.0.1]:51417 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iEKch-0005Do-2I for submit@debbugs.gnu.org; Sat, 28 Sep 2019 17:51:27 -0400 Received: from mail-pl1-f171.google.com ([209.85.214.171]:33489) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iEKca-0005DN-UE for 30746@debbugs.gnu.org; Sat, 28 Sep 2019 17:51:21 -0400 Received: by mail-pl1-f171.google.com with SMTP id d22so2406459pls.0 for <30746@debbugs.gnu.org>; Sat, 28 Sep 2019 14:51:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc :content-transfer-encoding; bh=kJJLJOQt12eFnMIzsk5mVK60usP5KIzwYpW/CDcVe9I=; b=kFKXDagnO7nflALC81NQkyBMk1dSQUZLcrojnjUAdHjwUU23r5Fp5p7neuDwhuK8RF 1cVL7tpE818f3Hb7W/LOrJA96VgTrP6hjRIfH1aQG/uI+aXrKm+/qxtQ10Nh3wbVC/l8 dQRCP1arEOB5QjeEMArQa1IMyHyfeUuqc0WukHj7MLnM7BzGFGon8h+3NdC8bMgIDVsl IQrFJmPuwpLHW0N/T+odxv3mWVNjLEh/ZvduEH92K8oNm+MYlJpBep2VWfeOhq60tmIP cM/Vng5b/EKYq+V2gs6Az6AU70iC/B019Aao+sHdVNgd++xgcr6X58l1SxPmUDVIkvQo SY7Q== X-Gm-Message-State: APjAAAVLXZxQpX6ggFYmuUE7eKllNFczHAyJwdLmL25W/TNcPs/gXeyH F+PlW/mPJceCatMdJqwa78BAZ3wVxazjOrcZqJQ= X-Google-Smtp-Source: APXvYqxup67/svJifDIII+VOal5GTb7U98nndo16Ohk9NhY7uJwRKIJMSpefaCtjje8RDE6mUXafbUg7H6Q/nnbicIg= X-Received: by 2002:a17:902:326:: with SMTP id 35mr12795109pld.128.1569707475206; Sat, 28 Sep 2019 14:51:15 -0700 (PDT) MIME-Version: 1.0 From: Stefan Kangas Date: Sat, 28 Sep 2019 23:51:04 +0200 Message-ID: Subject: Re: bug#30746: window-text-pixel-width includes width of following propertized space To: =?UTF-8?Q?Cl=C3=A9ment_Pit=2DClaudel?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.4 (/) X-Debbugs-Envelope-To: 30746 Cc: 30746@debbugs.gnu.org, Eli Zaretskii 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: -0.6 (/) fixed 30746 26.1 close 30746 quit Cl=C3=A9ment Pit-Claudel writes: > On 2018-03-16 12:13, Eli Zaretskii wrote: >>> Cc: 30746@debbugs.gnu.org >>> From: Cl=C3=A9ment Pit-Claudel >>> Date: Fri, 16 Mar 2018 10:09:40 -0400 >>> >>> Thanks a lot; the width is indeed fixed. However, the fix seems to hav= e broken the height calculation: the first snippet above now returns (8 . 0= ), whereas the second one returns (8 . 16). >> >> Fixed. > > Works perfectly. Thanks a lot. This was fixed by: commit c4db7662bb4740f069e494cfe632c76a0d21d6d7 Author: Eli Zaretskii Date: Fri Mar 16 18:11:07 2018 +0200 Another followup to fixing 'window-text-pixel-width' * src/xdisp.c (Fwindow_text_pixel_size): Adjust the return value when we stop one buffer position short of TO. (Bug#30746) And: commit f1f12d8be3ddc5aa0a79658f5b339c78742321fa Author: Eli Zaretskii Date: Thu Mar 8 15:32:23 2018 +0200 Fix 'window-text-pixel-size' when display properties are around * src/xdisp.c (Fwindow_text_pixel_size): Correct the result when there's a display property at the TO position, and the call to move_it_to overshoots. (Bug#30746) I'm therefore closing this bug report. Best regards, Stefan Kangas From unknown Sat Jun 14 19:21:45 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 27 Oct 2019 11:24:10 +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