[gnu.emacs] in Emacs-Lisp, how do you find if a symbol is defined?

rcardena@hqpyr1.oracle.com (Ricardo A. Cardenas) (02/05/89)

How do you find if a symbol is defined, without getting an error if it
isn't?  i.e. executing symbol-value on an undefined symbol gives an
error.

Thank you
--
Ricardo Cardenas     || Internet: rcardena%oracle.uucp@HPLABS.HP.COM
Oracle International || also, mail forwarded by: cardenas%dagmar@Athena.MIT.EDU
Belmont, California  ||{hplabs,uunet,mit-eddie,harvard,rutgers}!oracle!rcardena
USA - near Canada    ||

mcgrath@paris.Berkeley.EDU (Roland McGrath) (02/06/89)

(boundp 'foo) is t if foo's value is not void, nil if it is void.
(fboundp 'foo) is t if foo has a function definition, nil if not.
--
	Roland McGrath

roland@wheaties.ai.mit.edu, mit-eddie!wheaties.ai.mit.edu!roland