*gnus-util.el (gnus-pp): Added optional stream to match pp API.
authorKevin Greiner <kevin.greiner@compsol.cc>
Wed, 29 Sep 2004 03:24:08 +0000 (03:24 +0000)
committerKevin Greiner <kevin.greiner@compsol.cc>
Wed, 29 Sep 2004 03:24:08 +0000 (03:24 +0000)
lisp/gnus-util.el

index bd0fe7e..8c26877 100644 (file)
@@ -661,11 +661,11 @@ Bind `print-quoted' and `print-readably' to t, and `print-length' and
 `print-level' to nil.  See also `gnus-bind-print-variables'."
   (gnus-bind-print-variables (prin1-to-string form)))
 
-(defun gnus-pp (form)
+(defun gnus-pp (form &optional stream)
   "Use `pp' on FORM in the current buffer.
 Bind `print-quoted' and `print-readably' to t, and `print-length' and
 `print-level' to nil.  See also `gnus-bind-print-variables'."
-  (gnus-bind-print-variables (pp form (current-buffer))))
+  (gnus-bind-print-variables (pp form (or stream (current-buffer)))))
 
 (defun gnus-pp-to-string (form)
   "The same as `pp-to-string'.