X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/ed7f1a6c5caaf4159125c08db5d18c5471fdd032..ac0215a325f4226b73fd650318349395a6d88835:/lisp/ielm.el diff --git a/lisp/ielm.el b/lisp/ielm.el index 4397ea0b41..d90800873a 100644 --- a/lisp/ielm.el +++ b/lisp/ielm.el @@ -1,6 +1,6 @@ ;;; ielm.el --- interaction mode for Emacs Lisp -;; Copyright (C) 1994, 2001-2011 Free Software Foundation, Inc. +;; Copyright (C) 1994, 2001-2013 Free Software Foundation, Inc. ;; Author: David Smith ;; Maintainer: FSF @@ -59,7 +59,7 @@ override the read-only-ness of IELM prompts is to call `comint-kill-whole-line' or `comint-kill-region' with no narrowing in effect. This way you will be certain that none of the remaining prompts will be accidentally messed up. You may -wish to put something like the following in your `.emacs' file: +wish to put something like the following in your init file: \(add-hook 'ielm-mode-hook (lambda () @@ -553,8 +553,6 @@ Customized bindings may be defined in `ielm-map', which currently contains: ;;; User command -;;;###autoload (add-hook 'same-window-buffer-names (purecopy "*ielm*")) - ;;;###autoload (defun ielm nil "Interactively evaluate Emacs Lisp expressions. @@ -565,7 +563,7 @@ Switches to the buffer `*ielm*', or creates it if it does not exist." (with-current-buffer (get-buffer-create "*ielm*") (unless (zerop (buffer-size)) (setq old-point (point))) (inferior-emacs-lisp-mode))) - (pop-to-buffer "*ielm*") + (switch-to-buffer "*ielm*") (when old-point (push-mark old-point)))) (provide 'ielm)