From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: A way to get a list of available functions / variables? Date: Sat, 17 May 2008 00:33:24 +0200 Message-ID: <854p8xzxor.fsf@lola.goethe.zz> References: <87bq665nsz.fsf@lionel.metasyntax.net> <874pbyb97l.fsf@saeurebad.de> <33274.128.165.123.18.1210976629.squirrel@webmail.lanl.gov> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1210977228 2592 80.91.229.12 (16 May 2008 22:33:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 16 May 2008 22:33:48 +0000 (UTC) Cc: Taylor Venable , emacs-devel@gnu.org To: herring@lanl.gov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 17 00:34:24 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Jx8VH-0004T0-Ip for ged-emacs-devel@m.gmane.org; Sat, 17 May 2008 00:34:19 +0200 Original-Received: from localhost ([127.0.0.1]:45258 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jx8UY-0006iK-3h for ged-emacs-devel@m.gmane.org; Fri, 16 May 2008 18:33:34 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jx8UU-0006gm-6n for emacs-devel@gnu.org; Fri, 16 May 2008 18:33:30 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jx8US-0006fO-On for emacs-devel@gnu.org; Fri, 16 May 2008 18:33:29 -0400 Original-Received: from [199.232.76.173] (port=48218 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jx8US-0006fG-Ko for emacs-devel@gnu.org; Fri, 16 May 2008 18:33:28 -0400 Original-Received: from mail-in-03.arcor-online.net ([151.189.21.43]:54227) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Jx8US-0002Bl-Ai for emacs-devel@gnu.org; Fri, 16 May 2008 18:33:28 -0400 Original-Received: from mail-in-03-z2.arcor-online.net (mail-in-03-z2.arcor-online.net [151.189.8.15]) by mail-in-03.arcor-online.net (Postfix) with ESMTP id BF5A12CACFF; Sat, 17 May 2008 00:33:26 +0200 (CEST) Original-Received: from mail-in-16.arcor-online.net (mail-in-16.arcor-online.net [151.189.21.56]) by mail-in-03-z2.arcor-online.net (Postfix) with ESMTP id B05922D3CF9; Sat, 17 May 2008 00:33:26 +0200 (CEST) Original-Received: from lola.goethe.zz (dslb-084-061-056-074.pools.arcor-ip.net [84.61.56.74]) by mail-in-16.arcor-online.net (Postfix) with ESMTP id 9C3C8236E42; Sat, 17 May 2008 00:33:26 +0200 (CEST) Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 813281C464F7; Sat, 17 May 2008 00:33:25 +0200 (CEST) In-Reply-To: <33274.128.165.123.18.1210976629.squirrel@webmail.lanl.gov> (Davis Herring's message of "Fri, 16 May 2008 15:23:49 -0700 (PDT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-Virus-Scanned: ClamAV 0.92.1/7138/Fri May 16 22:02:17 2008 on mail-in-16.arcor-online.net X-Virus-Status: Clean X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 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:97301 Archived-At: "Davis Herring" writes: >> (remove-if-not (lambda (atom) >> (or (commandp atom) >> (custom-variable-p atom))) >> obarray) > > Unless CL is a lot more clever than I think it is, this won't work: the > obarray is really a hash table with linked buckets, and Lisp can't see the > links. (See (elisp)Creating symbols.) That's what mapatoms is for. (let (l) (mapatoms (lambda (atom) (when (or (commandp atom) (custom-variable-p atom)) (push atom l)))) l) -- David Kastrup, Kriemhildstr. 15, 44793 Bochum