+2013-12-24 Lars Ingebrigtsen <larsi@gnus.org>
+
+ * net/eww.el (eww-bookmark-browse): Use `quit-window' to restore
+ the window configuration.
+
2013-12-24 Eli Zaretskii <eliz@gnu.org>
* net/eww.el (eww-open-file): Ensure 3 slashes after "file:" when
;;; 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."
(unless eww-bookmarks
(user-error "No bookmarks are defined"))
(set-buffer (get-buffer-create "*eww bookmarks*"))
- (setq eww-previous-window-configuration (current-window-configuration))
(eww-bookmark-mode)
(let ((format "%-40s %s")
(inhibit-read-only t)
(unless bookmark
(user-error "No bookmark on the current line"))
(quit-window)
- (when eww-previous-window-configuration
- (set-window-configuration eww-previous-window-configuration))
(eww-browse-url (plist-get bookmark :url))))
(defun eww-next-bookmark ()