On Wed, Dec 07 2005, Stephen J. Turnbull wrote:
>>>>> "Reiner" == Reiner Steib
<reinersteib+gmane(a)imap.cc> writes:
Reiner> Test for features (`featurep') , functions (`fboundp') or
Reiner> variables (`boundp') instead of versions.
You can test for symbols with `intern-soft', though that is rarely
useful in this context.
Typically I need to know if it is a function[1]. Knowing that it is a
symbol isn't useful for me, but maybe you have other examples in mind?
Bye, Reiner.
[1] E.g.:
;; Enable some modes...
(dolist (mode '(column-number-mode line-number-mode
minibuffer-electric-default-mode
file-name-shadow-mode savehist-mode))
(if (fboundp mode)
(funcall mode 1)
(message "Mode `%s' is not available" mode)))
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available |
http://rsteib.home.pages.de/