From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17356 invoked by alias); 8 Jun 2008 15:32:03 -0000 Received: (qmail 17347 invoked by uid 22791); 8 Jun 2008 15:32:03 -0000 X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 08 Jun 2008 15:31:45 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id m58FVbNV022401; Sun, 8 Jun 2008 11:31:37 -0400 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [10.11.255.20]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m58FVaeI016991; Sun, 8 Jun 2008 11:31:36 -0400 Received: from opsy.redhat.com (vpn-10-25.bos.redhat.com [10.16.10.25]) by pobox.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m58FVamE001988; Sun, 8 Jun 2008 11:31:36 -0400 Received: by opsy.redhat.com (Postfix, from userid 500) id 96FD037814F; Sun, 8 Jun 2008 09:31:35 -0600 (MDT) To: "Doug Evans" Cc: "Thiago Jung Bauermann" , gdb-patches@sourceware.org Subject: Re: Function syntax References: <20080429155212.444237503@br.ibm.com> <20080429155304.288626880@br.ibm.com> <20080528205921.GA2969@caradoc.them.org> From: Tom Tromey Reply-To: Tom Tromey X-Attribution: Tom Date: Sun, 08 Jun 2008 15:32:00 -0000 In-Reply-To: (Doug Evans's message of "Sun\, 8 Jun 2008 08\:24\:12 -0700") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-06/txt/msg00137.txt.bz2 >>>>> "Doug" == Doug Evans writes: Doug> IWBN if this also included some help text that was somehow hooked into Doug> help/apropos. [maybe as fhelp, fapropos, or some such] Yeah, good idea. For Commands we already extract the Python docstring and present it to the user as the help for the command. Doing something similar for registered functions should be pretty easy. FWIW I went ahead and changed the function syntax in the python repository last week or so. There is just a single built-in function named "python" which evaluates its argument. I did not try to change lexing of the text in $(...). It would be nice to have a consensus on that. Tom