[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] scratch/eudc-bbdb-3 5e6c763 14/15: EUDC: Wrap long lines i
From: |
Thomas Fitzsimmons |
Subject: |
[Emacs-diffs] scratch/eudc-bbdb-3 5e6c763 14/15: EUDC: Wrap long lines in eudc-export.el |
Date: |
Tue, 21 Nov 2017 23:47:52 -0500 (EST) |
branch: scratch/eudc-bbdb-3
commit 5e6c763604bd5a08122633b7a9cd7cb25f4c793d
Author: Thomas Fitzsimmons <address@hidden>
Commit: Thomas Fitzsimmons <address@hidden>
EUDC: Wrap long lines in eudc-export.el
* lisp/net/eudc-export.el (eudc-create-bbdb-record): Wrap long
lines.
(eudc-parse-spec): Likewise.
(eudc-bbdbify-phone): Likewise.
---
lisp/net/eudc-export.el | 31 +++++++++++++++++++++++--------
1 file changed, 23 insertions(+), 8 deletions(-)
diff --git a/lisp/net/eudc-export.el b/lisp/net/eudc-export.el
index 792ba52..77f6ddf 100644
--- a/lisp/net/eudc-export.el
+++ b/lisp/net/eudc-export.el
@@ -60,10 +60,14 @@ If SILENT is non-nil then the created BBDB record is not
displayed."
(conversion-alist (symbol-value eudc-bbdb-conversion-alist)))
;; BBDB standard fields
- (setq bbdb-name (eudc-parse-spec (cdr (assq 'name conversion-alist))
record nil)
- bbdb-company (eudc-parse-spec (cdr (assq 'company
conversion-alist)) record nil)
- bbdb-net (eudc-parse-spec (cdr (assq 'net conversion-alist)) record
nil)
- bbdb-notes (eudc-parse-spec (cdr (assq 'notes conversion-alist))
record nil))
+ (setq bbdb-name (eudc-parse-spec
+ (cdr (assq 'name conversion-alist)) record nil)
+ bbdb-company (eudc-parse-spec
+ (cdr (assq 'company conversion-alist)) record nil)
+ bbdb-net (eudc-parse-spec
+ (cdr (assq 'net conversion-alist)) record nil)
+ bbdb-notes (eudc-parse-spec
+ (cdr (assq 'notes conversion-alist)) record nil))
(setq spec (cdr (assq 'address conversion-alist)))
(setq bbdb-address (delq nil (eudc-parse-spec (if (listp (car spec))
spec
@@ -79,8 +83,16 @@ If SILENT is non-nil then the created BBDB record is not
displayed."
(mapcar (function
(lambda (mapping)
(if (and (not (memq (car mapping)
- '(name company
net address phone notes)))
- (setq value (eudc-parse-spec
(cdr mapping) record nil)))
+ '(name
+ company
+ net
+ address
+ phone
+ notes)))
+ (setq value
+ (eudc-parse-spec
+ (cdr mapping)
+ record nil)))
(cons (car mapping) value))))
conversion-alist)))
(setq bbdb-notes (delq nil bbdb-notes))
@@ -118,7 +130,8 @@ If RECURSE is non-nil then SPEC may be a list of atomic
specs."
(eudc-parse-spec spec-elem record nil))
spec))
(t
- (error "Invalid specification for `%s' in `eudc-bbdb-conversion-alist'"
spec))))
+ (error
+ "Invalid specification for `%s' in `eudc-bbdb-conversion-alist'" spec))))
(defun eudc-bbdbify-address (addr location)
"Parse ADDR into a vector compatible with BBDB.
@@ -187,7 +200,9 @@ LOCATION is used as the phone location for BBDB."
(bbdb-parse-phone-number phone)))
(error
(if (string= "phone number unparsable." (cadr err))
- (if (not (y-or-n-p (format "BBDB claims %S to be
unparsable--insert anyway? " phone)))
+ (if (not (y-or-n-p
+ (format (concat "BBDB claims %S to be unparsable"
+ "--insert anyway? ") phone)))
(error "Phone number unparsable")
(setq phone-list (list (bbdb-string-trim phone))))
(signal (car err) (cdr err)))))
- [Emacs-diffs] branch scratch/eudc-bbdb-3 created (now 69e8cb9), Thomas Fitzsimmons, 2017/11/21
- [Emacs-diffs] scratch/eudc-bbdb-3 c6c1286 02/15: EUDC: Fix indentation in BBDB backend, Thomas Fitzsimmons, 2017/11/21
- [Emacs-diffs] scratch/eudc-bbdb-3 3636aa2 03/15: EUDC: Fix whitespace in BBDB backend, Thomas Fitzsimmons, 2017/11/21
- [Emacs-diffs] scratch/eudc-bbdb-3 5e6c763 14/15: EUDC: Wrap long lines in eudc-export.el,
Thomas Fitzsimmons <=
- [Emacs-diffs] scratch/eudc-bbdb-3 e02938d 11/15: EUDC: Obsolete eudc--using-bbdb-3-or-newer-p, Thomas Fitzsimmons, 2017/11/21
- [Emacs-diffs] scratch/eudc-bbdb-3 06c3557 08/15: EUDC: Require bbdb and bbdb-com without ignoring errors, Thomas Fitzsimmons, 2017/11/21
- [Emacs-diffs] scratch/eudc-bbdb-3 2beb511 04/15: EUDC: Wrap long line in BBDB backend, Thomas Fitzsimmons, 2017/11/21
- [Emacs-diffs] scratch/eudc-bbdb-3 f529b7d 07/15: EUDC: Fix issues reported by checkdoc, Thomas Fitzsimmons, 2017/11/21
- [Emacs-diffs] scratch/eudc-bbdb-3 262dce0 09/15: EUDC: Remove external BBDB function declarations, Thomas Fitzsimmons, 2017/11/21
- [Emacs-diffs] scratch/eudc-bbdb-3 69e8cb9 15/15: EUDC: Port eudc-export.el to BBDB >= 3, Thomas Fitzsimmons, 2017/11/21
- [Emacs-diffs] scratch/eudc-bbdb-3 f1ab95d 12/15: EUDC: Require bbdb, bbdb-com without NOERROR, Thomas Fitzsimmons, 2017/11/21
- [Emacs-diffs] scratch/eudc-bbdb-3 c80692b 05/15: EUDC: Keep phone and address lists in BBDB-order, Thomas Fitzsimmons, 2017/11/21
- [Emacs-diffs] scratch/eudc-bbdb-3 05257b9 10/15: EUDC: Port BBDB backend to BBDB >= 3, Thomas Fitzsimmons, 2017/11/21
- [Emacs-diffs] scratch/eudc-bbdb-3 6e680a7 06/15: EUDC: Print multiple BBDB addresses properly, Thomas Fitzsimmons, 2017/11/21