From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.devel Subject: Re: Why does show_help_echo call substitute_command_keys? Date: Fri, 21 Jul 2017 15:48:13 +0700 Message-ID: References: <4f821efa-1448-8ba0-d164-abeff36180d4@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1500626983 18466 195.159.176.226 (21 Jul 2017 08:49:43 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 21 Jul 2017 08:49:43 +0000 (UTC) Cc: Emacs developers To: =?UTF-8?Q?Cl=C3=A9ment_Pit=2DClaudel?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 21 10:49:39 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dYTcw-0004W5-56 for ged-emacs-devel@m.gmane.org; Fri, 21 Jul 2017 10:49:38 +0200 Original-Received: from localhost ([::1]:41750 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dYTd1-0001Xu-Ji for ged-emacs-devel@m.gmane.org; Fri, 21 Jul 2017 04:49:43 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37647) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dYTbw-0001WJ-Uj for emacs-devel@gnu.org; Fri, 21 Jul 2017 04:48:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dYTbw-0005pF-6e for emacs-devel@gnu.org; Fri, 21 Jul 2017 04:48:37 -0400 Original-Received: from mail-io0-x230.google.com ([2607:f8b0:4001:c06::230]:34064) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dYTbw-0005nT-1U for emacs-devel@gnu.org; Fri, 21 Jul 2017 04:48:36 -0400 Original-Received: by mail-io0-x230.google.com with SMTP id l7so20407834iof.1 for ; Fri, 21 Jul 2017 01:48:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=sb6iU5gIcosgkfspeb3kQNutg3sQUofvpK64Ju8dMlk=; b=WxckteAaIg3A65dz15g5jB2mNDpDUiFeSCTsGGJhzrGluJ5nBPCct/kwl6f/+M/aKp t+gNbpzRgXpsSwCLZ6Vc0TmNMMLDFep/pirNBVp74+qwy4sujoamEMQK+QwA4QIQ1bMb KzGgcAUtuePn0zLln/A7R04wPIOlXvo0nvnA0YDSQxspoaP0KOFnSWcYx6GaneCckf/x GDP777cChriCXmqJJyFY/XFvOqhyYKkywF8I48Tq8V3g9eoBrapnF0uNGfgCMK4ctUaa qlHVscHH/XZks9kQ2pFyAF7HAV1MS+UukmCA1mE2p3GltlnjM8TOcxVAhXpmHJBbMbR/ vjGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-transfer-encoding; bh=sb6iU5gIcosgkfspeb3kQNutg3sQUofvpK64Ju8dMlk=; b=f/Q/+307lqHVFQq5g2JdG6iFY0qcfyTnWmTCHWZr8lqCsFVWUn70IOXa7CXAoinLfd jku6rleUGDT+tSgWjXXJ1D5EcatIYI1BAzUsqwW6xXvPpRi2GPB6HZNCYvvH19HDJhK/ dRE0SEmjqYlKVqqr5L9tJ7ksEtfJfUzOMMns+QEURttqeiwvee6OCiuxGJCzlp6Z/4E+ y+Bah1PTvsJAjAcoA8yExroWntq8HlMPlhz3j4XWRaWSWmDuKmtzhToHzuejmnF9k8ue 61EGBlR7ElkI+snG6IUKGco2HqaADUjVkAXz5D7DJ02i427aKsqVVaO9+jkd5sTbpmUH x+Mw== X-Gm-Message-State: AIVw1114k75Na/py074I1ySkFF/iQ+LV2GxX0kH1S7AzmgV9OqBj18Rs 0AOxVBJHGBV1bhr26QaunFb5HSq3bA== X-Received: by 10.107.12.70 with SMTP id w67mr7252256ioi.298.1500626913426; Fri, 21 Jul 2017 01:48:33 -0700 (PDT) Original-Received: by 10.79.128.213 with HTTP; Fri, 21 Jul 2017 01:48:13 -0700 (PDT) In-Reply-To: <4f821efa-1448-8ba0-d164-abeff36180d4@gmail.com> X-Google-Sender-Auth: TPJo4ZY9WQ9A882vfV9Ks9LfwDU X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4001:c06::230 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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:216911 Archived-At: On Fri, Jul 21, 2017 at 12:05 AM, Cl=C3=A9ment Pit-Claudel wrote: > Hi emacs-devel, > > I'm puzzled by this bit of code in show_help_echo: > > if (STRINGP (help) || NILP (help)) > { > if (!NILP (Vshow_help_function)) > call1 (Vshow_help_function, Fsubstitute_command_keys (help)); > help_echo_showing_p =3D STRINGP (help); > } Because the help-echo property is the Emacs API to tooltips, and tooltips are expected to be able to display keyboard equivalents to clicking the thing that is pointed? > This is causing trouble in Flycheck, because we set help-echo properties = on error spans and we expect them to be displayed without modifications whe= n users hover over them. Is there a way to disable command-key- (and quote= -) substitution in help-echo strings? There should probably be a function that knows when and how to quote the characters that cause such substitution with \=3D.