From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Mauro Aranda Newsgroups: gmane.emacs.bugs Subject: bug#139: describe-key vs. widget red tape Date: Mon, 30 Sep 2019 07:54:07 -0300 Message-ID: References: <87mynwgrxb.fsf@jidanni.org> <877e5ql42d.fsf@gnus.org> <8336gedyus.fsf@gnu.org> <874l0ugrl4.fsf@gnus.org> <83sgoechsf.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000c9f4d90593c30e9a" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="14950"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 139@debbugs.gnu.org, Lars Ingebrigtsen , jidanni@jidanni.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 30 12:56:03 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1iEtLW-0003lq-Dd for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 Sep 2019 12:56:02 +0200 Original-Received: from localhost ([::1]:48606 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iEtLV-00082S-5t for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 Sep 2019 06:56:01 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45912) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iEtKZ-0007Us-IT for bug-gnu-emacs@gnu.org; Mon, 30 Sep 2019 06:55:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iEtKY-0004cN-CN for bug-gnu-emacs@gnu.org; Mon, 30 Sep 2019 06:55:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48161) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iEtKY-0004bn-8r for bug-gnu-emacs@gnu.org; Mon, 30 Sep 2019 06:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iEtKY-0008O7-5P for bug-gnu-emacs@gnu.org; Mon, 30 Sep 2019 06:55:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mauro Aranda Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 30 Sep 2019 10:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 139 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: wontfix Original-Received: via spool by 139-submit@debbugs.gnu.org id=B139.156984086832193 (code B ref 139); Mon, 30 Sep 2019 10:55:02 +0000 Original-Received: (at 139) by debbugs.gnu.org; 30 Sep 2019 10:54:28 +0000 Original-Received: from localhost ([127.0.0.1]:56982 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iEtJz-0008NA-Tl for submit@debbugs.gnu.org; Mon, 30 Sep 2019 06:54:28 -0400 Original-Received: from mail-lf1-f50.google.com ([209.85.167.50]:46275) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iEtJx-0008Mx-NV for 139@debbugs.gnu.org; Mon, 30 Sep 2019 06:54:26 -0400 Original-Received: by mail-lf1-f50.google.com with SMTP id t8so6609685lfc.13 for <139@debbugs.gnu.org>; Mon, 30 Sep 2019 03:54:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Vczd6gbiDVSQ15K+54pemL5wV+qEkArtIyVh/NwqABU=; b=FAoi97w0m+X6A/TXsUKMk0knZi0NOcDIrvN37ho+yduotqDImx8itjaYLP4CzOaWPi ft+c2BLBGH6LXcI5LC0kkCzWTcUlwGg/JnzGxs8m8xfnshZV5XcqY6deSxgXgJ7wbf5Z kc4DBg5B5cbIUYLxsh9CCo9gBERHZfPUW6Y3R0oJDXwGwUWhAKC1Z5e2Abpu6vMw3nRu FtZRtoClNj2+HV/uMcDb1Rn2QHKgg3r0H28YG3FHlRqp/QhYXakMqAPEgB0kIfSRTKWk avsKdCOLmZyIoETc+2fcM6F4SPJCCbCr9/mwCRGnrQJVktLTvDAQ7U0PIj1SNY8Kv/tC 0VfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Vczd6gbiDVSQ15K+54pemL5wV+qEkArtIyVh/NwqABU=; b=jHPM44Y9j2jHGj89nNAQD11RKAPT7YEWU+V+x6Cfn6hLnFBQKqFIQ2eB1PJNvV8FnM F8PB8ihZ+DonpUVsh3YyYx6GA0Zc1A4ltcbrx+NEfThlN3ZA9RUBa0j/GoJqYJOD4Xiv eEP0uGmgO03b/8tQVbWvnoobQRLbzPArPmPOjvcNeLke6HcLS30h/avtFflsq4dLKENS ZRwV+3Y6uZ/YsXg2N0tz2MpAxJUaXqU34vYhM6dsUsaTE9RpBxR9uktkTsOlGSXJq4HJ gnwDJVmnlMpbgMfbr9pxoErIKC7jwvwzWbMBMjL4z2XvLMskAu3o3+13QP+ZaqRl5EdI rqcg== X-Gm-Message-State: APjAAAVKwnqP3V8PrX84YgWIyUuL2vwcczVo6C0MMhw2rOHyOGcCdUf+ 8TCnohpRjwAHcDhJWS/TRwDl0L//mLvhuZMLBwY= X-Google-Smtp-Source: APXvYqzPjB6OBvRrbdEJ+B88WXluJ7p0bvJYpUv02Z4UFjOS2P/Gvprct6FIzvQySlrjS6yhWg4Mz+crhlp6Y9GBXrI= X-Received: by 2002:ac2:4552:: with SMTP id j18mr2417553lfm.120.1569840859574; Mon, 30 Sep 2019 03:54:19 -0700 (PDT) In-Reply-To: <83sgoechsf.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:167866 Archived-At: --000000000000c9f4d90593c30e9a Content-Type: text/plain; charset="UTF-8" Eli Zaretskii writes: >> From: Lars Ingebrigtsen >> Cc: jidanni@jidanni.org, 139@debbugs.gnu.org >> Date: Mon, 30 Sep 2019 09:40:07 +0200 >> >> > If the action of the button is not clear from the button's label, it >> > should have a help-echo string which describes that. >> >> What the button does may be clear, but it can be somewhat convoluted to >> determine precisely what function is going to end up being run. (This >> is for introspection/debugging purposes.) > > I'm not sure introspection/debugging was what the OP had in mind, but > we could perhaps bind something like M-mouse-3 on a button to produce > that information. It wouldn't be easy, though, given how well the > widget library hides that. I took a look. Perhaps we could start with something like the attached? The file defines a command for describing the actions associated to a widget. One common indirection is that a widget's action might be to tell its parent to run its action, so I tried to solve that indirection. To test it, load it, put point on a widget and then type: M-x widget-describe-actions If that's a good start, I'm willing to work on this feature request. Best regards, Mauro. --000000000000c9f4d90593c30e9a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Eli Zaretskii <eliz@gnu= .org> writes:

>> From: Lars Ingebrigtsen <larsi@gnus.org>
>> Cc: jidanni@jidanni.org, =C2=A0139@debbugs.gnu.org
>> Date: Mon, 30 Sep= 2019 09:40:07 +0200
>>
>> > If the action of the but= ton is not clear from the button's label, it
>> > should ha= ve a help-echo string which describes that.
>>
>> What t= he button does may be clear, but it can be somewhat convoluted to
>&g= t; determine precisely what function is going to end up being run. =C2=A0(T= his
>> is for introspection/debugging purposes.)
>
> = I'm not sure introspection/debugging was what the OP had in mind, but> we could perhaps bind something like M-mouse-3 on a button to produc= e
> that information.=C2=A0 It wouldn't be easy, though, given ho= w well the
> widget library hides that.

I took a look.=C2=A0 P= erhaps we could start with something like the attached?
The file defines= a command for describing the actions associated to a
widget.=C2=A0 One = common indirection is that a widget's action might be to
tell its pa= rent to run its action, so I tried to solve that indirection.

To tes= t it, load it, put point on a widget and then type:
M-x widget-describe-= actions

If that's a good start, I'm willing = to work on this feature request.

Best regards,
Mauro= .
--000000000000c9f4d90593c30e9a--