From: Mark Wooding Date: Fri, 4 Apr 2008 20:13:18 +0000 (+0100) Subject: dot-emacs: Fix the eval-when-compile stanza. X-Git-Url: https://git.distorted.org.uk/~mdw/profile/commitdiff_plain/417dcddd244951d520987f103f4ff56bab5604c2?hp=daff679f79b28398cd1364041f091f0f245fc758 dot-emacs: Fix the eval-when-compile stanza. Firstly, it just wasn't spelt correctly! Secondly, it didn't include the cl macros, which are useful. (I henceforth permit the use of CL macros, but not functions, in dot-emacs.el, on condition that the expansions don't require CL functions.) Thirdly, fix mdw-regexps to quote its expansion. --- diff --git a/dot-emacs.el b/dot-emacs.el index 0f7cc5d..5d650cf 100644 --- a/dot-emacs.el +++ b/dot-emacs.el @@ -43,12 +43,14 @@ This may be at the expense of cool features.") ;;;----- Some general utilities --------------------------------------------- -(evan-when-compile (or (fboundp 'make-regexp) - (load "make-regexp"))) +(eval-when-compile + (unless (fboundp 'make-regexp) + (load "make-regexp")) + (require 'cl)) (defmacro mdw-regexps (&rest list) "Turn a LIST of strings into a single regular expression at compile-time." - (make-regexp list)) + `',(make-regexp list)) ;; --- Some error trapping --- ;;