emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/ebdb 849159d 008/350: Add ebdb-search-database


From: Eric Abrahamsen
Subject: [elpa] externals/ebdb 849159d 008/350: Add ebdb-search-database
Date: Mon, 14 Aug 2017 11:45:52 -0400 (EDT)

branch: externals/ebdb
commit 849159d9493cc04309c19c985e755d759fe364fd
Author: Eric Abrahamsen <address@hidden>
Commit: Eric Abrahamsen <address@hidden>

    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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]