comparison 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
comparison
equal deleted inserted replaced
62785:c20ea23d0a24 62786:dc758ba35d6c
351 (point-marker)))))) 351 (point-marker))))))
352 352
353 ((or (bufferp target) 353 ((or (bufferp target)
354 (and (boundp 'eshell-buffer-shorthand) 354 (and (boundp 'eshell-buffer-shorthand)
355 (symbol-value 'eshell-buffer-shorthand) 355 (symbol-value 'eshell-buffer-shorthand)
356 (symbolp target))) 356 (symbolp target)
357 (not (memq target '(t nil)))))
357 (let ((buf (if (bufferp target) 358 (let ((buf (if (bufferp target)
358 target 359 target
359 (get-buffer-create 360 (get-buffer-create
360 (symbol-name target))))) 361 (symbol-name target)))))
361 (with-current-buffer buf 362 (with-current-buffer buf