[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ebdb db53550 11/11: Protect against bug with timestamp/
From: |
Eric Abrahamsen |
Subject: |
[elpa] externals/ebdb db53550 11/11: Protect against bug with timestamp/creation-dates |
Date: |
Sun, 22 Oct 2017 13:17:03 -0400 (EDT) |
branch: externals/ebdb
commit db53550d813b205146b2a104a6ca4c5b90c97c43
Author: Eric Abrahamsen <address@hidden>
Commit: Eric Abrahamsen <address@hidden>
Protect against bug with timestamp/creation-dates
The real solution will involve fixing initialize-instance for records
so that the timestamp/creation-date are installed no matter what.
* ebdb-format.el (ebdb-fmt-collect-fields): Stop-gap protection
against missing creation-date and timestamp fields.
* ebdb.el: Bump to 0.3.5
---
ebdb-format.el | 7 ++++++-
ebdb.el | 2 +-
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/ebdb-format.el b/ebdb-format.el
index 0ef16cf..e17fa29 100644
--- a/ebdb-format.el
+++ b/ebdb-format.el
@@ -250,7 +250,12 @@ FIELD-STRING1 FIELD-STRING2 ..)."
field-list
(mapcar #'cdr
(seq-remove
- (lambda (elt) (eql (car elt) 'name))
+ ;; The or (null (cdr elt)) is there to
+ ;; protect against an earlier bug with
+ ;; timestamps and creation-dates, it could
+ ;; be removed at some point.
+ (lambda (elt) (or (eql (car elt) 'name)
+ (null (cdr elt))))
(ebdb-record-current-fields record nil t)))))
f-class)
(with-slots (exclude include) fmt
diff --git a/ebdb.el b/ebdb.el
index 3fc86bb..26c3b67 100644
--- a/ebdb.el
+++ b/ebdb.el
@@ -2,7 +2,7 @@
;; Copyright (C) 2016-2017 Free Software Foundation, Inc.
-;; Version: 0.3.4
+;; Version: 0.3.5
;; Package-Requires: ((emacs "25.1") (cl-lib "0.5") (seq "2.15"))
;; Maintainer: Eric Abrahamsen <address@hidden>
- [elpa] externals/ebdb updated (aac31a3 -> db53550), Eric Abrahamsen, 2017/10/22
- [elpa] externals/ebdb c9acc38 04/11: Add ebdb-org-field-tags to ebdb-hash-extra-predicates, Eric Abrahamsen, 2017/10/22
- [elpa] externals/ebdb eee0868 03/11: Downcase all-completions string when searching, Eric Abrahamsen, 2017/10/22
- [elpa] externals/ebdb fd66ed0 05/11: Add optional "shortcut" arg to ebdb-prompt-for-db, Eric Abrahamsen, 2017/10/22
- [elpa] externals/ebdb db53550 11/11: Protect against bug with timestamp/creation-dates,
Eric Abrahamsen <=
- [elpa] externals/ebdb c56d9e2 02/11: Get ebdb-ispell working again, Eric Abrahamsen, 2017/10/22
- [elpa] externals/ebdb 121281d 01/11: Part one of migration from org-contacts, Eric Abrahamsen, 2017/10/22
- [elpa] externals/ebdb d4dbf34 07/11: New ebdb-record-change-name methods for strings, Eric Abrahamsen, 2017/10/22
- [elpa] externals/ebdb 59449b9 10/11: New defsubst ebdb-record-self, Eric Abrahamsen, 2017/10/22
- [elpa] externals/ebdb 2661406 09/11: Use cached record name string in cl-print-object, Eric Abrahamsen, 2017/10/22
- [elpa] externals/ebdb d806d7d 08/11: Compiler-inspired fixes, vol 335534, Eric Abrahamsen, 2017/10/22
- [elpa] externals/ebdb 90ff5d1 06/11: New MUA command for toggling record layout, Eric Abrahamsen, 2017/10/22