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: Sat, 22 Jul 2017 00:49:00 +0700 Message-ID: References: <4f821efa-1448-8ba0-d164-abeff36180d4@gmail.com> <6364429e-0696-4835-bed8-458a6095067f@default> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1500659372 18225 195.159.176.226 (21 Jul 2017 17:49:32 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 21 Jul 2017 17:49:32 +0000 (UTC) Cc: =?UTF-8?Q?Cl=C3=A9ment_Pit=2DClaudel?= , Emacs developers To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 21 19:49:25 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 1dYc3H-0004JU-Di for ged-emacs-devel@m.gmane.org; Fri, 21 Jul 2017 19:49:23 +0200 Original-Received: from localhost ([::1]:44258 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dYc3M-0004k0-UR for ged-emacs-devel@m.gmane.org; Fri, 21 Jul 2017 13:49:28 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58108) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dYc3H-0004jt-Cw for emacs-devel@gnu.org; Fri, 21 Jul 2017 13:49:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dYc3G-00082J-EK for emacs-devel@gnu.org; Fri, 21 Jul 2017 13:49:23 -0400 Original-Received: from mail-it0-x22a.google.com ([2607:f8b0:4001:c0b::22a]:35233) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dYc3G-00081y-9m for emacs-devel@gnu.org; Fri, 21 Jul 2017 13:49:22 -0400 Original-Received: by mail-it0-x22a.google.com with SMTP id h199so10972777ith.0 for ; Fri, 21 Jul 2017 10:49:21 -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; bh=zFiuTwJvjfmNwTSNtN6KBI5CRJXp6BCrvUc7+ndBqvo=; b=BK/IxTfjQRiC5lGu5CAQuVmr7Ua6TZyI6TdcGmn02F9GidU/WyRizb4j41A2O/ckMv fy8HX+KaP35cMAQAoFI4dZi+/EhkCTc0S66m5dsMEqhsjyn7jdbjsizvxxaM8uPAW5ZK YW2bfqrswGvSQuy45VZlbzPMaTDsXOWpXF7PWR+L3waLXIL7Vc0BaIwmvVh4d2q14zom TCVgCEDbNzZ+gIIfW+d0ZgirMzk38v/KKf49Yst7/PLA2kbhxvJcTVG929ZqlTOCxNXX tcU1zUE3dDRHAEdvmY0LiWY/TN9M0+NoSPm0D3nmGHLtYqnzbeWbjaZsbO4XjR0g2JyJ ZkDQ== 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; bh=zFiuTwJvjfmNwTSNtN6KBI5CRJXp6BCrvUc7+ndBqvo=; b=rewbTfB8rblH6CPAcSj2zMj7JX1VbFMvpWUmf9JSU7WbPAjN7p8BJ47/HDVGJiKBzW PbR/RwIBY0CQwAI93pS5xANiExlDKT5iWrQUwFxD2hKUAMG8GeC9Bzt9BprgY/xr5NVe 6h1jiG6C/OuBO6BAXJ0CyFkg+5CLw5vB8mwC4iGUHfGj8fElpEQplBdRpuJJEJOYLMsC UBqOBxqtbmBr/+FfeY12pqBSuLHMhXCvT9qV9nsymugbzygt3kPrZVwfLUGzQgx+hBIx 5/R05zDJgIqE3MB4Ya7CKQZKlUJptpUw5B6K75b8i1sd+vAmt94hEA26rmYZotYeHQat LWVQ== X-Gm-Message-State: AIVw11076zGZMAlWSFiSXt0jYQLQfI5wf7pNOnX4r3YIP5ts198Pjp2N HIPLEQSDt1rJn7VfkuyfSwOHvfwPAQ== X-Received: by 10.36.23.148 with SMTP id 142mr7309927ith.81.1500659361303; Fri, 21 Jul 2017 10:49:21 -0700 (PDT) Original-Received: by 10.79.128.213 with HTTP; Fri, 21 Jul 2017 10:49:00 -0700 (PDT) In-Reply-To: <6364429e-0696-4835-bed8-458a6095067f@default> X-Google-Sender-Auth: DHCXRP3XhkbSpBiLCCRDBdOFFvk X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4001:c0b::22a 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:216924 Archived-At: On Fri, Jul 21, 2017 at 9:54 PM, Drew Adams wrote: >> 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? > > A tooltip should just display whatever text it is handed, > with no fiddling with or elaboration of that text. If you > need such fiddling, whether by ``substitute-command-keys' > or `format' or something else, do it beforehand. Actually, client code that wishes to display a command key in a tooltip can set the help-echo property to a function. So, hardcoding the substitute-command-keys call in show_help_echo does not seem necessary after all.