Skip to content

Commit

Permalink
Always display inferior process buffer after evaluation
Browse files Browse the repository at this point in the history
Previously, if the inferior process buffer is not being shown in any
window, one would have to manually bring it up after evaluating an
expression in order to see the results. With this change, the inferior
process buffer will always be displayed after evaluating an expression
so that one can alway see the results without having to bring up the
inferior process buffer.
  • Loading branch information
YorkZ committed Nov 17, 2016
1 parent 2f293bd commit 43b3b35
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js-comint.el
Expand Up @@ -193,8 +193,9 @@ is run).
nil inferior-js-program-arguments)
(inferior-js-mode)))
(setq inferior-js-buffer "*js*")
(if (not dont-switch-p)
(pop-to-buffer "*js*")))
(if dont-switch-p
(display-buffer "*js*")
(pop-to-buffer "*js*")))

;;;###autoload
(defun js-send-region (start end)
Expand Down

0 comments on commit 43b3b35

Please sign in to comment.