From 22825b80f0346242b616d8aab5e9abbb80fe00c0 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 13 Mar 2016 15:13:33 -0400 Subject: [PATCH] Fix associate! unbound major-mode var check --- core/core-defuns.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/core-defuns.el b/core/core-defuns.el index 424d3afd8..69b5ea939 100644 --- a/core/core-defuns.el +++ b/core/core-defuns.el @@ -101,7 +101,8 @@ Examples: (defun ,hook-name () (when (and (if ,match (string-match-p ,match (buffer-file-name)) t) (or ,(not files) - (and (not ,mode) + (and (boundp ',mode) + (not ,mode) (narf/project-has-files ,@(-list files))))) (,mode 1))) ,@(if (and in (listp in))