# HG changeset patch # User John Wiegley # Date 1117159930 0 # Node ID dc758ba35d6cb657c094ede898ed6ee527470810 # Parent c20ea23d0a24dab3da0873c9c5c5f484e26a93dd (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. diff -r c20ea23d0a24 -r dc758ba35d6c lisp/eshell/esh-io.el --- 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