diff options
| author | John Wiegley | 2005-05-27 02:15:36 +0000 |
|---|---|---|
| committer | John Wiegley | 2005-05-27 02:15:36 +0000 |
| commit | 9c041409339fbd92ca875ba034bcf8ca3410330e (patch) | |
| tree | 34a34c51f3848502ff2b3f778849373f9a93138f /lisp/eshell | |
| parent | 34204d803d55e8126575b53368de1826c33253fc (diff) | |
| download | emacs-9c041409339fbd92ca875ba034bcf8ca3410330e.tar.gz emacs-9c041409339fbd92ca875ba034bcf8ca3410330e.zip | |
(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.
Diffstat (limited to 'lisp/eshell')
| -rw-r--r-- | lisp/eshell/esh-io.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/eshell/esh-io.el b/lisp/eshell/esh-io.el index 6944770dbc9..1161013cf58 100644 --- a/lisp/eshell/esh-io.el +++ b/lisp/eshell/esh-io.el | |||
| @@ -353,7 +353,8 @@ it defaults to `insert'." | |||
| 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 |