[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ebdb 94c7c6b 039/350: Provide ebdb-load guards in a few
From: |
Eric Abrahamsen |
Subject: |
[elpa] externals/ebdb 94c7c6b 039/350: Provide ebdb-load guards in a few more places |
Date: |
Mon, 14 Aug 2017 11:45:58 -0400 (EDT) |
branch: externals/ebdb
commit 94c7c6bf5977be9dd04a6ec9bbb540776e8ddb8b
Author: Eric Abrahamsen <address@hidden>
Commit: Eric Abrahamsen <address@hidden>
Provide ebdb-load guards in a few more places
* ebdb-com.el (ebdb-completing-read-records): Make sure records are
loaded, if this is the point of entry.
* ebdb.el (ebdb-prompt-for-db): Ditto, though I'm less sure about this one.
---
ebdb-com.el | 2 ++
ebdb.el | 2 ++
2 files changed, 4 insertions(+)
diff --git a/ebdb-com.el b/ebdb-com.el
index 23b1bfa..6484f64 100644
--- a/ebdb-com.el
+++ b/ebdb-com.el
@@ -2227,6 +2227,8 @@ Obey `ebdb-completion-list'."
"Read and return list of records from the ebdb.
Completion is done according to `ebdb-completion-list'. If the user
just hits return, nil is returned. Otherwise, a valid response is forced."
+ (unless ebdb-record-tracker
+ (ebdb-load))
(let* ((completion-ignore-case t)
(string (completing-read prompt ebdb-hashtable
'ebdb-completion-predicate t)))
diff --git a/ebdb.el b/ebdb.el
index 91bed87..0656bc2 100644
--- a/ebdb.el
+++ b/ebdb.el
@@ -3229,6 +3229,8 @@ Returns a list of (\"label\" slot . field-class)."
(list choice (cons 'fields 'ebdb-field-user-simple)))))
(defun ebdb-prompt-for-db (&optional db-list)
+ (unless (or db-list ebdb-db-list)
+ (ebdb-load))
(let* ((collection (or db-list ebdb-db-list))
(db-string
(ebdb-read-string "Choose a database: "
- [elpa] externals/ebdb 9a2fd46 022/350: Merge branch 'master' into buff, (continued)
- [elpa] externals/ebdb 9a2fd46 022/350: Merge branch 'master' into buff, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 16cdf2c 028/350: Provide protection for relations to unloaded records, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 50f39b6 031/350: Forgot about rmail, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb b0778d6 033/350: Make ebdb-display-records non-interactive, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 1ee7829 012/350: Don't auto-save unsynced databases, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb ac0b822 010/350: Switch to using kbd macro in keymap def, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 9edb0c0 015/350: Sort out catch-all version of ebdb-make-buffer-name, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 74ed051 009/350: Better customization setup for record fields, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb c803f1c 004/350: Forgot extra argument to ebdb-delete-i18n, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 22734d1 019/350: Select newly-cloned buffers, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 94c7c6b 039/350: Provide ebdb-load guards in a few more places,
Eric Abrahamsen <=
- [elpa] externals/ebdb 015bd25 038/350: New search command ebdb-search-record-class, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb f288cba 034/350: Use "d" prefix for record/database move commands, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 7721bf3 044/350: Mess with autoloads, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 7126d5d 027/350: Hash record uuids during the loading process, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 60aea3d 045/350: ebdb-create-record: set record class outside of interactive call, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb e178321 051/350: Trailing code in last commit, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb c212316 014/350: First commit of buffer improvements, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb dbd3559 042/350: Do away with ebdb-seen-uuids, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 7570ed9 040/350: Protect against non-present records in role delete method, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb c44b910 056/350: New ebdb-copy-mail-as-kill command, Eric Abrahamsen, 2017/08/14