changeset 110221:f0d95837f863

gnus-html.el (gnus-article-html): Allow calling without specifying the handle. In that case, dissect the buffer first.
author Katsumi Yamaoka <yamaoka@jpl.org>
date Mon, 06 Sep 2010 00:41:06 +0000
parents b38765bfe949
children 9def4c1af9b9
files lisp/gnus/ChangeLog lisp/gnus/gnus-html.el
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/gnus/ChangeLog	Mon Sep 06 00:37:02 2010 +0000
+++ b/lisp/gnus/ChangeLog	Mon Sep 06 00:41:06 2010 +0000
@@ -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
--- a/lisp/gnus/gnus-html.el	Mon Sep 06 00:37:02 2010 +0000
+++ b/lisp/gnus/gnus-html.el	Mon Sep 06 00:41:06 2010 +0000
@@ -73,8 +73,10 @@
     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