>>>>> In >>>>> Ted Zlatanov wrote: >> Emacs 20.7: >> ** The following functions are not known to be defined: >> bbdb-search, bbdb-records, locate-file, >> display-message-or-buffer [...] > I fixed the BBDB errors with: > ;; BBDB autoloads > (autoload 'bbdb-search "bbdb-com") Unfortunately, it doesn't fix. The byte-compiler still generates the byte-code which is equivalent to `(funcall 'bbdb-search args)' in the function `spam-check-bbdb', and then: (with-temp-buffer (insert "From: who\n") (condition-case code (spam-check-bbdb) (error code))) => (invalid-function (macro . #[(records &optional name company net... Since the macro definition of `bbdb-search' should be expanded before byte-compiling the function `spam-check-bbdb', bbdb-com.elc should be loaded at the compile time rather than autoloaded. The following code will help only BBDB users who have already installed BBDB.