From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: "Basil L. Contovounesios" Newsgroups: gmane.emacs.devel Subject: Re: Escaping a string for substitute-command-keys Date: Sat, 05 Oct 2019 16:40:35 +0100 Message-ID: <875zl32ob0.fsf@tcd.ie> 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="112855"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: =?utf-8?Q?Cl=C3=A9ment?= Pit-Claudel , Eli Zaretskii , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 05 17:41:22 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 1iGmBN-000TCp-41 for ged-emacs-devel@m.gmane.org; Sat, 05 Oct 2019 17:41:21 +0200 Original-Received: from localhost ([::1]:57438 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iGmBL-0005Xw-CJ for ged-emacs-devel@m.gmane.org; Sat, 05 Oct 2019 11:41:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45747) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iGmAp-0005Xo-Ok for emacs-devel@gnu.org; Sat, 05 Oct 2019 11:40:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iGmAo-0002yR-Lv for emacs-devel@gnu.org; Sat, 05 Oct 2019 11:40:47 -0400 Original-Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]:40877) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iGmAo-0002xw-9o for emacs-devel@gnu.org; Sat, 05 Oct 2019 11:40:46 -0400 Original-Received: by mail-wr1-x435.google.com with SMTP id h4so1733366wrv.7 for ; Sat, 05 Oct 2019 08:40:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=S3clfmum0x+cW1zL40VegVSVWc47qHJUVoG1Ai8XAuw=; b=0M0eJnErdDJSYqZkrjAvG3QmXq98Q4tLGKVtvzeIbAft3zY47C0R+m3E1RQzzFvWNM K3Z6gKjiphfJSPNG9RbNSjTIjSdQCMlm9hfaagar4B+uP9tCzPx+afUnP0W8WS6pkFeM h9G64gQYCSHu1MNf5PrBRHJI/YwFe22I2t6iRVwDeJonbPtH9kiOnmcJvHBCUNvVvsvK 62EhzGc6P5fydk2bDHpZCH8n34t4KIKLgrxWKUPfjwQKNI2hYUS061OJ6VlGqV49B45Q hvxAGW3DJuwiiUtICp91CoyY8DOCT35yL3E8+rkU+WIiSmWZubuXykzBVT45xGeM4xpW X6gA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=S3clfmum0x+cW1zL40VegVSVWc47qHJUVoG1Ai8XAuw=; b=uiKRW3beFJRoJOKoj2vILYqqy3pP9VcR1tBuEJYVq5AT4XP7dbjVuZ9UjldOYpKReQ PoAWZtm82elNGfaV7Plad+U6MQ1i9Wjw7+HQW2/FOdhWiU0Hq04ROiE7E6pBWeJFzd2C LWLpw8ymBsxTT3ZYpMRU1AXISOS8MCIQO2YkForacmQYfO+nuA91sZHDJXtwZDiOAq0r +z+Y8mueJhpptx5HSSHWSyglF47bc7OPvgQLXbbignIXhNxoY3lTyKFCkhlw+iBLlMG9 FQ0DUVkAme/5jGzSKZZ9uaD8d+uVLuq/PI6MhE8QxiAQZqP4ZpPNQUex137fcwERWOY4 c5NQ== X-Gm-Message-State: APjAAAXh0xcsiwF+HcAA0gG6oAnPOwVjGGRIajjt+9ig1SphzOjn4bin 4qjww4bEo4O9Fufox+TUHuJT8A== X-Google-Smtp-Source: APXvYqwpvwlOz4zvRwIZ4UTDwdEMpl1U0YTYjz7H31hvlujZSLa11a5hikFChflLU8xLXaiKRMhGxw== X-Received: by 2002:adf:9dd1:: with SMTP id q17mr16063465wre.176.1570290043812; Sat, 05 Oct 2019 08:40:43 -0700 (PDT) Original-Received: from localhost ([2a02:8084:20e2:c380:92bd:1bfd:38fc:fae2]) by smtp.gmail.com with ESMTPSA id r2sm21750277wma.1.2019.10.05.08.40.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Oct 2019 08:40:42 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Fri, 04 Oct 2019 15:19:51 -0400") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::435 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:240619 Archived-At: Stefan Monnier writes: >> 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. Another source of inconsistency is {forward,backward}-button, which display help-echo values in the echo area when called interactively. Currently, they perform no command name substitution. Should they? Thanks, -- Basil