Function: eshell-get-target

eshell-get-target is a byte-compiled function defined in esh-io.el.gz.

Signature

(eshell-get-target RAW-TARGET &optional MODE)

Documentation

Convert RAW-TARGET, which is a raw argument, into a valid output target.

MODE is either overwrite, append or insert; if it is omitted or nil, it defaults to insert.

Implementations

(eshell-get-target (RAW-TARGET marker) &optional MODE) in `esh-io.el'.

Convert a marker RAW-TARGET into a valid output target. This just returns RAW-TARGET.

(eshell-get-target (RAW-TARGET process) &optional MODE) in `esh-io.el'.

Convert a process RAW-TARGET into a valid output target. This just returns RAW-TARGET.

(eshell-get-target (RAW-TARGET symbol) &optional MODE) in `esh-io.el'.

Convert a symbol RAW-TARGET into a valid output target using MODE. This returns RAW-TARGET, with its value initialized to nil if MODE is `overwrite'.

(eshell-get-target (RAW-TARGET buffer) &optional MODE) in `esh-io.el'.

Convert a buffer RAW-TARGET into a valid output target using MODE. This returns a marker for that buffer.

(eshell-get-target (RAW-TARGET string) &optional MODE) in `esh-io.el'.

Convert a string RAW-TARGET into a valid output target using MODE. If TARGET is a virtual target (see `eshell-virtual-targets'), return an `eshell-generic-target' instance; otherwise, return a marker for a file named TARGET.

(eshell-get-target RAW-TARGET &optional MODE) in `esh-io.el'.

Undocumented

Source Code

;; Defined in /usr/src/emacs/lisp/eshell/esh-io.el.gz
(cl-defgeneric eshell-get-target (raw-target &optional _mode)
  "Convert RAW-TARGET, which is a raw argument, into a valid output target.
MODE is either `overwrite', `append' or `insert'; if it is omitted or nil,
it defaults to `insert'."
  (error "Invalid redirection target: %s" (eshell-stringify raw-target)))