+2013-10-16 Glenn Morris <rgm@gnu.org>
+
+ * net/eww.el (eww-render): Always set eww-current-url,
+ and update header line. (Bug#15622)
+ (eww-display-html): ... Rather than just doing it here.
+
2013-10-15 Eli Zaretskii <eliz@gnu.org>
* menu-bar.el (tty-menu-navigation-map): Bind mouse wheels to TTY
(eww-display-image))
(t
(eww-display-raw)))
- (setq eww-history-position 0)
+ (setq eww-current-url url
+ eww-history-position 0)
+ (eww-update-header-line-format)
(cond
(point
(goto-char point))
'base (list (cons 'href url))
(libxml-parse-html-region (point) (point-max)))))
(eww-setup-buffer)
- (setq eww-current-url url)
- (eww-update-header-line-format)
(let ((inhibit-read-only t)
(after-change-functions nil)
(shr-width nil)
(setq header-line-format
(replace-regexp-in-string
"%" "%%"
+ ;; FIXME? Title can be blank. Default to, eg, last component
+ ;; of url?
(format-spec eww-header-line-format
`((?u . ,eww-current-url)
(?t . ,eww-current-title)))))
"Mode for browsing the web.
\\{eww-mode-map}"
+ ;; FIXME? This seems a strange default.
(set (make-local-variable 'eww-current-url) 'author)
(set (make-local-variable 'browse-url-browser-function) 'eww-browse-url)
(set (make-local-variable 'after-change-functions) 'eww-process-text-input)