stgit.el: Clarify documentation of stgit-capture-output
authorGustav Hållberg <gustav@virtutech.com>
Fri, 13 Mar 2009 03:50:27 +0000 (04:50 +0100)
committerKarl Hasselström <kha@treskal.com>
Fri, 13 Mar 2009 03:50:27 +0000 (04:50 +0100)
Signed-off-by: Gustav Hållberg <gustav@virtutech.com>
Signed-off-by: Karl Hasselström <kha@treskal.com>
contrib/stgit.el

index de466db..c8d9368 100644 (file)
@@ -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))