Variable: tramp-local-coding-commands

tramp-local-coding-commands is a variable defined in tramp-sh.el.gz.

Value

((b64 base64-encode-region base64-decode-region)
 (uu tramp-uuencode-region uudecode-decode-region)
 (pack
  "%p -e 'binmode STDIN; binmode STDOUT; print pack(q{u*}, join q{}, <>)' %n"
  "%p -e 'binmode STDIN; binmode STDOUT; print unpack(q{u*}, join q{}, <>)' %n"))

Documentation

List of local coding commands for inline transfer.

Each item is a list that looks like this:

(FORMAT ENCODING DECODING)

FORMAT is a symbol describing the encoding/decoding format. It can be b64 for base64 encoding, uu for uu encoding, or pack for simple packing.

ENCODING and DECODING can be strings, giving commands, or symbols, giving functions. If they are strings, then they can contain the "%s" format specifier. If that specifier is present, the input file name will be put into the command line at that spot. If the specifier is not present, the input should be read from standard input.

If they are functions, they will be called with two arguments, start and end of region, and are expected to replace the region contents with the encoded or decoded results, respectively.

Source Code

;; Defined in /usr/src/emacs/lisp/net/tramp-sh.el.gz
(defconst tramp-local-coding-commands
  `((b64 base64-encode-region base64-decode-region)
    (uu  tramp-uuencode-region uudecode-decode-region)
    (pack ,tramp-perl-pack ,tramp-perl-unpack))
  "List of local coding commands for inline transfer.
Each item is a list that looks like this:

\(FORMAT ENCODING DECODING)

FORMAT is a symbol describing the encoding/decoding format.  It can be
`b64' for base64 encoding, `uu' for uu encoding, or `pack' for simple packing.

ENCODING and DECODING can be strings, giving commands, or symbols,
giving functions.  If they are strings, then they can contain
the \"%s\" format specifier.  If that specifier is present, the input
file name will be put into the command line at that spot.  If the
specifier is not present, the input should be read from standard
input.

If they are functions, they will be called with two arguments, start
and end of region, and are expected to replace the region contents
with the encoded or decoded results, respectively.")