From: Lars Magne Ingebrigtsen Date: Sun, 5 Sep 2010 20:37:49 +0000 (+0200) Subject: Allow calling without specifying the handle. X-Git-Url: http://cgit.sxemacs.org/?a=commitdiff_plain;h=3eb96855a60d07c86fd457a7b7692f6a43a4b7b3;p=gnus Allow calling without specifying the handle. In that case, dissect the buffer first. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index b3e2009b9..24ba3431f 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,8 @@ 2010-09-05 Lars Magne Ingebrigtsen + * 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 diff --git a/lisp/gnus-html.el b/lisp/gnus-html.el index a298fa0b6..3b7d2527c 100644 --- a/lisp/gnus-html.el +++ b/lisp/gnus-html.el @@ -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