eww bookmark window restoration
authorLars Ingebrigtsen <larsi@gnus.org>
Tue, 24 Dec 2013 18:07:55 +0000 (19:07 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 24 Dec 2013 18:07:55 +0000 (19:07 +0100)
* net/eww.el (eww-bookmark-browse): Use `quit-window' to restore
the window configuration.

lisp/ChangeLog
lisp/net/eww.el

index f7caaf6..c3185a3 100644 (file)
@@ -1,3 +1,8 @@
+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
index c5ac2f5..02c93a0 100644 (file)
@@ -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))
   (eww-bookmark-mode)
   (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"))
     (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 ()