From eeef121a18b0317cbe739e104c0b024289e4b851 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Tue, 24 Dec 2013 19:07:55 +0100 Subject: [PATCH] eww bookmark window restoration * net/eww.el (eww-bookmark-browse): Use `quit-window' to restore the window configuration. --- lisp/ChangeLog | 5 +++++ lisp/net/eww.el | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index f7caaf69358..c3185a37a71 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +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 diff --git a/lisp/net/eww.el b/lisp/net/eww.el index c5ac2f5c86c..02c93a0c677 100644 --- a/lisp/net/eww.el +++ b/lisp/net/eww.el @@ -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 () -- 2.39.2