From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel Newsgroups: gmane.emacs.bugs Subject: bug#28595: In mode-line-format, `:propertize' drops some existing text properties Date: Sun, 24 Sep 2017 15:03:02 +0200 Message-ID: <5fc2a28b-84e2-ad99-b0ea-47829ecceb11@live.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="KN0n2TIDAe5ikU1gwKiD5v0dcXf4diAX5" X-Trace: blaine.gmane.org 1506343705 21851 195.159.176.226 (25 Sep 2017 12:48:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 25 Sep 2017 12:48:25 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 To: 28595@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 25 14:48:18 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dwSo3-0004et-J4 for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 Sep 2017 14:48:15 +0200 Original-Received: from localhost ([::1]:42305 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dwSo5-0004EA-QD for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 Sep 2017 08:48:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51579) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dwSnu-0004Bu-FY for bug-gnu-emacs@gnu.org; Mon, 25 Sep 2017 08:48:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dwSnq-0006h3-J9 for bug-gnu-emacs@gnu.org; Mon, 25 Sep 2017 08:48:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48770) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dwSnq-0006gy-FJ for bug-gnu-emacs@gnu.org; Mon, 25 Sep 2017 08:48:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dwSnq-0002YY-98 for bug-gnu-emacs@gnu.org; Mon, 25 Sep 2017 08:48:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 25 Sep 2017 12:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 28595 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15063436389771 (code B ref -1); Mon, 25 Sep 2017 12:48:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 25 Sep 2017 12:47:18 +0000 Original-Received: from localhost ([127.0.0.1]:57450 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dwSn7-0002XV-BG for submit@debbugs.gnu.org; Mon, 25 Sep 2017 08:47:18 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:60285) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dwSn5-0002XE-Az for submit@debbugs.gnu.org; Mon, 25 Sep 2017 08:47:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dwSmv-0006Mu-UK for submit@debbugs.gnu.org; Mon, 25 Sep 2017 08:47:09 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:46534) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dwSmv-0006Mp-QX for submit@debbugs.gnu.org; Mon, 25 Sep 2017 08:47:05 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51201) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dwSmp-0003iA-Vg for bug-gnu-emacs@gnu.org; Mon, 25 Sep 2017 08:47:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dwSmm-0006K7-3R for bug-gnu-emacs@gnu.org; Mon, 25 Sep 2017 08:47:00 -0400 Original-Received: from mout.kundenserver.de ([217.72.192.74]:60425) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dwSml-0006IL-PB for bug-gnu-emacs@gnu.org; Mon, 25 Sep 2017 08:46:56 -0400 Original-Received: from [128.93.70.6] ([128.93.70.6]) by mrelayeu.kundenserver.de (mreue103 [212.227.15.184]) with ESMTPSA (Nemesis) id 0MMpSB-1e0Z740w51-008dCJ for ; Mon, 25 Sep 2017 14:46:53 +0200 X-Provags-ID: V03:K0:vCrPBoxV1VuRqk+HMhcND2JI6vB0wON25j/HDdvt1yaTqv4DoLp h/HskfHPGeiAFaKxkgDjijXRvy0aTtj5/HI/RQHgK90NRXYJ29jO57i/9xpVOlOtm3OmBfC eGd6XwA8pj2dMlwKuapTeu/wHp4WPFoC4KTva8mYa5XpbSkFrQxYiF0w2+Ttzhxj7kqPpdT Qb0PAkX2G9ywf3pKKwzIQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:YK0kZ1Opq5o=:KLFoqkFgFSKg1kZkmHAZP5 LaD3NgEScPxKDNH39TPat7URVx5Is/EAMq8dPmYDHxPizzW/HbFKkEW8onyqvpse/ixGdcP+9 Cp/BGXlTpwZn7nzirlP3BeizqzJgy5Da1bjsNBxaFg9EL8XkjQkZs3r5DDrNX+sKqcEhVytZR Q6jI/3F0nQjxUTdLTrwAOgx3rpM00h0Dc0xzTao/51XCg+/HyNb0+eSGP5ooKYh7trvOoPEA4 ulbHgf8PU+IQfBVm0qZaVCr1j953SPOqq0owy245RoMywWMxSNbRZlAgtVXNypIvTp3BTlJ3o 4eLEp2Dog1KFTvXXdI/Cm3E44yijU3c+EEeU7aVn5HPvgCqKFi57shZ2RaiR61u0+VGGA74y2 C05rNRDalWpLTQl8ZP63LVHvIm8wjV8sTmu2UkC+5c9TjHkq9qPxGRcw9XcTN+7aode5/9bSD GxjqsRnpyGMwlmsXzyuvjrqMcIg7+4BihGXi9hm9NtOie0ZAoyqax6fl55VI+PwRAI5Yx2lJJ mGboWk5KBvF0C34oKNZE8qjY9AP1VGMPyiv8yQG+c4bZ0YLacylrFUSUN9SfYcynr4do0OHlr 3/O4nRtS4GCRT24ymmBALO4iHqn9jdoXE+cADSCJ9O9siAN2BuoyBd3e1Bv5CZnrcn/ya0Hdj u1QtLeSi++Ykbbx+gAxE0F0yDQaghf2jkBFzX+2okVKX2rD+OjV78fpBwOQ/sK3wlImJf5QB5 x6ckeQlQXDqXdhhWg+IP5WHYx50028+Bli3gPg== 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:137394 Archived-At: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --KN0n2TIDAe5ikU1gwKiD5v0dcXf4diAX5 Content-Type: multipart/mixed; boundary="SvcpB3i5TH78OGwBUX8kfiOTO4e51frhO"; protected-headers="v1" From: =?UTF-8?Q?Cl=c3=a9ment_Pit--Claudel?= To: bug-gnu-emacs@gnu.org Message-ID: <5fc2a28b-84e2-ad99-b0ea-47829ecceb11@live.com> Subject: In mode-line-format, `:propertize' drops some existing text properties --SvcpB3i5TH78OGwBUX8kfiOTO4e51frhO Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: quoted-printable Hi all, Based on the docs, the three following forms should yield the same result= s: (format-mode-line `(:propertize #("AB" 1 2 (x 0)) y 0)) (format-mode-line `(:propertize ("A" #("B" 0 1 (x 0))) y 0)) (format-mode-line '(:propertize ("A" (:propertize "B" x 0)) y 0)) But they don't: (format-mode-line `(:propertize #("AB" 1 2 (x 0)) y 0)) =3D> #("AB" 0 2 (y 0)) ;; x 0 is dropped (format-mode-line '(:propertize ("A" (:propertize "B" x 0)) y 0)) =E2=87=92 #("AB" 0 1 (y 0) 1 2 (x 0)) ;; y 0 is dropped on 1..2 (format-mode-line `(:propertize ("A" #("B" 0 1 (x 0))) y 0)) =E2=87=92 #("AB" 0 1 (y 0) 1 2 (y 0 x 0)) ;; Seems right Am I misreading the docs? Cl=C3=A9ment. --SvcpB3i5TH78OGwBUX8kfiOTO4e51frhO-- --KN0n2TIDAe5ikU1gwKiD5v0dcXf4diAX5 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 iQIcBAEBCAAGBQJZx60HAAoJEPqg+cTm90wj5F4P/RfwFHICL88YZBWnwhyLWTB8 lyEMKPiNTIMK/lh6PcDPJ4K6vplI6YYrjuaiUIB4QRg0b+LQg73y4oWmENVmvJGa YZ3sppajiTVeye2glKqp6fntG6NsHkCWECVNnkmFHPaWoizt8fbn+nhwmsqCQyPO z0VNjT0vUOKQhuVA+43jZuR4VE35ipVmzTbQDi4ErGOrdd/5viZIPrK7OdgsEK7B gbYtkkykergEftqYTM98PPJb1kQDHMEt/jVGjVh4AZiuLfa9B0Xu7D4H6QJoyovM hDGV9h0zkW30+KlT7nYvDg0bMwO6TuLZz2NcscxadMJFuLrcZXabRjpxztv/jA6t mQ0Myw42OOJ/uWEIXBVZ8nQ/w8lNX5gJcN9E5gO2M0hbs4LARyNNhlaJCiLdYU10 5EnE2JcbRN4bDSNY/obsaFewXvfP8j7AEFvyqs931ndDmvgpMq5hdueq/wnB/r/j HrY3qBbA+3a/1VMjDQLkoqO5nSeLyyossNXBfIz7VIDsAxuOsBACewxHueDbMxmm /HxiEQ6VDSymXIoVmpPvVkJfI6W7qBPGd+OIAaZ9rCH2uFrf2w0F9CswluAZ3Agh i32qiQ7c/0qGb5ArQn8M54ptvMpLgzjZcyI1dnJ4ypLepZPeU8fS9pPjx3y7RmMF TIKoLQ5xxjg49I6+f7uW =dZuW -----END PGP SIGNATURE----- --KN0n2TIDAe5ikU1gwKiD5v0dcXf4diAX5--