aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Magne Ingebrigtsen2014-11-03 23:58:02 +0100
committerLars Magne Ingebrigtsen2014-11-03 23:58:02 +0100
commitb0481eb966fc09380fe0ea0ad4db910e5f28ef17 (patch)
tree23f6ea7cccc9bc7781924263a517e8f2ca19c370
parent1ca31e8cbd1523443a235a7144a8bf78123f7dd5 (diff)
downloademacs-b0481eb966fc09380fe0ea0ad4db910e5f28ef17.tar.gz
emacs-b0481eb966fc09380fe0ea0ad4db910e5f28ef17.zip
eww point positioning tweak
(eww-display-html): Don't leave point inside forms.
-rw-r--r--lisp/ChangeLog1
-rw-r--r--lisp/net/eww.el7
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index ec62f4df58b..77652d7d6bb 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,6 +1,7 @@
12014-11-03 Lars Magne Ingebrigtsen <larsi@gnus.org> 12014-11-03 Lars Magne Ingebrigtsen <larsi@gnus.org>
2 2
3 * net/eww.el (eww-score-readability): Parse SVC images correctly. 3 * net/eww.el (eww-score-readability): Parse SVC images correctly.
4 (eww-display-html): Don't leave point inside forms.
4 5
5 * net/shr.el: Ditto. 6 * net/shr.el: Ditto.
6 7
diff --git a/lisp/net/eww.el b/lisp/net/eww.el
index 0f074696404..1eb00d302d5 100644
--- a/lisp/net/eww.el
+++ b/lisp/net/eww.el
@@ -300,7 +300,12 @@ word(s) will be searched for via `eww-search-prefix'."
300 (when point 300 (when point
301 (goto-char point)))) 301 (goto-char point))))
302 (t 302 (t
303 (goto-char (point-min))))) 303 (goto-char (point-min))
304 ;; Don't leave point inside forms, because the normal eww
305 ;; commands aren't available there.
306 (while (and (not (eobp))
307 (get-text-property (point) 'eww-form))
308 (forward-line 1)))))
304 (setq eww-current-url url 309 (setq eww-current-url url
305 eww-history-position 0) 310 eww-history-position 0)
306 (eww-update-header-line-format))) 311 (eww-update-header-line-format)))