branch: externals/ebdb
commit 849159d9493cc04309c19c985e755d759fe364fd
Author: Eric Abrahamsen <[email protected]>
Commit: Eric Abrahamsen <[email protected]>
Add ebdb-search-database
* ebdb-com.el (ebdb-search-database): Select a database and show all
its records.
---
ebdb-com.el | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/ebdb-com.el b/ebdb-com.el
index c023439..289c5a0 100644
--- a/ebdb-com.el
+++ b/ebdb-com.el
@@ -1938,6 +1938,14 @@ in either the name(s), organization, address, phone,
mail, or xfields."
(ebdb-display-records unchanged-records fmt))
(ebdb-display-records dirty fmt))))
+;;;###autoload
+(defun ebdb-search-database (db &optional fmt)
+ "Select a database and show all records from that database."
+ (interactive
+ (list (ebdb-prompt-for-db)
+ (ebdb-formatter-prefix)))
+ (ebdb-display-records (slot-value db 'records) fmt))
+
(defun ebdb-search-prog (function &optional fmt)
"Search records using FUNCTION.
FUNCTION is called with one argument, the record, and should return