Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!mcvax!enea!zyx!aj From: aj@zyx.UUCP (Arndt Jonasson) Newsgroups: comp.emacs Subject: Re: Utter frustration (looking for symbolp) Message-ID: <443@zyx.UUCP> Date: Mon, 4-May-87 10:44:47 EDT Article-I.D.: zyx.443 Posted: Mon May 4 10:44:47 1987 Date-Received: Thu, 7-May-87 05:01:53 EDT References: <282@suadb.UUCP> Reply-To: aj@zyx.UUCP (Arndt Jonasson) Organization: ZYX Sweden AB, Stockholm Lines: 26 Keywords: Elisp, function definitions In article <282@suadb.UUCP> flax@suadb.UUCP (Jonas Flygare) writes: > >I want to take a list of (possible) symbols, check each one of them >and if the symbol has got a function/variable definition display the >documentation, if any. >My problem: >When I get a particular symbol I cannot determine wether it is a >function or a variable. Is there anything like (functionp symbol) >or the equivalent?? >This is GnuEmacs version 17.**. >Any help appreciated. This little function should be useful: (defun functionp (f) (condition-case i (symbol-function f) (void-function nil) i)) It returns the function belonging to the symbol f, if there is one, otherwise nil. Hope this helps. -- Arndt Jonasson, ZYX Sweden AB, Styrmansgatan 6, 114 54 Stockholm, Sweden UUCP: ...!seismo!mcvax!zyx!aj