[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 02/31: Declare bbdb functions, instead of requiring it
From: |
Dmitry Gutov |
Subject: |
[elpa] 02/31: Declare bbdb functions, instead of requiring it |
Date: |
Tue, 18 Mar 2014 05:19:34 +0000 |
dgutov pushed a commit to branch master
in repository elpa.
commit e731d652bd1ed4e8c6bfeccc54726a87a9a75009
Author: Dmitry Gutov <address@hidden>
Date: Thu Feb 20 06:12:59 2014 +0200
Declare bbdb functions, instead of requiring it
---
company-bbdb.el | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/company-bbdb.el b/company-bbdb.el
index 4e7fdda..fb665cb 100644
--- a/company-bbdb.el
+++ b/company-bbdb.el
@@ -1,4 +1,4 @@
-;;; company-bbdb.el --- A 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.
@@ -21,14 +21,17 @@
(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)
- "A `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))
@@ -44,10 +47,8 @@
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
- [elpa] 27/31: company-semantic--current-tags: make buffer-local, (continued)
- [elpa] 27/31: company-semantic--current-tags: make buffer-local, Dmitry Gutov, 2014/03/18
- [elpa] 25/31: company-keywords-alist: add missing question mark, Dmitry Gutov, 2014/03/18
- [elpa] 29/31: Remove leftover debug statement, Dmitry Gutov, 2014/03/18
- [elpa] 28/31: company-semantic: don't try to fetch doc for tag without buffer, Dmitry Gutov, 2014/03/18
- [elpa] 08/31: Wrap `company-call-backend' in `condition-case', Dmitry Gutov, 2014/03/18
- [elpa] 26/31: Support the keyword :with, Dmitry Gutov, 2014/03/18
- [elpa] 30/31: Release 0.7.1, Dmitry Gutov, 2014/03/18
- [elpa] 31/31: Merge commit '7be4321260f0c73ef4c3cadc646f6bb496650253' from company, Dmitry Gutov, 2014/03/18
- [elpa] 21/31: company-init-backend: don't try to initialize lambdas, Dmitry Gutov, 2014/03/18
- [elpa] 03/31: Remove company-bbdb-records, it was unused, Dmitry Gutov, 2014/03/18
- [elpa] 02/31: Declare bbdb functions, instead of requiring it,
Dmitry Gutov <=
- [elpa] 06/31: Hopefully fix the Emacs 23 breakage, Dmitry Gutov, 2014/03/18