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 16:10:40 +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 1500628278 4656 195.159.176.226 (21 Jul 2017 09:11:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 21 Jul 2017 09:11:18 +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 11:11:13 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 1dYTxl-0000mj-Kb for ged-emacs-devel@m.gmane.org; Fri, 21 Jul 2017 11:11:09 +0200 Original-Received: from localhost ([::1]:41840 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dYTxr-0007vO-6Z for ged-emacs-devel@m.gmane.org; Fri, 21 Jul 2017 05:11:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45074) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dYTxk-0007v7-Eq for emacs-devel@gnu.org; Fri, 21 Jul 2017 05:11:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dYTxe-0005Bw-Je for emacs-devel@gnu.org; Fri, 21 Jul 2017 05:11:08 -0400 Original-Received: from mail-it0-x233.google.com ([2607:f8b0:4001:c0b::233]:38347) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dYTxe-0005BR-EJ for emacs-devel@gnu.org; Fri, 21 Jul 2017 05:11:02 -0400 Original-Received: by mail-it0-x233.google.com with SMTP id h199so4611452ith.1 for ; Fri, 21 Jul 2017 02:11:02 -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=6rcKzMU49pgDX1crexq38Knxl0hUgkdnKtZOqGLZagE=; b=Fefp2lS+HuxhRwr87067wmTArAABDzghQh1pZdnlMXwkSkWNty/QlWePHeixisK3OY 4qmVHKDuK61oxuW0ICB4f9pmB62dY9yb6Abfd95l7HfyBydRYP3LegMxnw9ZOkGGQxJ4 Tr2kEjbTTeJq1o9ecMZ3qmCJZG+LgGlHhBy8QaaYaZH2NE3mmw/FkvU3bHBxaMeGWV+t dbnneWdodmmt6qNDuHofGibn7vaTDhsVN16NS8b75uRqgZJ0tCCMUBStqp3sG0AU1yt0 CWyoA0VySWQq4orU7tISWBLkmUeNyfckm11YOpc50Vs/NaqQv+mu7oqYuZVBIV5maQxD JKNg== 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=6rcKzMU49pgDX1crexq38Knxl0hUgkdnKtZOqGLZagE=; b=bzQ/NMEbgWEr2rWFEiE8Qy7q7oxeGZHMh2pg0/zHkuWfOc3tpNRvSDZTnLOgb6/l2M jc9jg5axsdEv7jsq+5dpUAFJl74vaziNJaCNwjJjd8yPNZIQS3tqS4TYWq9CaNxRRkmD h5uaqaQdOU6nBxZUXuqqXr78PoS7aEazRRTd8lV1pBpLqj2QGVYj0tL3trqsaBcwGCo9 I2bdUvjfsYkDDElgzEp50wZdpkBApV7XQAR0EuTmPwdNQvBEUF87ivHekeAy+8MS+YCM u+NzL6eqCbrpWmi+OpCYmVYBbYEjw6a/bChZGLzAA0h/dmBQcKNnaa9xkI8lJAWTHeUD c3VQ== X-Gm-Message-State: AIVw110ey9oF79GlDZQdzoIVdr3KGWbcQUze2CUnQAPxPYeUfxve3y0w 4NcFShc+wzMJoIZAlgOudDNfU/1+Ww== X-Received: by 10.36.190.65 with SMTP id i62mr6323635itf.174.1500628261244; Fri, 21 Jul 2017 02:11:01 -0700 (PDT) Original-Received: by 10.79.128.213 with HTTP; Fri, 21 Jul 2017 02:10:40 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: 9S8-tdNcf_51Ck2aau6xaGQq3Ws X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4001:c0b::233 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:216913 Archived-At: On Fri, Jul 21, 2017 at 4:01 PM, Cl=C3=A9ment 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.