From 49cc3530d9ca460feeb87e54523fa5a953d7bcc5 Mon Sep 17 00:00:00 2001 From: StrawberryTea Date: Fri, 5 Apr 2024 18:42:09 -0500 Subject: [PATCH] fix(corfu): prevent void-variable error Although this error will not be triggered by most people, since auth-source is loaded by a lot of packages, it can still happen if you are debugging your configuration (e.g. enabling/disabling modules one-by-one). --- modules/completion/corfu/config.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/completion/corfu/config.el b/modules/completion/corfu/config.el index a00c41749..ce954d400 100644 --- a/modules/completion/corfu/config.el +++ b/modules/completion/corfu/config.el @@ -28,7 +28,8 @@ use the minibuffer such as `query-replace'.") ('aggressive (not (or (bound-and-true-p mct--active) (bound-and-true-p vertico--input) - (eq (current-local-map) read-passwd-map) + (and (featurep 'auth-source) + (eq (current-local-map) read-passwd-map)) (and (featurep 'helm-core) (helm--alive-p)) (and (featurep 'ido) (ido-active)) (where-is-internal 'minibuffer-complete