diff options
| author | Lars Magne Ingebrigtsen | 2010-09-06 00:41:06 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2010-09-06 00:41:06 +0000 |
| commit | 29cd986b8bfa26321f4da05fcb8f245c8cce3fa8 (patch) | |
| tree | fc044cc044691093e282bea32552b24f53ada6ba | |
| parent | 29d31b5515f82d76050786891042bf0c0441b88e (diff) | |
| download | emacs-29cd986b8bfa26321f4da05fcb8f245c8cce3fa8.tar.gz emacs-29cd986b8bfa26321f4da05fcb8f245c8cce3fa8.zip | |
gnus-html.el (gnus-article-html): Allow calling without specifying the handle. In that case, dissect the buffer first.
| -rw-r--r-- | lisp/gnus/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/gnus/gnus-html.el | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 6a02792642d..742ffb5ec16 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2010-09-05 Lars Magne Ingebrigtsen <larsi@gnus.org> | 1 | 2010-09-05 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 2 | 2 | ||
| 3 | * gnus-html.el (gnus-article-html): Allow calling without specifying | ||
| 4 | the handle. In that case, dissect the buffer first. | ||
| 5 | |||
| 3 | * gnus-sum.el (gnus-set-mode-line): Don't pad the mode line string. | 6 | * gnus-sum.el (gnus-set-mode-line): Don't pad the mode line string. |
| 4 | 7 | ||
| 5 | * nnimap.el (nnimap-open-connection): Revert the change that would look | 8 | * nnimap.el (nnimap-open-connection): Revert the change that would look |
diff --git a/lisp/gnus/gnus-html.el b/lisp/gnus/gnus-html.el index a298fa0b63a..3b7d2527c99 100644 --- a/lisp/gnus/gnus-html.el +++ b/lisp/gnus/gnus-html.el | |||
| @@ -73,8 +73,10 @@ fit these criteria." | |||
| 73 | map)) | 73 | map)) |
| 74 | 74 | ||
| 75 | ;;;###autoload | 75 | ;;;###autoload |
| 76 | (defun gnus-article-html (handle) | 76 | (defun gnus-article-html (&optional handle) |
| 77 | (let ((article-buffer (current-buffer))) | 77 | (let ((article-buffer (current-buffer))) |
| 78 | (unless handle | ||
| 79 | (setq handle (mm-dissect-buffer t))) | ||
| 78 | (save-restriction | 80 | (save-restriction |
| 79 | (narrow-to-region (point) (point)) | 81 | (narrow-to-region (point) (point)) |
| 80 | (save-excursion | 82 | (save-excursion |