Mercurial > emacs
changeset 62786:dc758ba35d6c
(eshell-get-target): If `eshell-buffer-shorthand' is in use, and the
target is `t' or `nil' (which are the most common values), don't
assume that the symbol target is a buffer.
author | John Wiegley <johnw@newartisans.com> |
---|---|
date | Fri, 27 May 2005 02:12:10 +0000 |
parents | c20ea23d0a24 |
children | c9d4d5551d6b |
files | lisp/eshell/esh-io.el |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/eshell/esh-io.el Fri May 27 02:11:39 2005 +0000 +++ b/lisp/eshell/esh-io.el Fri May 27 02:12:10 2005 +0000 @@ -353,7 +353,8 @@ ((or (bufferp target) (and (boundp 'eshell-buffer-shorthand) (symbol-value 'eshell-buffer-shorthand) - (symbolp target))) + (symbolp target) + (not (memq target '(t nil))))) (let ((buf (if (bufferp target) target (get-buffer-create