From: Mark Wooding Date: Mon, 9 Nov 2009 14:53:30 +0000 (+0000) Subject: el/dot-emacs.el: Add `indent' and `debug' declarations to macros. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/profile/commitdiff_plain/9e789ed540fb8ce154b581971b80d7ab307a061d?ds=sidebyside el/dot-emacs.el: Add `indent' and `debug' declarations to macros. This makes indentation and debugging work properly. Surprising, no? --- diff --git a/el/dot-emacs.el b/el/dot-emacs.el index b7a1cc2..248ce17 100644 --- a/el/dot-emacs.el +++ b/el/dot-emacs.el @@ -48,6 +48,8 @@ (eval-when-compile (defmacro mdw-regexps (&rest list) "Turn a LIST of strings into a single regular expression at compile-time." + (declare (indent nil) + (debug 0)) `',(make-regexp list)) ;; Some error trapping. @@ -57,6 +59,8 @@ (defmacro mdw-regexps (&rest list) (defmacro trap (&rest forms) "Execute FORMS without allowing errors to propagate outside." + (declare (indent 0) + (debug t)) `(condition-case err ,(if (cdr forms) (cons 'progn forms) (car forms)) (error (message "Error (trapped): %s in %s"