Commit eeef121a authored by Lars Ingebrigtsen's avatar Lars Ingebrigtsen
Browse files

eww bookmark window restoration

* net/eww.el (eww-bookmark-browse): Use `quit-window' to restore
the window configuration.
parent a50fa605
2013-12-24 Lars Ingebrigtsen <>
* net/eww.el (eww-bookmark-browse): Use `quit-window' to restore
the window configuration.
2013-12-24 Eli Zaretskii <>
* net/eww.el (eww-open-file): Ensure 3 slashes after "file:" when
......@@ -1086,8 +1086,6 @@ Differences in #targets are ignored."
;;; Bookmarks code
(defvar eww-bookmarks nil)
(defvar eww-previous-window-configuration nil)
(make-variable-buffer-local 'eww-previous-window-configuration)
(defun eww-add-bookmark ()
"Add the current page to the bookmarks."
......@@ -1132,7 +1130,6 @@ Differences in #targets are ignored."
(unless eww-bookmarks
(user-error "No bookmarks are defined"))
(set-buffer (get-buffer-create "*eww bookmarks*"))
(setq eww-previous-window-configuration (current-window-configuration))
(let ((format "%-40s %s")
(inhibit-read-only t)
......@@ -1191,8 +1188,6 @@ Differences in #targets are ignored."
(unless bookmark
(user-error "No bookmark on the current line"))
(when eww-previous-window-configuration
(set-window-configuration eww-previous-window-configuration))
(eww-browse-url (plist-get bookmark :url))))
(defun eww-next-bookmark ()
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