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

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

[elpa] externals/ebdb c38931f 2/8: Improve ebdb-prompt-for-record string


From: Eric Abrahamsen
Subject: [elpa] externals/ebdb c38931f 2/8: Improve ebdb-prompt-for-record string selection
Date: Mon, 25 Oct 2021 19:16:34 -0400 (EDT)

branch: externals/ebdb
commit c38931f2c99e2e5314b05e93011fa0289e598fef
Author: Eric Abrahamsen <eric@ericabrahamsen.net>
Commit: Eric Abrahamsen <eric@ericabrahamsen.net>

    Improve ebdb-prompt-for-record string selection
    
    * ebdb.el (ebdb-prompt-for-record): Draw all available names from
    `ebdb-record-alt-names', not just `ebdb-string'.
---
 ebdb.el | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/ebdb.el b/ebdb.el
index 74916f5..92739fb 100644
--- a/ebdb.el
+++ b/ebdb.el
@@ -4557,13 +4557,12 @@ that class, or its subclasses.  If PROMPT is given, use 
that as
 the prompt."
   (let* ((recs (or records (ebdb-records)))
         (pairs
-         (mapcar
+         (mapcan
           (lambda (r)
-            ;; This is bad, doesn't take into account all the
-            ;; different strings that might be used to find a record.
-            (cons
-             (ebdb-string r)
-             (ebdb-record-uuid r)))
+            (mapcar
+             (lambda (s)
+               (cons s (ebdb-record-uuid r)))
+             (ebdb-record-alt-names r)))
           (if class
               (seq-filter
                (lambda (r)



reply via email to

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