]> git.eshelyaron.com Git - emacs.git/commitdiff
Minor eww point placement fixup
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Mon, 1 Dec 2014 16:09:01 +0000 (17:09 +0100)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Mon, 1 Dec 2014 16:09:01 +0000 (17:09 +0100)
* net/eww.el (eww): Leave point in a place that doesn't cause
scrolling when displaying "Loading...".

lisp/ChangeLog
lisp/net/eww.el

index 0ec62db50106334fd4ff841133edf8aa1d1662e4..b736b2d561773b66bd0ab9211837ab10818fe150 100644 (file)
@@ -1,3 +1,8 @@
+2014-12-01  Lars Magne Ingebrigtsen  <larsi@gnus.org>
+
+       * net/eww.el (eww): Leave point in a place that doesn't cause
+       scrolling when displaying "Loading...".
+
 2014-12-01  Eric S. Raymond  <esr@snark.thyrsus.com>
 
        * vc/vc.el, vc-hooks.el, and all backends: API simplification;
index 2059b5ea78335d1424d19b8e0c7ade15a49f96ef..70427c16fdb14f0984580195e14eb4f7586107d4 100644 (file)
@@ -258,7 +258,8 @@ word(s) will be searched for via `eww-search-prefix'."
     (plist-put eww-data :url url)
     (eww-update-header-line-format)
     (let ((inhibit-read-only t))
-      (insert (format "Loading %s..." url))))
+      (insert (format "Loading %s..." url))
+      (goto-char (point-min))))
   (url-retrieve url 'eww-render
                (list url nil (current-buffer))))