emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master eb022c1: In `ielm' use `pop-to-buffer-same-window'


From: Martin Rudalics
Subject: [Emacs-diffs] master eb022c1: In `ielm' use `pop-to-buffer-same-window' instead of `switch-to-buffer'
Date: Fri, 21 Aug 2015 12:20:43 +0000

branch: master
commit eb022c1e742eb56cf442c1e649cce3e45c18aa29
Author: Vasilij Schneidermann <address@hidden>
Commit: Martin Rudalics <address@hidden>

    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'.
---
 lisp/ielm.el |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lisp/ielm.el b/lisp/ielm.el
index 3c9908a..d5b2ba8 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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]