From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#17052: substitute-command-keys strips text properties Date: Wed, 14 Aug 2019 21:34:47 -0400 Message-ID: <1xh86jb494.fsf@fencepost.gnu.org> References: <871rxns0vz.fsf@mouse.gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="171111"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) Cc: Juanma Barranquero , 17052@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 15 03:35:16 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hy4fb-000iO3-Go for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Aug 2019 03:35:15 +0200 Original-Received: from localhost ([::1]:37072 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hy4fa-0007Jd-Fe for geb-bug-gnu-emacs@m.gmane.org; Wed, 14 Aug 2019 21:35:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42156) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hy4fR-0007JP-4p for bug-gnu-emacs@gnu.org; Wed, 14 Aug 2019 21:35:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hy4fP-0008IH-RU for bug-gnu-emacs@gnu.org; Wed, 14 Aug 2019 21:35:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41231) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hy4fO-0008HU-KH for bug-gnu-emacs@gnu.org; Wed, 14 Aug 2019 21:35:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hy4fO-0006tv-Gk for bug-gnu-emacs@gnu.org; Wed, 14 Aug 2019 21:35:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Aug 2019 01:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17052 X-GNU-PR-Package: emacs Original-Received: via spool by 17052-submit@debbugs.gnu.org id=B17052.156583290126517 (code B ref 17052); Thu, 15 Aug 2019 01:35:02 +0000 Original-Received: (at 17052) by debbugs.gnu.org; 15 Aug 2019 01:35:01 +0000 Original-Received: from localhost ([127.0.0.1]:50052 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hy4fN-0006td-0c for submit@debbugs.gnu.org; Wed, 14 Aug 2019 21:35:01 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:58033) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hy4fK-0006tO-Rv for 17052@debbugs.gnu.org; Wed, 14 Aug 2019 21:34:59 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:38464) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hy4fE-000892-CB; Wed, 14 Aug 2019 21:34:53 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1hy4f9-0001dD-HS; Wed, 14 Aug 2019 21:34:47 -0400 X-Spook: IRA [Hello to all my friends and fans in domestic X-Ran: aoa[]U4WLBdv+)|dvt?.: X-Hue: blue X-Attribution: GM In-Reply-To: <871rxns0vz.fsf@mouse.gnus.org> (Lars Ingebrigtsen's message of "Wed, 14 Aug 2019 17:55:28 -0700") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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: 209.51.188.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:165008 Archived-At: Lars Ingebrigtsen wrote: > Looks like this has been fixed sometime in the intervening years? > > (substitute-command-keys (propertize "foo" 'face 'bold)) > => #("foo" 0 3 (face bold)) Nope, you need to use an example which does a substitution, eg (substitute-command-keys (propertize "foo \\[find-file]" 'face 'bold)) The doc of substitute-command-keys used to mention this, but it was somewhat prematurely removed in 049fac7.