Commit b9ad615e authored by Ivan Shmakov's avatar Ivan Shmakov Committed by Lars Magne Ingebrigtsen
Browse files

eww history restoration fix

Fixes: debbugs:18550

* net/eww.el (eww-list-histories): Restore the history in the
correct buffer.
parent 2c3d1113
2014-12-07 Ivan Shmakov <ivan@siamics.net>
* net/eww.el (eww-list-histories): Restore the history in the
correct buffer (bug#18550).
2014-12-07 Lars Magne Ingebrigtsen <larsi@gnus.org>
 
* net/eww.el (eww-bookmark-prepare): Display URLs in first by
......
......@@ -1584,9 +1584,11 @@ Differences in #targets are ignored."
(interactive)
(when (null eww-history)
(error "No eww-histories are defined"))
(let ((eww-history-trans eww-history))
(let ((eww-history-trans eww-history)
(buffer (current-buffer)))
(set-buffer (get-buffer-create "*eww history*"))
(eww-history-mode)
(setq-local eww-current-buffer buffer)
(let ((inhibit-read-only t)
(domain-length 0)
(title-length 0)
......@@ -1615,7 +1617,10 @@ Differences in #targets are ignored."
(let ((history (get-text-property (line-beginning-position) 'eww-history)))
(unless history
(error "No history on the current line"))
(let ((buffer eww-current-buffer))
(quit-window)
(when buffer
(switch-to-buffer buffer)))
(eww-restore-history history)))
(defvar eww-history-mode-map
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment