From: Gustav Hållberg Date: Fri, 13 Mar 2009 03:50:27 +0000 (+0100) Subject: stgit.el: Clarify documentation of stgit-capture-output X-Git-Tag: v0.15-rc1~39 X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/commitdiff_plain/e558a4abe4756f98845f1b8443b8730f816bd4e3 stgit.el: Clarify documentation of stgit-capture-output Signed-off-by: Gustav Hållberg Signed-off-by: Karl Hasselström --- diff --git a/contrib/stgit.el b/contrib/stgit.el index de466db..c8d9368 100644 --- a/contrib/stgit.el +++ b/contrib/stgit.el @@ -65,7 +65,9 @@ Argument DIR is the repository path." buf)) (defmacro stgit-capture-output (name &rest body) - "Capture StGit output and show it in a window at the end." + "Capture StGit output and, if there was any output, show it in a window +at the end. +Returns nil if there was no output." `(let ((output-buf (get-buffer-create ,(or name "*StGit output*"))) (stgit-dir default-directory) (inhibit-read-only t))