Mercurial > emacs
diff lisp/eshell/esh-io.el @ 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 | a72129314db4 |
children | b89e30bcd2bb |
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