From c0b904afcaa9f7fd1e00e43bd3d131f246628d81 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 30 May 2018 13:13:46 +0200 Subject: [PATCH] Fix void-variable nose-mode error in python #628 Caused by associate! only doing a fboundp check on MODE, but not boundp, before trying to access its value. --- core/core-lib.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/core-lib.el b/core/core-lib.el index 4935f871e..2f306a227 100644 --- a/core/core-lib.el +++ b/core/core-lib.el @@ -355,7 +355,7 @@ The available conditions are: `(progn (defun ,hook-name () (when (and (fboundp ',mode) - (not ,mode) + (not (bound-and-true-p ,mode)) (and buffer-file-name (not (file-remote-p buffer-file-name))) ,(if match `(if buffer-file-name (string-match-p ,match buffer-file-name)) t) ,(if files (doom--resolve-path-forms files '(doom-project-root)) t)