From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Escaping a string for substitute-command-keys Date: Fri, 04 Oct 2019 15:19:51 -0400 Message-ID: References: <14423aa7-36c3-9ab7-6483-d43624f99e17@gmail.com> <83pnjd7pud.fsf@gnu.org> <83h84p7nih.fsf@gnu.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="69126"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Eli Zaretskii , emacs-devel@gnu.org To: =?windows-1252?Q?Cl=E9ment?= Pit-Claudel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 04 21:20:13 2019 Return-path: Envelope-to: ged-emacs-devel@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 1iGT7b-000Hp7-GI for ged-emacs-devel@m.gmane.org; Fri, 04 Oct 2019 21:20:11 +0200 Original-Received: from localhost ([::1]:51466 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iGT7a-0007wT-4y for ged-emacs-devel@m.gmane.org; Fri, 04 Oct 2019 15:20:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39958) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iGT7R-0007uV-Uc for emacs-devel@gnu.org; Fri, 04 Oct 2019 15:20:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iGT7R-0004Gh-2O for emacs-devel@gnu.org; Fri, 04 Oct 2019 15:20:01 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:47166) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iGT7P-0004GE-KX; Fri, 04 Oct 2019 15:19:59 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 15646448A70; Fri, 4 Oct 2019 15:19:59 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id DCB1C448A56; Fri, 4 Oct 2019 15:19:57 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1570216797; bh=piq+bYo1ejlOgjuaLf6+2OmuZyarN45F47J85vsqTUo=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=mi+p+YxwsJbZ21M/otkI1dUF9jX6D4ZWwx8VkLBk+VLFdNkh5KZWwLgUJr9ZGv95/ z7AkOCln7v/G5uvwvLRh8lmVx0z8EndVpa1ajob55IpGvjlFyeyF6nc3IP21MO2nwE fmqBACXkAq2L2HvXANp5Cr+fSIMzmx4dNXAvEvldQ8+q9cNGEZXdLzyWIj4/4jZzJj KgUwN9VFl6mG4bQh1eN6mrvD0u+buUOkLkDoZUe7+CLos6LehEG7nU/BS9VS08F59K WcFemx2GgS9KN30xevYaPorUvGKJMhTB6343b9cFU2H3kPgpY6g/NPhF4t6PQ2zgbm uR/hpxpqPyf3w== Original-Received: from alfajor (modemcable157.163-203-24.mc.videotron.ca [24.203.163.157]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 97A9F120013; Fri, 4 Oct 2019 15:19:57 -0400 (EDT) In-Reply-To: (=?windows-1252?Q?=22Cl=E9ment?= Pit-Claudel"'s message of "Thu, 3 Oct 2019 14:28:43 -0400") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 132.204.25.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:240579 Archived-At: > That makes sense. There's an additional problem that I hadn't thought of at > first: if I change the help-echo property on my help-echo strings, even > though I'll get the right message when mousing over, now things will break > for other renderings that do not use substitute-command-keys (in fact, most > places that I see in lisp/ do not use substitute-command-keys on help-echo; > most importantly, help-at-pt doesn't). That sounds like a bug, indeed: we need to pass the string through substitute-command-keys either always or never. Stefan