branch: externals/ebdb
commit fcee6ab0ae21eef6a31956bcdcf7ee30e2892ab0
Author: Eric Abrahamsen <[email protected]>
Commit: Eric Abrahamsen <[email protected]>
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))