From 88e18783de5c6470a9b2f627cb5dd5b1f01e86eb Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Tue, 28 Jun 2016 17:54:31 -0700 Subject: [PATCH] Make defvar-setq checks boundp at runtime --- dotfiles/emacs.d/README.org | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dotfiles/emacs.d/README.org b/dotfiles/emacs.d/README.org index fae6f619..e2e661da 100644 --- a/dotfiles/emacs.d/README.org +++ b/dotfiles/emacs.d/README.org @@ -906,9 +906,9 @@ For composing functions with an apply so that they can be used with the ~:around (org-entry-get (get-text-property 1 'org-marker agenda-entry) "CREATED"))) (defmacro defvar-setq (name value) - (if (boundp name) - `(setq ,name ,value) - `(defvar ,name ,value))) + `(if (boundp ,name) + (setq ,name ,value) + (defvar ,name ,value))) (defun eval-region-or-last-sexp () (interactive)