chiark / gitweb /
el/dot-emacs.el: Add `indent' and `debug' declarations to macros.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 9 Nov 2009 14:53:30 +0000 (14:53 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 9 Nov 2009 15:10:53 +0000 (15:10 +0000)
This makes indentation and debugging work properly.  Surprising, no?

el/dot-emacs.el

index b7a1cc24009c72fb8fb0b7d916aa1c6aee78179b..248ce17c1556602e2bd8d08421a37c75638f66e9 100644 (file)
@@ -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"