From 9c041409339fbd92ca875ba034bcf8ca3410330e Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 27 May 2005 02:15:36 +0000 Subject: (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. --- lisp/eshell/esh-io.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lisp/eshell/esh-io.el') diff --git a/lisp/eshell/esh-io.el b/lisp/eshell/esh-io.el index 6944770dbc..1161013cf5 100644 --- a/lisp/eshell/esh-io.el +++ b/lisp/eshell/esh-io.el @@ -353,7 +353,8 @@ it defaults to `insert'." ((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 -- cgit v1.2.3