diff options
| -rw-r--r-- | lisp/net/eudcb-bbdb.el | 16 |
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 @@ | |||
| 103 | eudc-bbdb-current-query) | 103 | eudc-bbdb-current-query) |
| 104 | record))) | 104 | record))) |
| 105 | 105 | ||
| 106 | ;; External. | ||
| 107 | (declare-function bbdb-phone-location "ext:bbdb") ; via bbdb-defstruct | ||
| 108 | (declare-function bbdb-phone-string "ext:bbdb" (phone)) | ||
| 109 | (declare-function bbdb-record-phones "ext:bbdb") ; via bbdb-defstruct | ||
| 110 | ;; FIXME: bbdb-address-street1/2/3 don't seem to exist in current | ||
| 111 | ;; bbdb, so this code is probably broken. | ||
| 112 | (declare-function bbdb-address-city "ext:bbdb") ; via bbdb-defstruct | ||
| 113 | (declare-function bbdb-address-state "ext:bbdb") ; via bbdb-defstruct | ||
| 114 | (declare-function bbdb-address-zip "ext:bbdb") ; via bbdb-defstruct | ||
| 115 | (declare-function bbdb-address-location "ext:bbdb") ; via bbdb-defstruct | ||
| 116 | (declare-function bbdb-record-addresses "ext:bbdb") ; via bbdb-defstruct | ||
| 117 | (declare-function bbdb-records "ext:bbdb" | ||
| 118 | (&optional dont-check-disk already-in-db-buffer)) | ||
| 119 | |||
| 106 | (defun eudc-bbdb-extract-phones (record) | 120 | (defun eudc-bbdb-extract-phones (record) |
| 107 | (mapcar (function | 121 | (mapcar (function |
| 108 | (lambda (phone) | 122 | (lambda (phone) |
| @@ -130,7 +144,7 @@ | |||
| 130 | (if (and (> (length c) 0) (> (length s) 0)) | 144 | (if (and (> (length c) 0) (> (length s) 0)) |
| 131 | (concat c ", " s " ") | 145 | (concat c ", " s " ") |
| 132 | (concat c " "))) | 146 | (concat c " "))) |
| 133 | (bbdb-address-zip-string address))) | 147 | (bbdb-address-zip address))) |
| 134 | (if eudc-bbdb-use-locations-as-attribute-names | 148 | (if eudc-bbdb-use-locations-as-attribute-names |
| 135 | (cons (intern (bbdb-address-location address)) val) | 149 | (cons (intern (bbdb-address-location address)) val) |
| 136 | (cons 'addresses (concat (bbdb-address-location address) "\n" val))))) | 150 | (cons 'addresses (concat (bbdb-address-location address) "\n" val))))) |