From 390d8b2cc8570146b802440f260826900f2dbd1d Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Fri, 10 Jun 2016 14:46:24 +0200 Subject: [PATCH] Fix possible compiler warning when excluding modes --- emacs/.emacs.d/init.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el index 24a31f2..a4bab9a 100644 --- a/emacs/.emacs.d/init.el +++ b/emacs/.emacs.d/init.el @@ -122,7 +122,8 @@ MODE1 is enabled and vice-versa." (defun ,function-name () ,(concat "Toggle `" mode2-name "' according to the inverse of `" mode1-name "'.") - (,mode2 (or (not ,mode1) -1))) + (let ((mode ',mode2)) + (funcall mode (or (not ,mode1) -1)))) (add-hook ',(intern (concat mode1-name "-hook")) #',function-name))))