branch: elpa/undo-fu-session
commit d638207bc6c7d9323bd812a42107c492899bffc1
Author: Campbell Barton <[email protected]>
Commit: Campbell Barton <[email protected]>
Fix potential void-variable error with epa-file-handler
Use bound-and-true-p to safely check if epa-file-handler is bound
before accessing it, preventing errors when epa-file is not loaded.
---
undo-fu-session.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/undo-fu-session.el b/undo-fu-session.el
index c56dcf8fd16..1fe25401714 100755
--- a/undo-fu-session.el
+++ b/undo-fu-session.el
@@ -642,7 +642,7 @@ Argument PENDING-LIST an `pending-undo-list' compatible
list."
((null filename)
nil)
((and undo-fu-session-ignore-encrypted-files
- epa-file-handler
+ (bound-and-true-p epa-file-handler)
(string-match-p (car epa-file-handler) filename))
nil)
((and undo-fu-session-ignore-temp-files (undo-fu-session--temp-file-check
filename))