2014-11-27 Lars Magne Ingebrigtsen <larsi@gnus.org>
+ * net/eww.el (eww): Record the new URL immediately, so that if the
+ HTTP fetch fails, we have the right URL in the buffer.
+
* dom.el (dom-pp): New function.
2014-11-17 Eli Zaretskii <eliz@gnu.org>
(replace-regexp-in-string " " "+" url))))))
(unless (eq major-mode 'eww-mode)
(eww-setup-buffer)
+ (plist-put eww-data :url url)
(eww-update-header-line-format)
(let ((inhibit-read-only t))
(insert (format "Loading %s..." url))))
(doc-view-mode)))
(goto-char (point-min)))
-(defun eww-setup-buffer (&optional buffer)
- (switch-to-buffer
- (if (buffer-live-p buffer)
- buffer
- (get-buffer-create "*eww*")))
+(defun eww-setup-buffer ()
+ (switch-to-buffer (get-buffer-create "*eww*"))
(let ((inhibit-read-only t))
(remove-overlays)
(erase-buffer))