chiark
/
gitweb
/
~mdw
/
stgit
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
stgit.el: Use declare to hint the debugger and indentation
[stgit]
/
contrib
/
stgit.el
diff --git
a/contrib/stgit.el
b/contrib/stgit.el
index ed6342ca2c4a626580492ad6b10b937f48df4c03..3ebbffb6bb862488ce430c25c3a40f96296807f3 100644
(file)
--- a/
contrib/stgit.el
+++ b/
contrib/stgit.el
@@
-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."
"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))
`(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)))))
(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."
(defun stgit-make-run-args (args)
"Return a copy of ARGS with its elements converted to strings."