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

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

[elpa] externals/ebdb fcee6ab 267/350: Protect against no current record


From: Eric Abrahamsen
Subject: [elpa] externals/ebdb fcee6ab 267/350: Protect against no current record when redisplaying
Date: Mon, 14 Aug 2017 11:46:51 -0400 (EDT)

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

    Protect against no current record when redisplaying
    
    * ebdb-com.el (ebdb-redisplay-records): Code originally called
      `ebdb-current-record' with no prior checks, this could easily throw
      an error.
---
 ebdb-com.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ebdb-com.el b/ebdb-com.el
index 877695f..cafdfe4 100644
--- a/ebdb-com.el
+++ b/ebdb-com.el
@@ -855,7 +855,7 @@ displayed records."
             ;; case.  Check if record is present, or if its uuid has
             ;; been left behind by some previous redisplay.  If
             ;; record isn't in this buffer, then bail.
-            (setq local-record (cond ((equal r (ebdb-current-record))
+            (setq local-record (cond ((equal r (ignore-errors 
(ebdb-current-record)))
                                       (ebdb-current-record t))
                                      ((assoc r ebdb-records))
                                      ((assoc (ebdb-record-uuid r) 
ebdb-records))



reply via email to

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