]> git.eshelyaron.com Git - emacs.git/commitdiff
shr.el (shr-visit-file): Move point to the beginning of the buffer after rendering.
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Sat, 7 Jan 2012 11:46:47 +0000 (11:46 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Sat, 7 Jan 2012 11:46:47 +0000 (11:46 +0000)
lisp/gnus/ChangeLog
lisp/gnus/shr.el

index 13bae6f5eaab7d8d202ccebd59e032eccd310636..630184a60c52d822c39f7ac0ee8daa9baa39e94e 100644 (file)
@@ -1,3 +1,8 @@
+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
index d4d8f7dd31ef0e5e4efc4dbda4ac9b8379832547..969d893c2d4f8ed04fa722f8f76c3f2efb9de0f2 100644 (file)
@@ -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)