From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Cl=c3=a9ment_Pit-Claudel?= Newsgroups: gmane.emacs.devel Subject: Re: Escaping a string for substitute-command-keys Date: Sat, 5 Oct 2019 04:24:28 -0400 Message-ID: <25bdd67e-6ed0-8338-1345-21c19535225f@gmail.com> References: <14423aa7-36c3-9ab7-6483-d43624f99e17@gmail.com> <83pnjd7pud.fsf@gnu.org> <83h84p7nih.fsf@gnu.org> <837e5l7j8n.fsf@gnu.org> <83imp461do.fsf@gnu.org> <835zl364yx.fsf@gnu.org> <83y2xz4nkh.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="237023"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 05 10:25:08 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 1iGfNE-000zXb-CK for ged-emacs-devel@m.gmane.org; Sat, 05 Oct 2019 10:25:08 +0200 Original-Received: from localhost ([::1]:54782 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iGfNC-0002my-P8 for ged-emacs-devel@m.gmane.org; Sat, 05 Oct 2019 04:25:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58588) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iGfMd-0002mm-Nc for emacs-devel@gnu.org; Sat, 05 Oct 2019 04:24:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iGfMc-0006oc-PC for emacs-devel@gnu.org; Sat, 05 Oct 2019 04:24:31 -0400 Original-Received: from mail-qk1-x72f.google.com ([2607:f8b0:4864:20::72f]:36602) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iGfMc-0006oU-K6; Sat, 05 Oct 2019 04:24:30 -0400 Original-Received: by mail-qk1-x72f.google.com with SMTP id y189so8120775qkc.3; Sat, 05 Oct 2019 01:24:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=fBEFT9W1qWueFSNcESZuAvJhUb5aV0W/hLvuwvXyrRs=; b=DHjVBV3UxW0NvBu0IQagPEXSuGCXkfuVvoaPzqHgA+CsgAhfJSh56/9htbYFfAMY/I M4hblieDlOvFUL7XGIR5n58lodOyZkwwkNXdr7tpEJ29tBIP21wsljhGQ7kfMvvTTfMn vw1UCN+DWJJUQydS+FExWjLTvc5678Ey/sWI5aUj6qmMluKOACq9A+Gf1X2rltOZjiAS ybOIsSnDBUopy6ftxtetabFNsqmQh2qeK559WVDewqhEi+qg+z4Ph7cU6ja3Iply18Qp I/5OZoPuPAaOh/hhUFtE+cRR61PIX+DNxNAXXFUn3Ak6RreoLaFCGwVGxYCTty9YM5er 1Hmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=fBEFT9W1qWueFSNcESZuAvJhUb5aV0W/hLvuwvXyrRs=; b=tFNDK4l3RDuDxIjCDyCaDm3pQ9T5LisXrhegA3YnxLRPkgskLxViOu6ouRDuxXNQfC tcJYxjR/jdSQwTmcHeK1UBlslYsBKohwJSi1pvbENkJ42sn7AEJzbDUB9YMCavJtzDKt Q5fOpKgPFtpIwkstjSg7raxIt41HwKjqdQVvh3Q9ttP5N6cRnb5WD0CcW+2Y0AERS2N+ aeYQtgn03BOtshLpDt06wJ9OiWBn+PYcI7NiOQEXmaVlrs6v4UYI9K2QDGNhAK3YM5xr uhesEsW5t/V2DbNEwgaOepNJ+nSCf9db8HbHpa8SdIIepCtX0bf6NXN4+WZZVVkoJ8LS pxRQ== X-Gm-Message-State: APjAAAUlcSpWm1x2WQz82zJ+wK1C2WqmY3Z2cuZmQE02mUPlx4QP+5cU tq/Dw9FHQKxvt7MXKbdWWNTelLSq X-Google-Smtp-Source: APXvYqxEHRFG6joKN8WweDIqOcuEena8m4AJj3BBeU1TFcPN4rhcxGnUTCZ/gcWH50VyrQ2Xi+PJHg== X-Received: by 2002:ae9:d807:: with SMTP id u7mr13902008qkf.492.1570263869779; Sat, 05 Oct 2019 01:24:29 -0700 (PDT) Original-Received: from ?IPv6:2601:184:4180:66e7:656c:d996:de5:9bda? ([2601:184:4180:66e7:656c:d996:de5:9bda]) by smtp.googlemail.com with ESMTPSA id d134sm3987427qkg.133.2019.10.05.01.24.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 05 Oct 2019 01:24:29 -0700 (PDT) In-Reply-To: <83y2xz4nkh.fsf@gnu.org> Content-Language: en-GB X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::72f 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:240603 Archived-At: On 2019-10-05 04:13, Eli Zaretskii wrote: >> Cc: emacs-devel@gnu.org >> From: Clément Pit-Claudel >> Date: Sat, 5 Oct 2019 04:04:34 -0400 >> >>> I guess we need to add some feature to control whether help-echo gets >>> run through substitute-command-keys, or add an alternative to >>> help-echo that works exactly like it, but without substitutions. >>> Patches welcome. >> >> Sounds good, and I can work on the patch. I think I like the first solution better, if we can come up with something elegant: the second case will force us to define priorities, and besides we already have kbd-help in addition to help-echo. >> >> What about the following: before performing a conversion, substitute-command-keys could check a property of the string that it receives, say help-echo-conversion, and if that property is nil it would not perform the conversion. > > I'd prefer a property like help-echo-inhibit-substitution that is > non-nil, to inhibit the call to substitute-command-keys. A value of > nil is easy to confuse with no property at all. OK, I will work on a patch. I expect I will have time to work on it in a few weeks from now, but not sooner, unfortunately.