Commit eb022c1e authored by Vasilij Schneidermann's avatar Vasilij Schneidermann Committed by Martin Rudalics
Browse files

In `ielm' use `pop-to-buffer-same-window' instead of `switch-to-buffer'

* lisp/ielm.el (ielm): Use `pop-to-buffer-same-window' instead of
parent 244a0086
...@@ -615,7 +615,7 @@ See `inferior-emacs-lisp-mode' for details." ...@@ -615,7 +615,7 @@ See `inferior-emacs-lisp-mode' for details."
(with-current-buffer (get-buffer-create "*ielm*") (with-current-buffer (get-buffer-create "*ielm*")
(unless (zerop (buffer-size)) (setq old-point (point))) (unless (zerop (buffer-size)) (setq old-point (point)))
(inferior-emacs-lisp-mode))) (inferior-emacs-lisp-mode)))
(switch-to-buffer "*ielm*") (pop-to-buffer-same-window "*ielm*")
(when old-point (push-mark old-point)))) (when old-point (push-mark old-point))))
(provide 'ielm) (provide 'ielm)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment