]> code.delx.au - gnu-emacs-elpa/commitdiff
Declare bbdb functions, instead of requiring it
authorDmitry Gutov <dgutov@yandex.ru>
Thu, 20 Feb 2014 04:12:59 +0000 (06:12 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Thu, 20 Feb 2014 04:13:12 +0000 (06:13 +0200)
company-bbdb.el

index 4e7fdda608436979b4bd15ca9023cb7f9983ac2b..fb665cb96c950bc2976d525c698707a5651742ac 100644 (file)
@@ -1,4 +1,4 @@
-;;; company-bbdb.el --- company-mode completion back-end for BBDB in message-mode
+;;; company-bbdb.el --- company-mode completion back-end for BBDB in message-mode
 
 ;; Copyright (C) 2013-2014  Free Software Foundation, Inc.
 
 
 (require 'company)
 (eval-when-compile (require 'cl))
-(require 'bbdb nil t)
-(require 'bbdb-com nil t)
+
+(declare-function bbdb-record-get-field "bbdb")
+(declare-function bbdb-records "bbdb")
+(declare-function bbdb-dwim-mail "bbdb-com")
+(declare-function bbdb-search "bbdb-com")
 
 (defvar company-bbdb-records (make-hash-table :test 'equal))
 
 ;;;###autoload
 (defun company-bbdb (command &optional arg &rest ignore)
-  "`company-mode' completion back-end for `bbdb'."
+  "`company-mode' completion back-end for `bbdb'."
   (interactive (list 'interactive))
   (case command
     (interactive (company-begin-backend 'company-bbdb))
                                       full-mail))
                                   (bbdb-record-get-field record 'mail)))
                         (bbdb-search (bbdb-records) arg nil arg)))
-
     (sorted t)
-    (no-cache t)
-    (t nil)))
+    (no-cache t)))
 
 (provide 'company-bbdb)
 ;;; company-bbdb.el ends here