From: Lars Ingebrigtsen Date: Tue, 2 Feb 2016 04:43:35 +0000 (+1100) Subject: Clean up eww code slightly X-Git-Tag: emacs-25.0.91~122 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9c3142dcc09841a8bd2c25a2ddd3a9121a5015b6;p=emacs.git Clean up eww code slightly * eww.el (eww-browse-url): Clean up code slightly. --- diff --git a/lisp/net/eww.el b/lisp/net/eww.el index 29cde247e61..372b674ecd7 100644 --- a/lisp/net/eww.el +++ b/lisp/net/eww.el @@ -744,9 +744,9 @@ the like." ;;;###autoload (defun eww-browse-url (url &optional new-window) - (cond (new-window - (switch-to-buffer (generate-new-buffer "*eww*")) - (eww-mode))) + (when new-window + (switch-to-buffer (generate-new-buffer "*eww*")) + (eww-mode)) (eww url)) (defun eww-back-url ()