From: Mark Oteiza Date: Thu, 4 Feb 2016 17:48:35 +0000 (-0500) Subject: * lisp/net/eww.el (eww-switch-to-buffer): Use pop-to-buffer-same-window instead. X-Git-Tag: emacs-26.0.90~2739 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7a7164ea3eb7b3b7d2f7cfaec4ef73a90e14f735;p=emacs.git * lisp/net/eww.el (eww-switch-to-buffer): Use pop-to-buffer-same-window instead. --- diff --git a/lisp/net/eww.el b/lisp/net/eww.el index e8b8c63addb..6a5fb4bdcf0 100644 --- a/lisp/net/eww.el +++ b/lisp/net/eww.el @@ -1515,7 +1515,7 @@ If CHARSET is nil then use UTF-8." '(:annotation-function (lambda (buf) (with-current-buffer buf (format " %s" (eww-current-url))))))) - (switch-to-buffer + (pop-to-buffer-same-window (read-buffer "Switch to EWW buffer: " (cl-loop for buf in (nreverse (buffer-list)) if (with-current-buffer buf (derived-mode-p 'eww-mode))