summaryrefslogtreecommitdiff
path: root/lisp/net/eww.el
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2016-02-02 15:57:07 +1100
committerLars Ingebrigtsen <larsi@gnus.org>2016-02-02 15:57:07 +1100
commit51362d68d14af92799c65198a690f769b04d456d (patch)
tree809c72f27f7fa3ab66702e3a22f79c2c5d8e33bd /lisp/net/eww.el
parentee0fbd854f452ef268de76892ed6b671c91f6d48 (diff)
downloademacs-51362d68d14af92799c65198a690f769b04d456d.tar.gz
Allow the user more control of popping up the eww window
* eww.el (eww): Use pop-to-buffer-same-window (suggested by Michael Heerdegen) (bug#22244).
Diffstat (limited to 'lisp/net/eww.el')
-rw-r--r--lisp/net/eww.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/net/eww.el b/lisp/net/eww.el
index 128752a62ef..147ba5fcda7 100644
--- a/lisp/net/eww.el
+++ b/lisp/net/eww.el
@@ -274,7 +274,7 @@ word(s) will be searched for via `eww-search-prefix'."
(setq url (concat url "/"))))
(setq url (concat eww-search-prefix
(replace-regexp-in-string " " "+" url))))))
- (switch-to-buffer
+ (pop-to-buffer-same-window
(if (eq major-mode 'eww-mode)
(current-buffer)
(get-buffer-create "*eww*")))