branch: externals/ebdb
commit 1ff0aa4635559e3dab328ae8c8d6060b251d283c
Author: Eric Abrahamsen <[email protected]>
Commit: Eric Abrahamsen <[email protected]>

    Fix broken ebdb-string method for mail alias fields
    
    * ebdb.el (ebdb-string): Dunno how I ever thought that would work.
---
 ebdb.el | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/ebdb.el b/ebdb.el
index d1db4b8..43516ce 100644
--- a/ebdb.el
+++ b/ebdb.el
@@ -2701,10 +2701,10 @@ record uuids.")
 
 (cl-defmethod ebdb-string ((field ebdb-field-mail-alias))
   (with-slots (alias address) field
-    (format (if address
-               "%s: %s"
-             "%s")
-           alias (ebdb-string address))))
+    (if address (format
+                "%s: %s"
+                alias (ebdb-string address))
+      alias)))
 
 (cl-defmethod ebdb-init-field ((field ebdb-field-mail-alias) record)
   (with-slots (alias address) field

Reply via email to