From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: Getting help for a widget Date: Sun, 2 Apr 2006 08:19:02 -0700 Message-ID: References: <442F99BA.2080008@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1143991168 10301 80.91.229.2 (2 Apr 2006 15:19:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 2 Apr 2006 15:19:28 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Apr 02 17:19:27 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FQ4MJ-00056Y-MS for ged-emacs-devel@m.gmane.org; Sun, 02 Apr 2006 17:19:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FQ4MJ-0007Iu-26 for ged-emacs-devel@m.gmane.org; Sun, 02 Apr 2006 11:19:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FQ4M7-0007Ie-8m for emacs-devel@gnu.org; Sun, 02 Apr 2006 11:19:07 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FQ4M5-0007GH-HJ for emacs-devel@gnu.org; Sun, 02 Apr 2006 11:19:06 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FQ4M5-0007Fs-AW for emacs-devel@gnu.org; Sun, 02 Apr 2006 11:19:05 -0400 Original-Received: from [148.87.113.118] (helo=rgminet01.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.52) id 1FQ4Ow-0004Af-PG for emacs-devel@gnu.org; Sun, 02 Apr 2006 11:22:03 -0400 Original-Received: from rgmsgw301.us.oracle.com (rgmsgw301.us.oracle.com [138.1.186.50]) by rgminet01.oracle.com (Switch-3.1.6/Switch-3.1.6) with ESMTP id k32FJ3hS000872 for ; Sun, 2 Apr 2006 09:19:03 -0600 Original-Received: from rgmsgw301.us.oracle.com (localhost [127.0.0.1]) by rgmsgw301.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id k32FJ2S4012159 for ; Sun, 2 Apr 2006 09:19:02 -0600 Original-Received: from dradamslap (dhcp-amer-whq-csvpn-gw3-141-144-80-179.vpn.oracle.com [141.144.80.179]) by rgmsgw301.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with SMTP id k32FJ1h8012151 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Sun, 2 Apr 2006 09:19:02 -0600 Original-To: X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <442F99BA.2080008@student.lu.se> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:52320 Archived-At: As a little starter the two functions below can be used. The first one is new. Pub point over a widget or button and do M-x describe-field This will open the widget browser. That's an interesting beginning of a widget browser. What I was thinking of was a way to get to the appropriate part of the widget (or customize) Lisp code that carries out the action when you click a widget button. IOW, with a menu item, mouse click or keyboard sequence, I can use `C-h k' and then click on the *Help* buffer command-name link to get to the command's source code. I'd like to be able to do that with a widget button also. Another problem is of course that even if you arrive at the code that carries out the button action it is difficult to understand what's going on. Things are much simpler in widgetless code: get to a command definition; read its code; read the code of the functions it calls - clear as a bell usually.