[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 52fab40: Call `eww-after-render-hook' in the correc
From: |
Lars Ingebrigtsen |
Subject: |
[Emacs-diffs] master 52fab40: Call `eww-after-render-hook' in the correct buffer |
Date: |
Mon, 01 Dec 2014 17:56:08 +0000 |
branch: master
commit 52fab40c160699d9ca45436c30433360d69f015a
Author: Ivan Shmakov <address@hidden>
Commit: Lars Magne Ingebrigtsen <address@hidden>
Call `eww-after-render-hook' in the correct buffer
Fixes: debbugs:19225
* net/eww.el (eww-render): Call `eww-after-render-hook' in the
correct buffer.
---
lisp/ChangeLog | 5 +++++
lisp/net/eww.el | 19 ++++++++-----------
2 files changed, 13 insertions(+), 11 deletions(-)
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 85f6b3b..375dd08 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2014-12-01 Ivan Shmakov <address@hidden>
+
+ * net/eww.el (eww-render): Call `eww-after-render-hook' in the
+ correct buffer (bug#19225).
+
2014-12-01 Lars Magne Ingebrigtsen <address@hidden>
* net/nsm.el (network-security-level): Change the default to `medium'.
diff --git a/lisp/net/eww.el b/lisp/net/eww.el
index 70427c1..73abd26 100644
--- a/lisp/net/eww.el
+++ b/lisp/net/eww.el
@@ -309,14 +309,14 @@ See the `eww-search-prefix' variable for the search
engine used."
((equal (car content-type) "application/pdf")
(eww-display-pdf))
((string-match-p "\\`image/" (car content-type))
- (eww-display-image buffer)
- (eww-update-header-line-format))
+ (eww-display-image buffer))
(t
- (eww-display-raw buffer encode)
- (eww-update-header-line-format)))
- (plist-put eww-data :url url)
- (setq eww-history-position 0)
- (run-hooks 'eww-after-render-hook))
+ (eww-display-raw buffer encode)))
+ (with-current-buffer buffer
+ (plist-put eww-data :url url)
+ (eww-update-header-line-format)
+ (setq eww-history-position 0)
+ (run-hooks 'eww-after-render-hook)))
(kill-buffer data-buffer))))
(defun eww-parse-headers ()
@@ -404,10 +404,7 @@ See the `eww-search-prefix' variable for the search engine
used."
(while (and (not (eobp))
(get-text-property (point) 'eww-form))
(forward-line 1)))))
- (plist-put eww-data :url url)
- (setq eww-history-position 0)
- (eww-size-text-inputs)
- (eww-update-header-line-format))))
+ (eww-size-text-inputs))))
(defun eww-handle-link (dom)
(let* ((rel (dom-attr dom 'rel))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 52fab40: Call `eww-after-render-hook' in the correct buffer,
Lars Ingebrigtsen <=