summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorLars Magne Ingebrigtsen <larsi@gnus.org>2012-01-07 11:46:47 +0000
committerKatsumi Yamaoka <yamaoka@jpl.org>2012-01-07 11:46:47 +0000
commitedd9679c3707f045d8bea911bc657ff367096bc3 (patch)
tree9c00b1db4ee0f7082fb56bbe63db601ca399ab0c /lisp
parent069d2b507080e2cb2b4f9ed112c9b7d8c3f2dc22 (diff)
downloademacs-edd9679c3707f045d8bea911bc657ff367096bc3.tar.gz
shr.el (shr-visit-file): Move point to the beginning of the buffer after rendering.
Diffstat (limited to 'lisp')
-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 13bae6f5eaa..630184a60c5 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,5 +1,10 @@
2012-01-07 Lars Magne Ingebrigtsen <larsi@gnus.org>
+ * shr.el (shr-visit-file): Move point to the beginning of the buffer
+ after rendering.
+
+2012-01-07 Lars Magne Ingebrigtsen <larsi@gnus.org>
+
* 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 d4d8f7dd31e..969d893c2d4 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)