[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/eshell/eshell.el
From: |
Kai Großjohann |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/eshell/eshell.el |
Date: |
Fri, 26 Jul 2002 16:40:53 -0400 |
Index: emacs/lisp/eshell/eshell.el
diff -c emacs/lisp/eshell/eshell.el:1.12 emacs/lisp/eshell/eshell.el:1.13
*** emacs/lisp/eshell/eshell.el:1.12 Sat Feb 16 02:10:35 2002
--- emacs/lisp/eshell/eshell.el Fri Jul 26 16:40:52 2002
***************
*** 352,364 ****
The buffer used for Eshell sessions is determined by the value of
`eshell-buffer-name'. If there is already an Eshell session active in
that buffer, Emacs will simply switch to it. Otherwise, a new session
! will begin. A new session is always created if the prefix
! argument ARG is specified. Returns the buffer selected (or created)."
(interactive "P")
(assert eshell-buffer-name)
! (let ((buf (if arg
! (generate-new-buffer eshell-buffer-name)
! (get-buffer-create eshell-buffer-name))))
;; Simply calling `pop-to-buffer' will not mimic the way that
;; shell-mode buffers appear, since they always reuse the same
;; window that that command was invoked from. To achieve this,
--- 352,371 ----
The buffer used for Eshell sessions is determined by the value of
`eshell-buffer-name'. If there is already an Eshell session active in
that buffer, Emacs will simply switch to it. Otherwise, a new session
! will begin. A numeric prefix arg (as in `C-u 42 M-x eshell RET')
! switches to the session with that number, creating it if necessary. A
! nonnumeric prefix arg means to create a new session. Returns the
! buffer selected (or created)."
(interactive "P")
(assert eshell-buffer-name)
! (let ((buf (cond ((numberp arg)
! (get-buffer-create (format "%s<%d>"
! eshell-buffer-name
! arg)))
! (arg
! (generate-new-buffer eshell-buffer-name))
! (t
! (get-buffer-create eshell-buffer-name)))))
;; Simply calling `pop-to-buffer' will not mimic the way that
;; shell-mode buffers appear, since they always reuse the same
;; window that that command was invoked from. To achieve this,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] Changes to emacs/lisp/eshell/eshell.el,
Kai Großjohann <=