* bbdb-wl.el (bbdb-wl-setup): Add `bbdb-offer-save' to
authorkaoru <kaoru>
Sun, 28 Apr 2002 08:12:45 +0000 (08:12 +0000)
committerkaoru <kaoru>
Sun, 28 Apr 2002 08:12:45 +0000 (08:12 +0000)
`wl-save-hook'.  Use `bbdb-initialize' instead of require
bbdb-autoloads.

utils/ChangeLog
utils/bbdb-wl.el

index 6454558..b647226 100644 (file)
@@ -1,3 +1,9 @@
+2002-04-28  TAKAHASHI Kaoru  <kaoru@kaisei.org>
+
+       * bbdb-wl.el (bbdb-wl-setup): Add `bbdb-offer-save' to
+       `wl-save-hook'.  Use `bbdb-initialize' instead of require
+       bbdb-autoloads.
+
 2002-01-28  Hiroya Murata  <lapis-lazuli@pop06.odn.ne.jp>
 
        * bbdb-wl.el (bbdb-wl-get-addresses-2): Bind unbound local
index e1444bc..10e73a7 100644 (file)
@@ -39,6 +39,7 @@
   (add-hook 'wl-summary-exit-hook 'bbdb-wl-hide-bbdb-buffer)
   (add-hook 'wl-message-window-deleted-hook 'bbdb-wl-hide-bbdb-buffer)
   (add-hook 'wl-exit-hook 'bbdb-wl-exit)
+  (add-hook 'wl-save-hook 'bbdb-offer-save)
   (add-hook 'wl-summary-toggle-disp-off-hook 'bbdb-wl-hide-bbdb-buffer)
   (add-hook 'wl-summary-toggle-disp-folder-on-hook 'bbdb-wl-hide-bbdb-buffer)
   (add-hook 'wl-summary-toggle-disp-folder-off-hook 'bbdb-wl-hide-bbdb-buffer)
             (lambda ()
 ;;;           (local-set-key "\M-\t" 'bbdb-complete-name)
               (define-key (current-local-map) "\M-\t" 'bbdb-complete-name))))
-  ;; BBDB 2.00.06 or earlier:
-  ;;  auto-autoloads.el includes (provide 'bbdb-autoloads)
-  ;;  Don't exist bbdb-autoloads.el
-  (when (and (not (featurep 'bbdb-autoloads))
-            (module-installed-p 'bbdb-autoloads))
-    ;; BBDB 2.20: bbdb-autoloads.el NOT includes (provide 'bbdb-autoloads)
-    (load "bbdb-autoloads"))
-  
+  (require 'bbdb)
+  (bbdb-initialize)
+
   (if (not (boundp 'bbdb-get-addresses-from-headers))
       (defvar bbdb-get-addresses-from-headers
        '("From" "Resent-From" "Reply-To")))