aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/gnus
diff options
context:
space:
mode:
authorLars Magne Ingebrigtsen <[email protected]>2012-01-07 11:46:47 +0000
committerKatsumi Yamaoka <[email protected]>2012-01-07 11:46:47 +0000
commitedd9679c3707f045d8bea911bc657ff367096bc3 (patch)
tree9c00b1db4ee0f7082fb56bbe63db601ca399ab0c /lisp/gnus
parent069d2b507080e2cb2b4f9ed112c9b7d8c3f2dc22 (diff)
shr.el (shr-visit-file): Move point to the beginning of the buffer after rendering.
Diffstat (limited to 'lisp/gnus')
-rw-r--r--lisp/gnus/ChangeLog5
-rw-r--r--lisp/gnus/shr.el3
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 13bae6f5ea..630184a60c 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,5 +1,10 @@
2012-01-07 Lars Magne Ingebrigtsen <[email protected]>
+ * shr.el (shr-visit-file): Move point to the beginning of the buffer
+ after rendering.
+
+2012-01-07 Lars Magne Ingebrigtsen <[email protected]>
+
* gnus-sum.el (gnus-summary-read-group): Document more parameters
(bug#9693).
(gnus-summary-setup-buffer): Document return value (bug#9697).
diff --git a/lisp/gnus/shr.el b/lisp/gnus/shr.el
index d4d8f7dd31..969d893c2d 100644
--- a/lisp/gnus/shr.el
+++ b/lisp/gnus/shr.el
@@ -134,7 +134,8 @@ cid: URL as the argument.")
(shr-insert-document
(with-temp-buffer
(insert-file-contents file)
- (libxml-parse-html-region (point-min) (point-max)))))
+ (libxml-parse-html-region (point-min) (point-max))))
+ (goto-char (point-min)))
;;;###autoload
(defun shr-insert-document (dom)