aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2013-10-15 18:30:55 -0700
committerGlenn Morris2013-10-15 18:30:55 -0700
commit62ad85e6af83a70576642219bef4d147410d2f73 (patch)
treea22d79fc1012e80f4fd7e9c551138db2836b028e
parent0fb17a18b99218a981dcf8501734f8cc2efd2ed6 (diff)
downloademacs-62ad85e6af83a70576642219bef4d147410d2f73.tar.gz
emacs-62ad85e6af83a70576642219bef4d147410d2f73.zip
* net/eww.el (eww-render): Always set eww-current-url, and update header line.
(eww-display-html): ... Rather than just doing it here. Fixes: debbugs:15622
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/net/eww.el9
2 files changed, 12 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index ec92c2b5c29..50ef17cfef1 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12013-10-16 Glenn Morris <rgm@gnu.org>
2
3 * net/eww.el (eww-render): Always set eww-current-url,
4 and update header line. (Bug#15622)
5 (eww-display-html): ... Rather than just doing it here.
6
12013-10-15 Eli Zaretskii <eliz@gnu.org> 72013-10-15 Eli Zaretskii <eliz@gnu.org>
2 8
3 * menu-bar.el (tty-menu-navigation-map): Bind mouse wheels to TTY 9 * menu-bar.el (tty-menu-navigation-map): Bind mouse wheels to TTY
diff --git a/lisp/net/eww.el b/lisp/net/eww.el
index e67d9c5a25c..573715e8fcf 100644
--- a/lisp/net/eww.el
+++ b/lisp/net/eww.el
@@ -160,7 +160,9 @@ word(s) will be searched for via `eww-search-prefix'."
160 (eww-display-image)) 160 (eww-display-image))
161 (t 161 (t
162 (eww-display-raw))) 162 (eww-display-raw)))
163 (setq eww-history-position 0) 163 (setq eww-current-url url
164 eww-history-position 0)
165 (eww-update-header-line-format)
164 (cond 166 (cond
165 (point 167 (point
166 (goto-char point)) 168 (goto-char point))
@@ -212,8 +214,6 @@ word(s) will be searched for via `eww-search-prefix'."
212 'base (list (cons 'href url)) 214 'base (list (cons 'href url))
213 (libxml-parse-html-region (point) (point-max))))) 215 (libxml-parse-html-region (point) (point-max)))))
214 (eww-setup-buffer) 216 (eww-setup-buffer)
215 (setq eww-current-url url)
216 (eww-update-header-line-format)
217 (let ((inhibit-read-only t) 217 (let ((inhibit-read-only t)
218 (after-change-functions nil) 218 (after-change-functions nil)
219 (shr-width nil) 219 (shr-width nil)
@@ -266,6 +266,8 @@ word(s) will be searched for via `eww-search-prefix'."
266 (setq header-line-format 266 (setq header-line-format
267 (replace-regexp-in-string 267 (replace-regexp-in-string
268 "%" "%%" 268 "%" "%%"
269 ;; FIXME? Title can be blank. Default to, eg, last component
270 ;; of url?
269 (format-spec eww-header-line-format 271 (format-spec eww-header-line-format
270 `((?u . ,eww-current-url) 272 `((?u . ,eww-current-url)
271 (?t . ,eww-current-title))))) 273 (?t . ,eww-current-title)))))
@@ -369,6 +371,7 @@ word(s) will be searched for via `eww-search-prefix'."
369 "Mode for browsing the web. 371 "Mode for browsing the web.
370 372
371\\{eww-mode-map}" 373\\{eww-mode-map}"
374 ;; FIXME? This seems a strange default.
372 (set (make-local-variable 'eww-current-url) 'author) 375 (set (make-local-variable 'eww-current-url) 'author)
373 (set (make-local-variable 'browse-url-browser-function) 'eww-browse-url) 376 (set (make-local-variable 'browse-url-browser-function) 'eww-browse-url)
374 (set (make-local-variable 'after-change-functions) 'eww-process-text-input) 377 (set (make-local-variable 'after-change-functions) 'eww-process-text-input)