[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] scratch/with-url 2415aae 5/8: Make reloading work again.
From: |
Lars Ingebrigtsen |
Subject: |
[Emacs-diffs] scratch/with-url 2415aae 5/8: Make reloading work again. |
Date: |
Sun, 22 Jan 2017 22:25:22 +0000 (UTC) |
branch: scratch/with-url
commit 2415aae767c830f8f3e054c9379b1e6ffb0e8d1c
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>
Make reloading work again.
---
lisp/net/eww.el | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/lisp/net/eww.el b/lisp/net/eww.el
index 85d7a8d..ca4fa43 100644
--- a/lisp/net/eww.el
+++ b/lisp/net/eww.el
@@ -283,7 +283,7 @@ word(s) will be searched for via `eww-search-prefix'."
(eww-setup-buffer)
(eww--fetch-url url))
-(cl-defun eww--fetch-url (url &key (method "GET") data)
+(cl-defun eww--fetch-url (url &key (method "GET") data point buffer encode)
;; Check whether the domain only uses "Highly Restricted" Unicode
;; IDNA characters. If not, transform to punycode to indicate that
;; there may be funny business going on.
@@ -300,7 +300,7 @@ word(s) will be searched for via `eww-search-prefix'."
(let ((buffer (current-buffer)))
(with-url (url :method method
:data data)
- (eww-render nil buffer)))))
+ (eww-render point buffer encode)))))
;;;###autoload (defalias 'browse-web 'eww)
@@ -883,8 +883,9 @@ network, but just re-display the HTML already fetched."
(error "No current HTML data")
(eww-display-html 'utf-8 url (plist-get eww-data :dom)
(point) (current-buffer)))
- (with-url (url)
- (eww-render point buffer encode)))))
+ (let ((inhibit-read-only t))
+ (erase-buffer)
+ (eww--fetch-url url :point point :buffer buffer :encode encode)))))
;; Form support.
- [Emacs-diffs] scratch/with-url updated (3322f8f -> 03b56ca), Lars Ingebrigtsen, 2017/01/22
- [Emacs-diffs] scratch/with-url f402e35 3/8: Heed the Cache-Control header, Lars Ingebrigtsen, 2017/01/22
- [Emacs-diffs] scratch/with-url 3733456 2/8: Adapt to the new cache, Lars Ingebrigtsen, 2017/01/22
- [Emacs-diffs] scratch/with-url 1c59f8a 6/8: Get chunked decoding right, Lars Ingebrigtsen, 2017/01/22
- [Emacs-diffs] scratch/with-url 4fb09fd 4/8: Build fix, Lars Ingebrigtsen, 2017/01/22
- [Emacs-diffs] scratch/with-url bc505fd 1/8: Fix up some :wait issues, Lars Ingebrigtsen, 2017/01/22
- [Emacs-diffs] scratch/with-url b6d6172 7/8: Don't move point around when inserting images, Lars Ingebrigtsen, 2017/01/22
- [Emacs-diffs] scratch/with-url 2415aae 5/8: Make reloading work again.,
Lars Ingebrigtsen <=
- [Emacs-diffs] scratch/with-url 03b56ca 8/8: Respect the buffer parameter, Lars Ingebrigtsen, 2017/01/22