From e76e4a1f75bd9726a83c982a5731d69937e1d188 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 28 Jun 2018 12:31:37 +0200 Subject: [PATCH] Fix void-variable errors from defer-until! macro --- core/core-lib.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/core-lib.el b/core/core-lib.el index 76933d046..09f897c86 100644 --- a/core/core-lib.el +++ b/core/core-lib.el @@ -226,12 +226,12 @@ MATCH is a string regexp. Only entries that match it will be included." "Run BODY when CONDITION is true (checks on `after-load-functions'). Meant to serve as a predicated alternative to `after!'." (declare (indent defun) (debug t)) - `(if ,(cadr targets) + `(if ,condition (progn ,@body) ,(let ((fun (gensym "doom|delay-form-"))) `(progn (fset ',fun (lambda (&rest args) - (when ,(or (car (cdr-safe targets)) t) + (when ,(or condition t) (remove-hook 'after-load-functions #',fun) (unintern ',fun nil) (ignore args)