chiark / gitweb /
stgit.el: Use declare to hint the debugger and indentation
authorDavid Kågedal <davidk@lysator.liu.se>
Sun, 12 Jul 2009 17:05:33 +0000 (19:05 +0200)
committerKarl Hasselström <kha@treskal.com>
Sun, 12 Jul 2009 17:05:33 +0000 (19:05 +0200)
Signed-off-by: David Kågedal <davidk@lysator.liu.se>
Signed-off-by: Karl Hasselström <kha@treskal.com>
contrib/stgit.el

index ed6342ca2c4a626580492ad6b10b937f48df4c03..3ebbffb6bb862488ce430c25c3a40f96296807f3 100644 (file)
@@ -68,6 +68,8 @@ (defmacro stgit-capture-output (name &rest body)
   "Capture StGit output and, if there was any output, show it in a window
 at the end.
 Returns nil if there was no output."
+  (declare (debug ([&or stringp null] body))
+           (indent 1))
   `(let ((output-buf (get-buffer-create ,(or name "*StGit output*")))
          (stgit-dir default-directory)
          (inhibit-read-only t))
@@ -82,7 +84,6 @@ (defmacro stgit-capture-output (name &rest body)
        (setq buffer-read-only t)
        (if (< (point-min) (point-max))
            (display-buffer output-buf t)))))
-(put 'stgit-capture-output 'lisp-indent-function 1)
 
 (defun stgit-make-run-args (args)
   "Return a copy of ARGS with its elements converted to strings."