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

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

[elpa] externals/ebdb bbfdc70 04/15: Set mail priority on record creatio


From: Eric Abrahamsen
Subject: [elpa] externals/ebdb bbfdc70 04/15: Set mail priority on record creation
Date: Sun, 1 Apr 2018 06:02:44 -0400 (EDT)

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

    Set mail priority on record creation
    
    * ebdb.el (ebdb-read): Make the first mail address entered the
      priority address.
---
 ebdb.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ebdb.el b/ebdb.el
index 41b93da..9977154 100644
--- a/ebdb.el
+++ b/ebdb.el
@@ -2956,6 +2956,8 @@ If FIELD doesn't specify a year, use the current year."
                (ebdb-read ebdb-default-phone-class)))
        (address (ebdb-loop-with-exit
                  (ebdb-read ebdb-default-address-class))))
+    (when mail
+      (setf (slot-value (car mail) 'priority) 'primary))
     (setq slots (plist-put slots :mail mail))
     (setq slots (plist-put slots :phone phone))
     (setq slots (plist-put slots :address address))



reply via email to

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