GNU bug report logs -
#19640
24.4: eww-restore-history destroys non-eww buffers
Previous Next
Reported by: Boruch Baum <boruch_baum <at> gmx.com>
Date: Tue, 20 Jan 2015 21:42:02 UTC
Severity: normal
Tags: fixed
Found in version 24.4
Fixed in version 25.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
defun eww-restore-history seems to need to start with a variation of
eww-setup-buffer:
(defun eww-restore-history (elem)
(if (get-buffer "eww")
(switch-to-buffer "eww")
(switch-to-buffer (get-buffer-create "eww"))
(remove-overlays)
(eww-mode)
;; MISSING:
;; restore/retain values of:
;; eww-history-position
;; eww-history
(setq-local eww-next-url nil)
(setq-local eww-previous-url nil)
(setq-local eww-up-url nil)
(setq-local eww-home-url nil)
(setq-local eww-start-url nil)
(setq-local eww-contents-url nil))
(let ((inhibit-read-only t))
(erase-buffer)
(insert (plist-get elem :text))
(setq eww-current-source (plist-get elem :source))
(setq eww-current-dom (plist-get elem :dom))
(goto-char (plist-get elem :point))
(setq eww-current-url (plist-get elem :url)
eww-current-title (plist-get elem :title))
(eww-update-header-line-format)))
--
hkp://keys.gnupg.net
CA45 09B5 5351 7C11 A9D1 7286 0036 9E45 1595 8BC0
[signature.asc (application/pgp-signature, attachment)]
This bug report was last modified 9 years and 210 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.