[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ebdb cc83f62 197/350: Add protection around ebdb-record
From: |
Eric Abrahamsen |
Subject: |
[elpa] externals/ebdb cc83f62 197/350: Add protection around ebdb-record-uuid |
Date: |
Mon, 14 Aug 2017 11:46:36 -0400 (EDT) |
branch: externals/ebdb
commit cc83f62f9bdb1814b52b50d83b7246942ae456f8
Author: Eric Abrahamsen <address@hidden>
Commit: Eric Abrahamsen <address@hidden>
Add protection around ebdb-record-uuid
* ebdb.el (ebdb-record-uuid): The slot value might not even be
present.
---
ebdb.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/ebdb.el b/ebdb.el
index 0745252..e293e29 100644
--- a/ebdb.el
+++ b/ebdb.el
@@ -1820,7 +1820,8 @@ If UNLOAD is non-nil, we should only unload RECORD, not
delete it
altogether.")
(cl-defmethod ebdb-record-uuid ((record ebdb-record))
- (slot-value (slot-value record 'uuid) 'uuid))
+ (if-let ((uuid-field (slot-value record 'uuid)))
+ (slot-value uuid-field 'uuid)))
(cl-defmethod ebdb-read ((class (subclass ebdb-record)) &optional slots)
"Create a new record from the values collected into SLOTS."
- [elpa] externals/ebdb 7040cad 247/350: Expand ebdb-helm to complete on mails as well, (continued)
- [elpa] externals/ebdb 7040cad 247/350: Expand ebdb-helm to complete on mails as well, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb a6bc423 249/350: Remove unused customization groups, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 4ded53d 250/350: All vCard lines should be delimited with CRLF, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb a776d37 248/350: Don't use copy-sequence plus add-text-properties on strings, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 96b113d 251/350: New functions for folding/unfolding long vCard lines, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb b52cdc0 265/350: Record-insert|delete-field methods can find their own slots, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb fcee6ab 267/350: Protect against no current record when redisplaying, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb f3b9525 269/350: Temporarily abandon having record-change-name accept strings, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 1a31515 274/350: Fixes to record loading, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 01262e3 277/350: Mark EBDB buffers as modified after edits, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb cc83f62 197/350: Add protection around ebdb-record-uuid,
Eric Abrahamsen <=
- [elpa] externals/ebdb 4f3db7f 195/350: Save match data around ebdb-parse-i18n, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb fcf0702 275/350: Mark EBDB buffers as unmodified after save, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 88f5e12 261/350: Fill out functionality of gnorb messages field, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb a81769c 272/350: Allow custom hash predicates, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb e80753a 264/350: Change ebdb-record-change-name to accept strings, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb d3e1485 283/350: Reinstate the notice record hook, and move notice-record method, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb d8bc159 290/350: Fairly embarrassing oversight in setting ebdb buffers modified, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb afe5495 279/350: Adjust indentation of multi-line field values, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb bbe407e 257/350: Code tweaks and re-arrangments, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 727eddb 262/350: Change databases' buffer-char slot into actual character, Eric Abrahamsen, 2017/08/14