diff options
author | Vasilij Schneidermann <v.schneidermann@gmail.com> | 2015-08-21 14:19:49 +0200 |
---|---|---|
committer | Martin Rudalics <rudalics@gmx.at> | 2015-08-21 14:19:49 +0200 |
commit | eb022c1e742eb56cf442c1e649cce3e45c18aa29 (patch) | |
tree | 8d411ef51d64814e9e62fa45ed24fd73f3959f93 /lisp/ielm.el | |
parent | 244a00860b6fe1d6acf92948c5c0d1ef0f8426fa (diff) | |
download | emacs-eb022c1e742eb56cf442c1e649cce3e45c18aa29.tar.gz |
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
`switch-to-buffer'.
Diffstat (limited to 'lisp/ielm.el')
-rw-r--r-- | lisp/ielm.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/ielm.el b/lisp/ielm.el index 3c9908ac362..d5b2ba80c03 100644 --- a/lisp/ielm.el +++ b/lisp/ielm.el @@ -615,7 +615,7 @@ See `inferior-emacs-lisp-mode' for details." (with-current-buffer (get-buffer-create "*ielm*") (unless (zerop (buffer-size)) (setq old-point (point))) (inferior-emacs-lisp-mode))) - (switch-to-buffer "*ielm*") + (pop-to-buffer-same-window "*ielm*") (when old-point (push-mark old-point)))) (provide 'ielm) |