diff options
| author | Glenn Morris | 2007-12-04 03:55:40 +0000 |
|---|---|---|
| committer | Glenn Morris | 2007-12-04 03:55:40 +0000 |
| commit | c52ae2bbad5814b5fba73e368d5c6b923067b816 (patch) | |
| tree | 8ede9c33901b6fb009c0120165ca5c73a7939500 | |
| parent | 3428c0e9db0fe85d8b4436d2f94cf9cff84346e7 (diff) | |
| download | emacs-c52ae2bbad5814b5fba73e368d5c6b923067b816.tar.gz emacs-c52ae2bbad5814b5fba73e368d5c6b923067b816.zip | |
(bbdb-address-streets): Declare as a function.
(eudc-bbdb-extract-addresses): Use bbdb-address-streets rather than
bbdb-address-street1,2,3.
| -rw-r--r-- | lisp/ChangeLog | 33 | ||||
| -rw-r--r-- | lisp/net/eudcb-bbdb.el | 40 |
2 files changed, 52 insertions, 21 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 71e4aa2bc12..429c08f72c3 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,36 @@ | |||
| 1 | 2007-12-04 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * emulation/cua-base.el (top-level): Move (provide 'cua-base) to end. | ||
| 4 | No longer provide 'cua. Don't require cua-rect, cua-gmrk when | ||
| 5 | compiling. | ||
| 6 | (cua-set-rectangle-mark): Add doc string to autoload. | ||
| 7 | (cua--rectangle, cua--last-killed-rectangle) | ||
| 8 | (cua--global-mark-active): Always define for compiler. | ||
| 9 | (cua-copy-rectangle, cua-cut-rectangle, cua--rectangle-left) | ||
| 10 | (cua--delete-rectangle, cua--insert-rectangle) | ||
| 11 | (cua--rectangle-corner, cua--rectangle-assert) | ||
| 12 | (cua--insert-at-global-mark, cua--global-mark-post-command): | ||
| 13 | Declare as functions. | ||
| 14 | |||
| 15 | * emulation/cua-gmrk.el (top-level): Move provide to end. | ||
| 16 | |||
| 17 | * emulation/cua-rect.el (top-level): Move provide to end. | ||
| 18 | Don't require cua-gmrk when compiling. | ||
| 19 | (cua--cut-rectangle-to-global-mark) | ||
| 20 | (cua--copy-rectangle-to-global-mark): Declare as functions. | ||
| 21 | |||
| 22 | * emulation/viper-init.el (viper-replace-overlay-cursor-color) | ||
| 23 | (viper-insert-state-cursor-color, viper-emacs-state-cursor-color) | ||
| 24 | (viper-vi-state-cursor-color): Consolidate | ||
| 25 | make-variable-frame-local calls. | ||
| 26 | |||
| 27 | * net/eudcb-bbdb.el (bbdb-address-streets): Declare as a function. | ||
| 28 | (eudc-bbdb-extract-addresses): Use bbdb-address-streets rather | ||
| 29 | than bbdb-address-street1,2,3. | ||
| 30 | |||
| 31 | * textmodes/reftex-toc.el (reftex-make-separate-toc-frame): | ||
| 32 | Try x-focus-frame before focus-frame. Only try focus-frame on XEmacs. | ||
| 33 | |||
| 1 | 2007-12-03 Karl Fogel <kfogel@red-bean.com> | 34 | 2007-12-03 Karl Fogel <kfogel@red-bean.com> |
| 2 | 35 | ||
| 3 | * saveplace.el (save-place-quiet): Remove, reverting 2007-12-02T19:54:46Z!kfogel@red-bean.com. | 36 | * saveplace.el (save-place-quiet): Remove, reverting 2007-12-02T19:54:46Z!kfogel@red-bean.com. |
diff --git a/lisp/net/eudcb-bbdb.el b/lisp/net/eudcb-bbdb.el index 4a1b865736a..ef1379eee52 100644 --- a/lisp/net/eudcb-bbdb.el +++ b/lisp/net/eudcb-bbdb.el | |||
| @@ -107,8 +107,7 @@ | |||
| 107 | (declare-function bbdb-phone-location "ext:bbdb" t) ; via bbdb-defstruct | 107 | (declare-function bbdb-phone-location "ext:bbdb" t) ; via bbdb-defstruct |
| 108 | (declare-function bbdb-phone-string "ext:bbdb" (phone)) | 108 | (declare-function bbdb-phone-string "ext:bbdb" (phone)) |
| 109 | (declare-function bbdb-record-phones "ext:bbdb" t) ; via bbdb-defstruct | 109 | (declare-function bbdb-record-phones "ext:bbdb" t) ; via bbdb-defstruct |
| 110 | ;; FIXME: bbdb-address-street1/2/3 don't seem to exist in current | 110 | (declare-function bbdb-address-streets "ext:bbdb" t) ; via bbdb-defstruct |
| 111 | ;; bbdb, so this code is probably broken. | ||
| 112 | (declare-function bbdb-address-city "ext:bbdb" t) ; via bbdb-defstruct | 111 | (declare-function bbdb-address-city "ext:bbdb" t) ; via bbdb-defstruct |
| 113 | (declare-function bbdb-address-state "ext:bbdb" t) ; via bbdb-defstruct | 112 | (declare-function bbdb-address-state "ext:bbdb" t) ; via bbdb-defstruct |
| 114 | (declare-function bbdb-address-zip "ext:bbdb" t) ; via bbdb-defstruct | 113 | (declare-function bbdb-address-zip "ext:bbdb" t) ; via bbdb-defstruct |
| @@ -130,25 +129,24 @@ | |||
| 130 | 129 | ||
| 131 | (defun eudc-bbdb-extract-addresses (record) | 130 | (defun eudc-bbdb-extract-addresses (record) |
| 132 | (let (s c val) | 131 | (let (s c val) |
| 133 | (mapcar (function | 132 | (mapcar (lambda (address) |
| 134 | (lambda (address) | 133 | (setq c (bbdb-address-streets address)) |
| 135 | (setq val (concat (unless (= 0 (length (setq s (bbdb-address-street1 address)))) | 134 | (dotimes (n 3) |
| 136 | (concat s "\n")) | 135 | (unless (zerop (length (setq s (nth n c)))) |
| 137 | (unless (= 0 (length (setq s (bbdb-address-street2 address)))) | 136 | (setq val (concat val s "\n")))) |
| 138 | (concat s "\n")) | 137 | (setq c (bbdb-address-city address) |
| 139 | (unless (= 0 (length (setq s (bbdb-address-street3 address)))) | 138 | s (bbdb-address-state address)) |
| 140 | (concat s "\n")) | 139 | (setq val (concat val |
| 141 | (progn | 140 | (if (and (> (length c) 0) (> (length s) 0)) |
| 142 | (setq c (bbdb-address-city address)) | 141 | (concat c ", " s) |
| 143 | (setq s (bbdb-address-state address)) | 142 | c) |
| 144 | (if (and (> (length c) 0) (> (length s) 0)) | 143 | " " |
| 145 | (concat c ", " s " ") | 144 | (bbdb-address-zip address))) |
| 146 | (concat c " "))) | 145 | (if eudc-bbdb-use-locations-as-attribute-names |
| 147 | (bbdb-address-zip address))) | 146 | (cons (intern (bbdb-address-location address)) val) |
| 148 | (if eudc-bbdb-use-locations-as-attribute-names | 147 | (cons 'addresses (concat (bbdb-address-location address) |
| 149 | (cons (intern (bbdb-address-location address)) val) | 148 | "\n" val)))) |
| 150 | (cons 'addresses (concat (bbdb-address-location address) "\n" val))))) | 149 | (bbdb-record-addresses record)))) |
| 151 | (bbdb-record-addresses record)))) | ||
| 152 | 150 | ||
| 153 | (defun eudc-bbdb-format-record-as-result (record) | 151 | (defun eudc-bbdb-format-record-as-result (record) |
| 154 | "Format the BBDB RECORD as a EUDC query result record. | 152 | "Format the BBDB RECORD as a EUDC query result record. |