summaryrefslogtreecommitdiff
path: root/lisp/net/eudcb-bbdb.el
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2007-11-29 04:28:28 +0000
committerGlenn Morris <rgm@gnu.org>2007-11-29 04:28:28 +0000
commit15c0d42b46706080c6972c329ea189abd1274b34 (patch)
tree5a1740ac18bbe44e22089c18c4df1f37d5798784 /lisp/net/eudcb-bbdb.el
parent5bc5ab65231d7fa2104a3eac1866afe867fe331d (diff)
downloademacs-15c0d42b46706080c6972c329ea189abd1274b34.tar.gz
(bbdb-phone-location, bbdb-phone-string)
(bbdb-record-phones, bbdb-address-city, bbdb-address-state) (bbdb-address-zip, bbdb-address-location, bbdb-record-addresses) (bbdb-records): Declare as functions. (eudc-bbdb-extract-addresses): Use bbdb-address-zip rather than bbdb-address-zip-string.
Diffstat (limited to 'lisp/net/eudcb-bbdb.el')
-rw-r--r--lisp/net/eudcb-bbdb.el16
1 files changed, 15 insertions, 1 deletions
diff --git a/lisp/net/eudcb-bbdb.el b/lisp/net/eudcb-bbdb.el
index 7e37d9d4123..222ed132162 100644
--- a/lisp/net/eudcb-bbdb.el
+++ b/lisp/net/eudcb-bbdb.el
@@ -103,6 +103,20 @@
eudc-bbdb-current-query)
record)))
+;; External.
+(declare-function bbdb-phone-location "ext:bbdb") ; via bbdb-defstruct
+(declare-function bbdb-phone-string "ext:bbdb" (phone))
+(declare-function bbdb-record-phones "ext:bbdb") ; via bbdb-defstruct
+;; FIXME: bbdb-address-street1/2/3 don't seem to exist in current
+;; bbdb, so this code is probably broken.
+(declare-function bbdb-address-city "ext:bbdb") ; via bbdb-defstruct
+(declare-function bbdb-address-state "ext:bbdb") ; via bbdb-defstruct
+(declare-function bbdb-address-zip "ext:bbdb") ; via bbdb-defstruct
+(declare-function bbdb-address-location "ext:bbdb") ; via bbdb-defstruct
+(declare-function bbdb-record-addresses "ext:bbdb") ; via bbdb-defstruct
+(declare-function bbdb-records "ext:bbdb"
+ (&optional dont-check-disk already-in-db-buffer))
+
(defun eudc-bbdb-extract-phones (record)
(mapcar (function
(lambda (phone)
@@ -130,7 +144,7 @@
(if (and (> (length c) 0) (> (length s) 0))
(concat c ", " s " ")
(concat c " ")))
- (bbdb-address-zip-string address)))
+ (bbdb-address-zip address)))
(if eudc-bbdb-use-locations-as-attribute-names
(cons (intern (bbdb-address-location address)) val)
(cons 'addresses (concat (bbdb-address-location address) "\n" val)))))