From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?Cl=c3=a9ment_Pit-Claudel?= Newsgroups: gmane.emacs.devel Subject: Re: Why does show_help_echo call substitute_command_keys? Date: Fri, 21 Jul 2017 11:19:01 +0200 Message-ID: <292e83d3-24a6-0d8e-10ad-be69c4b776dc@gmail.com> 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: 8bit X-Trace: blaine.gmane.org 1500628791 2373 195.159.176.226 (21 Jul 2017 09:19:51 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 21 Jul 2017 09:19:51 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 Cc: Emacs developers To: Yuri Khan Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 21 11:19:48 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 1dYU68-0000Nr-46 for ged-emacs-devel@m.gmane.org; Fri, 21 Jul 2017 11:19:48 +0200 Original-Received: from localhost ([::1]:41859 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dYU6A-00024b-IE for ged-emacs-devel@m.gmane.org; Fri, 21 Jul 2017 05:19:53 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46128) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dYU5S-00023N-Ey for emacs-devel@gnu.org; Fri, 21 Jul 2017 05:19:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dYU5P-0001Gx-9o for emacs-devel@gnu.org; Fri, 21 Jul 2017 05:19:06 -0400 Original-Received: from mail-wm0-x236.google.com ([2a00:1450:400c:c09::236]:36036) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dYU5P-0001G3-24 for emacs-devel@gnu.org; Fri, 21 Jul 2017 05:19:03 -0400 Original-Received: by mail-wm0-x236.google.com with SMTP id w191so3526745wmw.1 for ; Fri, 21 Jul 2017 02:19:02 -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=y7skssa1gS5RVdhw/6NNHIeqJsqJcKoCEjpczwY61I4=; b=CKYMmDbI9fBP9OaRq3P5FWuYSRdPhLfMeaStWYinB4dbz1QXKOQd4Gq9NBsoD4Y24b 98k1ZF/WtPTm/2/oGfdoUqRdcFOy6DSosvcQuRal4ACHHAaVQQq8zxFPYJTCh/kh6BkJ uVslwygFm46OZnV9NsOIZosnEjplkaBuowHOoVxqWX0htE4U198H3Vc5cuuANv+P+CaL ufmM9o4q6EylQLFXTHIf5JaJPuZe2MIP81eG5MkuAGT2vWEfK9UCwAyrpy2hNYWt3TOE YqaNILmIHRGgqlGxMbA2R8kz+h8YmE6EKpdcaffzo5uKkxYDip3bObbFgDV1RYXifwOB GGOQ== 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=y7skssa1gS5RVdhw/6NNHIeqJsqJcKoCEjpczwY61I4=; b=S72SF0LI2Nw5hxfXV2BF7BEzHYeckxmbgnSie9+104xsa0tQr+4lZjuI9N6ZDlccVJ C4WPjYHDXcVrURMMLr72WXGzGOkaZvjh5o68tPg8Bt1dviNNBU0JDZuWTqPX87kwV4+D izq9ITfLEqLucFS8F/1A8p0rNaPCgHq4SsILxv4AYW4ZjqO13wN75pw9KQ8UFa4AMYmd lBwJcxINdmhuEJpmM0ODTaCbUbEK0S0VqlMVj1nQVukD0exLGnxicqvIq7JM7Cv3MosJ JFoGn1n3TWsuqmQGNfRCwkK6Fkr+fzF1nJ+zpHKTnBFqHn4PRDosrVoyzdzwb+6PP2gj uKOg== X-Gm-Message-State: AIVw111y5wv7njAjz47P0s2O88EZIqEQDeRA/lEU9A4VSkZfMpkaSfNI flXXMWgwjoeAyb7ACuQ= X-Received: by 10.28.0.6 with SMTP id 6mr4630105wma.37.1500628741881; Fri, 21 Jul 2017 02:19:01 -0700 (PDT) Original-Received: from [128.93.70.6] ([128.93.70.6]) by smtp.gmail.com with ESMTPSA id n19sm1112592wmd.40.2017.07.21.02.19.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 21 Jul 2017 02:19:01 -0700 (PDT) In-Reply-To: Content-Language: en-GB X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::236 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:216914 Archived-At: On 2017-07-21 11:10, Yuri Khan wrote: > On Fri, Jul 21, 2017 at 4:01 PM, Clément Pit-Claudel > wrote: >> On 2017-07-21 10:48, Yuri Khan 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? >> >> Ok. So we don't expect callers to explicitly use substitute-command-keys on their help-echo properties? > > Imagine if it were so. > > You add a button to the tool bar, with a help-echo property containing > tooltip text with command keys substituted at the time of addition. > > The user rebinds the command to another key. Your button retains its > (now inaccurate) tooltip text. This makes complete sense; thanks!