]> git.eshelyaron.com Git - emacs.git/commitdiff
gnus-html.el (gnus-article-html): Allow calling without specifying the handle. In...
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Mon, 6 Sep 2010 00:41:06 +0000 (00:41 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Mon, 6 Sep 2010 00:41:06 +0000 (00:41 +0000)
lisp/gnus/ChangeLog
lisp/gnus/gnus-html.el

index 6a02792642d10842dbc2231175b0f212cbff8bac..742ffb5ec164dadd4a8c4986af611fb10115529e 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 a298fa0b63ac46a8f1c83617b779b885d1ff964d..3b7d2527c99f7d4f95aeacec4f5634f50e589f0a 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