emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r101372: gnus-html.el (gnus-article-h


From: Katsumi Yamaoka
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r101372: gnus-html.el (gnus-article-html): Allow calling without specifying the handle. In that case, dissect the buffer first.
Date: Mon, 06 Sep 2010 00:41:06 +0000
User-agent: Bazaar (2.0.3)

------------------------------------------------------------
revno: 101372
author: Lars Magne Ingebrigtsen <address@hidden>
committer: Katsumi Yamaoka <address@hidden>
branch nick: trunk
timestamp: Mon 2010-09-06 00:41:06 +0000
message:
  gnus-html.el (gnus-article-html): Allow calling without specifying the 
handle.  In that case, dissect the buffer first.
modified:
  lisp/gnus/ChangeLog
  lisp/gnus/gnus-html.el
=== modified file 'lisp/gnus/ChangeLog'
--- a/lisp/gnus/ChangeLog       2010-09-06 00:37:02 +0000
+++ b/lisp/gnus/ChangeLog       2010-09-06 00:41:06 +0000
@@ -1,5 +1,8 @@
 2010-09-05  Lars Magne Ingebrigtsen  <address@hidden>
 
+       * 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

=== modified file 'lisp/gnus/gnus-html.el'
--- a/lisp/gnus/gnus-html.el    2010-09-04 15:28:57 +0000
+++ b/lisp/gnus/gnus-html.el    2010-09-06 00:41:06 +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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]