[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ebdb 6395a75 1/9: Manipulation of ebdb-db-list *still*
From: |
Eric Abrahamsen |
Subject: |
[elpa] externals/ebdb 6395a75 1/9: Manipulation of ebdb-db-list *still* in the wrong place |
Date: |
Sun, 18 Feb 2018 22:56:24 -0500 (EST) |
branch: externals/ebdb
commit 6395a75e301552db956ed091aa5bd868cd610255
Author: Eric Abrahamsen <address@hidden>
Commit: Eric Abrahamsen <address@hidden>
Manipulation of ebdb-db-list *still* in the wrong place
Despite d88895
* ebdb.el (ebdb-load): If a user were adding a database object
directly to the list, it would not have gotten added to
ebdb-db-list.
---
ebdb.el | 21 +++++++++++----------
1 file changed, 11 insertions(+), 10 deletions(-)
diff --git a/ebdb.el b/ebdb.el
index 6dca7b4..c3318db 100644
--- a/ebdb.el
+++ b/ebdb.el
@@ -4903,8 +4903,7 @@ important work is done by the `ebdb-db-load' method."
(when (yes-or-no-p (format "%s does not exist, create? " s))
(setq s (make-instance 'ebdb-db-file :file s :dirty t))
;; Try to get it on disk first.
- (ebdb-db-save s)))
- (cl-pushnew s ebdb-db-list))
+ (ebdb-db-save s))))
((null (and (eieio-object-p s)
(object-of-class-p s 'ebdb-db)))
(error "Source %s must be a filename or instance of `ebdb-db'."
s)))
@@ -4915,14 +4914,16 @@ important work is done by the `ebdb-db-load' method."
;; Remove this database's records from
;; `ebdb-record-tracker'.
(mapc #'delete-instance (slot-value s 'records))
- (sit-for 2)))
- (if (and
- (null ebdb-record-tracker)
- (or (and (bound-and-true-p bbdb-file)
- (file-exists-p bbdb-file))
- (file-exists-p (locate-user-emacs-file "bbdb" ".bbdb"))))
- ;; We're migrating from a version of BBDB.
- (ebdb-migrate-from-bbdb))
+ (sit-for 2))
+ (cl-pushnew s ebdb-db-list))
+
+ (when (and
+ (null ebdb-record-tracker)
+ (or (and (bound-and-true-p bbdb-file)
+ (file-exists-p bbdb-file))
+ (file-exists-p (locate-user-emacs-file "bbdb" ".bbdb"))))
+ ;; We're migrating from a version of BBDB.
+ (ebdb-migrate-from-bbdb))
(message "Initializing EBDB records...")
(if (fboundp 'make-thread)
(let ((thread (make-thread #'ebdb-initialize-threadwise)))
- [elpa] externals/ebdb updated (5735686 -> 2c71ef9), Eric Abrahamsen, 2018/02/18
- [elpa] externals/ebdb c07f50b 2/9: Get rid of ebdb-version, Eric Abrahamsen, 2018/02/18
- [elpa] externals/ebdb 6395a75 1/9: Manipulation of ebdb-db-list *still* in the wrong place,
Eric Abrahamsen <=
- [elpa] externals/ebdb 4796722 3/9: Fix mail sorting, Eric Abrahamsen, 2018/02/18
- [elpa] externals/ebdb 7f51a4e 5/9: Make explicit "full" formatter, Eric Abrahamsen, 2018/02/18
- [elpa] externals/ebdb 2c71ef9 9/9: Bump EBDB version to 0.4.3, Eric Abrahamsen, 2018/02/18
- [elpa] externals/ebdb 2a25117 6/9: New option ebdb-print-object-name, Eric Abrahamsen, 2018/02/18
- [elpa] externals/ebdb 9102219 7/9: Re-work ebdb-records-cite, Eric Abrahamsen, 2018/02/18
- [elpa] externals/ebdb 44cce48 8/9: Absorb helm-ebdb package, rename to ebdb-helm, Eric Abrahamsen, 2018/02/18
- [elpa] externals/ebdb 639694c 4/9: Docstring changes, Eric Abrahamsen, 2018/02/18