* bbdb-wl.el (bbdb-wl-setup): require bbdb-autoloads if exists.
authorkaoru <kaoru>
Wed, 12 Dec 2001 04:39:28 +0000 (04:39 +0000)
committerkaoru <kaoru>
Wed, 12 Dec 2001 04:39:28 +0000 (04:39 +0000)
utils/ChangeLog
utils/bbdb-wl.el

index e499834..abb39b0 100644 (file)
@@ -1,3 +1,7 @@
+2001-12-12  TAKAHASHI Kaoru  <kaoru@kaisei.org>
+
+       * bbdb-wl.el (bbdb-wl-setup): require bbdb-autoloads if exists.
+
 2001-10-06  Hiroya Murata  <lapis-lazuli@pop06.odn.ne.jp>
 
        * bbdb-wl.el (bbdb-wl-get-petname): Fixed docstring.
index 846fae9..ec01dc0 100644 (file)
            (function
             (lambda ()
 ;;;           (local-set-key "\M-\t" 'bbdb-complete-name)
-              (define-key (current-local-map) "\M-\t" 'bbdb-complete-name)
-              ))))
+              (define-key (current-local-map) "\M-\t" 'bbdb-complete-name))))
+  ;; BBDB 2.00.06 or earlier: (provide 'bbdb-autoloads) in auto-autoloads.el
+  (when (and (not (featurep 'bbdb-autoloads))
+            (module-installed-p 'bbdb-autoloads))
+    (require 'bbdb-autoloads)))
 
 (defun bbdb-wl-exit ()
   (let (bbdb-buf)