From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel Newsgroups: gmane.emacs.bugs Subject: bug#23254: 25.0.90; substitute-command-keys does not preserve text properties Date: Sat, 9 Apr 2016 14:58:29 -0400 Message-ID: <570950D5.70908@live.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="d0wdu9eqpQI2FeHEeNGf88afJFduwblVO" X-Trace: ger.gmane.org 1460228354 19678 80.91.229.3 (9 Apr 2016 18:59:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 9 Apr 2016 18:59:14 +0000 (UTC) To: 23254@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Apr 09 20:59:14 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aoy6D-0005E2-9I for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Apr 2016 20:59:13 +0200 Original-Received: from localhost ([::1]:32791 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aoy69-0004rw-Ib for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Apr 2016 14:59:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47561) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aoy65-0004pW-Ja for bug-gnu-emacs@gnu.org; Sat, 09 Apr 2016 14:59:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aoy62-0002US-Dr for bug-gnu-emacs@gnu.org; Sat, 09 Apr 2016 14:59:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:44020) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aoy62-0002UN-Ac for bug-gnu-emacs@gnu.org; Sat, 09 Apr 2016 14:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1aoy62-00052S-5Y for bug-gnu-emacs@gnu.org; Sat, 09 Apr 2016 14:59: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: Sat, 09 Apr 2016 18:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 23254 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.146022832919347 (code B ref -1); Sat, 09 Apr 2016 18:59:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 9 Apr 2016 18:58:49 +0000 Original-Received: from localhost ([127.0.0.1]:56357 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aoy5o-00051z-Rw for submit@debbugs.gnu.org; Sat, 09 Apr 2016 14:58:49 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56552) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aoy5m-00051l-GD for submit@debbugs.gnu.org; Sat, 09 Apr 2016 14:58:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aoy5g-0002TN-BY for submit@debbugs.gnu.org; Sat, 09 Apr 2016 14:58:41 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:51819) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aoy5g-0002TD-8i for submit@debbugs.gnu.org; Sat, 09 Apr 2016 14:58:40 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47520) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aoy5f-0004Iw-0p for bug-gnu-emacs@gnu.org; Sat, 09 Apr 2016 14:58:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aoy5b-0002SR-Qs for bug-gnu-emacs@gnu.org; Sat, 09 Apr 2016 14:58:38 -0400 Original-Received: from mout.kundenserver.de ([212.227.17.10]:62543) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aoy5b-0002SL-Hd for bug-gnu-emacs@gnu.org; Sat, 09 Apr 2016 14:58:35 -0400 Original-Received: from [18.189.83.142] ([18.189.83.142]) by mrelayeu.kundenserver.de (mreue104) with ESMTPSA (Nemesis) id 0LmL6w-1bOr4V0Zve-00ZuTs for ; Sat, 09 Apr 2016 20:58:33 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 X-Provags-ID: V03:K0:QNoVLY0lfycyuuIy61ZbKiTnMIdKZ7/Ztk4jWPOLvkU78WzyKHe 4dHpyOFfFHtxb7N9yQFZST7OPU/dQJRQa7YWGZ7NZ1gXXRaFtf+TRVkk+ub0VL3CB4WuqE5 hn+Wzyqlphnb1RR4qCc5uCZdwCCnxOAcTHG1mAVvy9dRVqaozkoohtuNViLFlNOn6qcSUgH DfHS+PurQaXkbV/wH8Lgw== X-UI-Out-Filterresults: notjunk:1;V01:K0:JftA8wTGq8E=:07wvmd3PPid4Kdxd5MTTN1 tWt3FDPIrcuaULHaredngg29J/BZIOkBRPUV2lEGTnR/ZqpEgNv07QRPEH7qSL7eMtGdXx8ML UA7684j+zOnx7tTGhaXKZHHT9Rz7aFJ+j54kHcZl7DYhpByWlv0lmadvPRdq0xA1x06STBXof iWOEl+p7agwj4UZSw8hzOGXClsFIKnvKS1w4nC6KQ+mUn5s/aownj7s7elZpFO3L469QPvBK9 d4H+9eM/KRfSu8x049s2S9LRzEIPPW8ZJn6a1QH/FbaSKG/NqrCiybZflcHzu6CnTjGN4AhC4 RbMlb60n9DP06OiXCDUwiQPVkl5Ofbt/BLCSntDwf9x+A5uqcTjC8N7ozOW6mTuTWk8qFuWKT Dy7ZwpCOrIe8JYsDYmdnH4+xk91sPiv3ImM/lJTF4w6rZQdeZQAFteBDFbfdn5zADzW8A5Wm9 GqHzezdkkZ1lW50PnJ2ICYV9TJxxbLnxFWdqXkYlCM9DkU8oMbE4e45Z3WUXp+lJgK7ScLFzz f07qAcoxBRTmqOqwYJ7FcCCLIuR5nehuPEGaWrFR9dB/5qe8vxdYWNFl7F+5ZJX6aCZiGS5O2 40gfQ1MoHJlBKw2yDMjIcsVfP33DHIQxHuWaigNWe69KrrdYTVNgAfM+vKFzgy5r4CrbTQJ/K tlDSWwXD8KTh7UOU22qX+D0dkJveXCpNRLHJ3Ue2hm5i0syZpyFpk9i/phgCppFTKylU= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:116285 Archived-At: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --d0wdu9eqpQI2FeHEeNGf88afJFduwblVO Content-Type: multipart/mixed; boundary="M6vpRMXDOsvjpSipiFtiaxFG3jCvPhwTS" From: =?UTF-8?Q?Cl=c3=a9ment_Pit--Claudel?= To: bug-gnu-emacs@gnu.org Message-ID: <570950D5.70908@live.com> Subject: 25.0.90; substitute-command-keys does not preserve text properties --M6vpRMXDOsvjpSipiFtiaxFG3jCvPhwTS Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable In Emacs 25, substitute-command-keys removes text properties of strings c= ontaining quotes: > In Emacs 25: (substitute-command-keys (propertize "`a'" 'prop 'val)) "=E2=80=98a=E2=80=99" > In Emacs 24.5: (substitute-command-keys (propertize "`a'" 'prop 'val)) #("`a'" 0 3 (prop val)) As Eli pointed out on the mailing list, > Anything that is substituted has its test properties removed: >=20 > (substitute-command-keys (propertize "\\[forward-char]" 'prop 'val)) > =3D> "C-f" >=20 > The above is from Emacs 24.5. >=20 > I think patches are welcome to reinstate the properties. This is an issue in particular for docstrings: (defcustom my/pretty/set/option nil "Demo text properties in customize." :group 'emacs :type `(set (const :tag ,(concat (propertize "Title of option 1 (bold o= n both 24.5 and 25)" 'face '(:weight bold)) "\n " (propertize "Docs of option 1, in a sm= aller font on both 24.5 and 25." 'face '(:height 0.9)))) (const :tag ,(concat (propertize "Title of option 2 (`bold'= on 24.5 but not 25)" 'face '(:weight bold)) "\n " (propertize "Docs of option 2, in a sm= aller font on 24.5, but not 25." 'face '(:height 0.9)))))) This example uses text properties on `:tag's to make the customize buffer= more readable. This works fine in GNU Emacs 24.5, but it stopped working= on master (and emacs-25), because of substitute-command-keys replacing q= uotes and as a side effect dropping text properties. Cl=C3=A9ment. --M6vpRMXDOsvjpSipiFtiaxFG3jCvPhwTS-- --d0wdu9eqpQI2FeHEeNGf88afJFduwblVO 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.0.22 (GNU/Linux) iQIcBAEBAgAGBQJXCVDWAAoJEPqg+cTm90wjHQsQALGxkHPcnYpAHtzvg0LQLfCu IsczkGbgMrF/UWKlie1fzyjTwQwvZYZ7WleYD2xP+DG3IIJu0u3qkIhLLlllBUzA Z2eBsWA9CzTAM+oq5ugaZYau6tkKAStttiEnI9OdtNSuIbeC9tZ1kr0kpIAdRIQk 5sCrQ4l1XxOeQ5Utyaz017LN6A4jz5HWqZhnzOsIAgmiOcNOOAPzpbITPoY8foUC phSOzOi9ZjeLkZYZMneG8gggZ14mPUVkX7+cJ6CAMwMVf7sk9ptWDDflCPfMWFFE tfLQvG6I94xsvQ+pLD/3k5CdIk5SzHa6cWnLbFVqD9uf2rpo+40oO2kqZeqiwyUZ nZ9dkKL1JQP5F+Hbav+4ySqGAq7ZlfrxrVgA0xs67dM+yC5dXOQ+LpTeMEP5amC+ IXxeBPA5wRHuZuMY70gPlrAaPFLeBiTHrTDaiUIZMDgDpDSWEC6N4rmkNym+6zJZ oKvSTwgblOARfeWnu9fjSKoqwp17zECQaSa5QWecYhbAqL5TCbv5Kd3SYt5KgNzu r8NWHz7G4ATOqwGQWv1/n0/qMsW2MI7ZhnLvr1Ivpp6evZzrDpWMV8FNdwCnAeL3 atS6aP16/brRedXM0hFfLIzWWfp1qbBQ0oUyfqWVfoloHlK1eOBDBkeh82S5SoIu eP/fJbZuus/GcyJBZQpt =4Vcp -----END PGP SIGNATURE----- --d0wdu9eqpQI2FeHEeNGf88afJFduwblVO--