[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ebdb a25e1eb 06/15: Use values from "slots" in role fie
From: |
Eric Abrahamsen |
Subject: |
[elpa] externals/ebdb a25e1eb 06/15: Use values from "slots" in role field ebdb-read |
Date: |
Sun, 1 Apr 2018 06:02:46 -0400 (EDT) |
branch: externals/ebdb
commit a25e1eb35d45a6b3c8340cc04c0a2f2d150d2b5e
Author: Eric Abrahamsen <address@hidden>
Commit: Eric Abrahamsen <address@hidden>
Use values from "slots" in role field ebdb-read
* ebdb.el (ebdb-read): We should be allowing values in "slots" to
override the read process.
---
ebdb.el | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/ebdb.el b/ebdb.el
index eb0d396..cfb2e9f 100644
--- a/ebdb.el
+++ b/ebdb.el
@@ -1396,11 +1396,14 @@ first one."
(cl-call-next-method))
(cl-defmethod ebdb-read ((role (subclass ebdb-field-role)) &optional slots obj)
- (let ((org-id (if obj (slot-value obj 'org-uuid)
- (ebdb-record-uuid (ebdb-prompt-for-record nil
'ebdb-record-organization))))
- (mail (ebdb-with-exit
- (ebdb-read ebdb-default-mail-class nil
- (when obj (slot-value obj 'mail))))))
+ (let ((org-id (or (plist-get slots 'org-uuid)
+ (if obj (slot-value obj 'org-uuid)
+ (ebdb-record-uuid (ebdb-prompt-for-record
+ nil 'ebdb-record-organization)))))
+ (mail (or (plist-get slots 'mail)
+ (ebdb-with-exit
+ (ebdb-read ebdb-default-mail-class nil
+ (when obj (slot-value obj 'mail)))))))
(when mail
(setq slots (plist-put slots :mail mail)))
(setq slots (plist-put slots :org-uuid org-id))
- [elpa] externals/ebdb updated (9e7a96f -> d60338c), Eric Abrahamsen, 2018/04/01
- [elpa] externals/ebdb 261454d 03/15: Return results of ebdb-loop-with-exit in correct order, Eric Abrahamsen, 2018/04/01
- [elpa] externals/ebdb bbfdc70 04/15: Set mail priority on record creation, Eric Abrahamsen, 2018/04/01
- [elpa] externals/ebdb 5b4d834 01/15: Organization/role delete method needs to be an :around, Eric Abrahamsen, 2018/04/01
- [elpa] externals/ebdb 9ab7b56 07/15: Improvements to ebdb-edit-foo, Eric Abrahamsen, 2018/04/01
- [elpa] externals/ebdb a25e1eb 06/15: Use values from "slots" in role field ebdb-read,
Eric Abrahamsen <=
- [elpa] externals/ebdb 9bd965b 02/15: Simplify ebdb-with-record-edits, Eric Abrahamsen, 2018/04/01
- [elpa] externals/ebdb 4bb77e3 11/15: Add mail deletion behavior, Eric Abrahamsen, 2018/04/01
- [elpa] externals/ebdb 27a1fa5 05/15: Move field manipulation "convenience logic" into ebdb-com, Eric Abrahamsen, 2018/04/01
- [elpa] externals/ebdb 70754b8 08/15: Fix unnecessary code in ebdb-follow-related, Eric Abrahamsen, 2018/04/01
- [elpa] externals/ebdb c3e06ee 12/15: Use quoted field class, Eric Abrahamsen, 2018/04/01
- [elpa] externals/ebdb a7e88d4 14/15: Update copyright dates, Eric Abrahamsen, 2018/04/01
- [elpa] externals/ebdb 7a5ce18 13/15: Handle mail priority after customization edits, Eric Abrahamsen, 2018/04/01
- [elpa] externals/ebdb d60338c 15/15: Bump version to 0.5, Eric Abrahamsen, 2018/04/01
- [elpa] externals/ebdb b323307 09/15: Add a "follow related" action to role fields, Eric Abrahamsen, 2018/04/01
- [elpa] externals/ebdb dd2f73c 10/15: Change behavior of mail insertion, Eric Abrahamsen, 2018/04/01