]> git.eshelyaron.com Git - emacs.git/commitdiff
Allow the user more control of popping up the eww window
authorLars Ingebrigtsen <larsi@gnus.org>
Tue, 2 Feb 2016 04:57:07 +0000 (15:57 +1100)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 2 Feb 2016 04:57:07 +0000 (15:57 +1100)
* eww.el (eww): Use pop-to-buffer-same-window (suggested by
Michael Heerdegen) (bug#22244).

lisp/net/eww.el

index 128752a62ef6dfbfbc94161f1e0e18f5dc60bb5e..147ba5fcda79b31f42308d126eaa1cb8d89a313f 100644 (file)
@@ -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*")))