Allow calling without specifying the handle.
authorLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Sun, 5 Sep 2010 20:37:49 +0000 (22:37 +0200)
committerLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Sun, 5 Sep 2010 20:37:49 +0000 (22:37 +0200)
In that case, dissect the buffer first.

lisp/ChangeLog
lisp/gnus-html.el

index b3e2009..24ba343 100644 (file)
@@ -1,5 +1,8 @@
 2010-09-05  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
+       * gnus-html.el (gnus-article-html): Allow calling without specifying
+       the handle.  In that case, dissect the buffer first.
+
        * gnus-sum.el (gnus-set-mode-line): Don't pad the mode line string.
 
        * nnimap.el (nnimap-open-connection): Revert the change that would look
index a298fa0..3b7d252 100644 (file)
@@ -73,8 +73,10 @@ fit these criteria."
     map))
 
 ;;;###autoload
-(defun gnus-article-html (handle)
+(defun gnus-article-html (&optional handle)
   (let ((article-buffer (current-buffer)))
+    (unless handle
+      (setq handle (mm-dissect-buffer t)))
     (save-restriction
       (narrow-to-region (point) (point))
       (save-excursion