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

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

[elpa] externals/ebdb 61403ee 7/7: Protect against databases with no rec


From: Eric Abrahamsen
Subject: [elpa] externals/ebdb 61403ee 7/7: Protect against databases with no records, bump to 0.6.1
Date: Fri, 14 Dec 2018 15:44:21 -0500 (EST)

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

    Protect against databases with no records, bump to 0.6.1
    
    * ebdb-com.el (ebdb-display-records): New databases will contain no
      records, don't assume there are any.
    * ebdb.el: Bump to 0.6.1
---
 ebdb-com.el | 3 ++-
 ebdb.el     | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/ebdb-com.el b/ebdb-com.el
index 2a9c95a..30c86ac 100644
--- a/ebdb-com.el
+++ b/ebdb-com.el
@@ -846,7 +846,8 @@ name based on the current major mode."
        ;; When appending, we want point to end up on the first of the
        ;; appended records.  Save the uuid, and later point a marker
        ;; at it.  Mostly useful for `follow-related'.
-       (target-record-uuid (ebdb-record-uuid (car records)))
+       (target-record-uuid (when records
+                             (ebdb-record-uuid (car records))))
        target-record-marker)
 
     (with-current-buffer (get-buffer-create target-buffer)
diff --git a/ebdb.el b/ebdb.el
index ca440ad..ee39ae0 100644
--- a/ebdb.el
+++ b/ebdb.el
@@ -2,7 +2,7 @@
 
 ;; Copyright (C) 2016-2018  Free Software Foundation, Inc.
 
-;; Version: 0.6
+;; Version: 0.6.1
 ;; Package-Requires: ((emacs "25.1") (cl-lib "0.5") (seq "2.15"))
 
 ;; Maintainer: Eric Abrahamsen <address@hidden>



reply via email to

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