flax@suadb.UUCP (Jonas Flygare) (05/01/87)
After one evening trying to figure this out, I finally resort to the net. Anyone out there got an answer to this:? 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. -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | "Go to the Huntington Gallery and hold a razor blade a quarter of | | an inch away from "The Blue Boy" and shout "Ding dong, ding dong...""| | flax@suadb.UUCP (Jonas Flygare) | | jonasf@kuling.UUCP | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
aj@zyx.UUCP (Arndt Jonasson) (05/04/87)
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