• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/emacs-92/emacs/lisp/net/

Lines Matching +defs:from +defs:encoding

53 ;; The current version of Tramp can be retrieved from the following URL:
81 (require 'format-spec) ;from Gnus 5.8, also in tar ball
86 (require 'password nil 'noerror)) ;from No Gnus, also in tar ball
141 ;; tramp-smb uses "smbclient" from Samba.
219 It has the same meaning like `bkup-backup-directory-info' from package
245 (defcustom tramp-encoding-shell
249 "*Use this program for encoding and decoding commands on the local host.
250 This shell is used to execute the encoding and decoding command on the
255 For encoding and deocding, commands like the following are executed:
260 variable `tramp-encoding-command-switch' for the \"-c\" part. Also, see the
261 variable `tramp-encoding-reads-stdin' to specify whether the commands read
270 (defcustom tramp-encoding-command-switch
271 (if (string-match "cmd\\.exe" tramp-encoding-shell)
274 "*Use this switch together with `tramp-encoding-shell' for local commands.
275 See the variable `tramp-encoding-shell' for more information."
279 (defcustom tramp-encoding-reads-stdin t
280 "*If non-nil, encoding commands read from standard input.
288 tramp-encoding-shell
290 This variable is similar to `tramp-encoding-shell', but it is only used
296 To use multi-hop methods from Windows, you also need suitable entries
299 This variable defaults to the value of `tramp-encoding-shell'."
309 ;;- "*Protect these characters from the remote shell.
645 (list (const tramp-encoding-command)
649 (list (const tramp-encoding-function)
787 names from FILE for completion. The following predefined FUNCTIONs exists:
905 "Regexp to match prompts from remote shell.
1036 shell from reading its init file."
1054 Should always start with \"^\". Derived from `tramp-prefix-format'."
1078 Derived from `tramp-postfix-single-method-format'."
1094 Derived from `tramp-postfix-multi-method-format'."
1110 Derived from `tramp-postfix-multi-hop-format'."
1130 Derived from `tramp-postfix-user-format'."
1156 Derived from `tramp-postfix-host-format'."
1291 LOCALNAME can also be negative, which means to count from the end. Ie, a
1512 "Overrides `process-connection-type' for connections from Tramp.
1590 (defvar tramp-encoding-command nil
1600 (defvar tramp-encoding-function nil
1756 ;; ;; These two use uu encoding.
1767 ;; "Perl program to use for encoding a file.
1776 ;; These two use base64 encoding.
1779 "Perl program to use for encoding a file.
1822 # by groups of 6 bits and convert back from binary to byte; then map into
1832 "Perl program to use for encoding a file.
1869 # Easy method: translate from chars to (pregenerated) six-bit packets, join,
1897 "A list of file types returned from the `stat' system call.
1913 "Whether to process echoes from the remote shell.")
2015 This function expects to be called from the tramp buffer only!"
2291 ;; "/some/target" part from it.
2556 ;; FIXME: extract the proper text from chmod's stderr.
2726 ;; Otherwise, remove any trailing slash from localname component.
2770 ;; Maybe something could be adapted from
2811 ;; Remove from list
2923 ;; Otherwise, use tramp from local system.
2939 ;; Otherwise, use tramp from local system.
3361 ;; Code stolen mainly from dired-aux.el.
3532 "Cut off unnecessary drive letter from file NAME.
3577 ;; use a user name from the config file.
3645 ;; Asynchronous processes are far from being perfect. But it works at least
3763 (when infile (error "Implementation does not handle input from file"))
3791 (rem-enc (tramp-get-remote-encoding multi-method method user host))
3793 (loc-enc (tramp-get-local-encoding multi-method method user host))
3806 ;; Use inline encoding for file transfer.
3842 ;; line from the output here. Go to point-max,
4041 (rem-enc (tramp-get-remote-encoding multi-method method user host))
4043 (loc-enc (tramp-get-local-encoding multi-method method user host))
4052 ;; variable. This approach was snarfed from ange-ftp.el.
4056 ;; use an encoding function, but currently we use it always
4063 ;; modtime data to be clobbered from the temp file. We call
4080 ;; program. If so, we call it. Otherwise, both encoding and
4082 ;; _also_ specifies an encoding function, then that is used for
4083 ;; encoding the contents of the tmp file.
4097 ;; Use encoding function or command.
4126 (error (concat "Cannot write to `%s', local encoding"
4167 (concat "Method `%s' should specify both encoding and "
4172 (error "Buffer has changed from `%s' to `%s'"
4177 ;; from (buffer-file-name), f.e. if `file-precious-flag' is set.
4234 ;; This function is used from `tramp-completion-file-name-handler' functions
4849 ;; Taken from gnus/netrc.el
5237 ;; Remove all ~/foo directories from dirlist. In Emacs 20,
5265 "Sets the remote environment VAR to existing directories from DIRLIST.
5433 ;; prompts from the remote host. See the variable
5569 "Wait for output from the shell and perform one action."
5572 (tramp-message 9 "Waiting 60s for prompt from remote shell")
5582 (tramp-message 10 "Looking for regexp \"%s\" from remote shell"
5594 (tramp-message 9 "Waiting for prompts from remote shell")
5611 "Wait for output from the shell and perform one action."
5614 (tramp-message 9 "Waiting 60s for prompt from remote shell")
5625 (tramp-message 10 "Looking for regexp \"%s\" from remote shell"
5635 (tramp-message 9 "Waiting for prompts from remote shell")
5872 ;; name is different than the "original" name (or different from
5878 This will use telnet to log in as u1 to h1, then use rsh from there to
6023 "Wait for a REGEXP to appear from process PROC within TIMEOUT seconds.
6067 "Wait for the shell prompt to appear from process PROC within TIMEOUT seconds.
6163 ;; Check whether the remote host suffers from buggy `send-process-string'.
6388 ;; Find the right encoding/decoding commands to use.
6391 (tramp-find-inline-encoding multi-method method user host))
6392 ;; If encoding/decoding command are given, test to see if they work.
6395 (let ((rem-enc (tramp-get-remote-encoding multi-method method user host))
6402 "Must give both decoding and encoding command in method definition"))
6406 "Checking to see if encoding/decoding commands work on remote host...")
6414 (error "Remote host cannot execute de/encoding commands. See buffer `%s' for details"
6418 5 "Checking to see if encoding/decoding commands work on remote host...done"))))
6420 ;; CCC: We should either implement a Perl version of base64 encoding
6422 ;; alternative is to use the Perl version of UU encoding. But then
6425 ;; Old text from documentation of tramp-methods:
6427 ;; of the base64 methods instead since base64 encoding is much more
6472 specifier is not present, the input should be read from standard
6479 (defun tramp-find-inline-encoding (multi-method method user host)
6480 "Find an inline transfer encoding that works.
6492 ;; Check if remote encoding and decoding commands can be
6502 "Checking remote encoding command `%s' for sanity" rem-enc)
6524 "Checking local encoding command `%s' for sanity" loc-enc)
6543 (error "Couldn't find an inline transfer encoding"))
6548 (tramp-message 10 "Using remote encoding %s" rem-enc)
6549 (tramp-set-remote-encoding multi-method method user host rem-enc)
6552 (tramp-message 10 "Using local encoding %s" loc-enc)
6553 (tramp-set-local-encoding multi-method method user host loc-enc)
6558 "Call the local encoding or decoding command.
6566 tramp-encoding-shell ;program
6571 tramp-encoding-command-switch
6589 ;; try to send a command from time to time, then look again
6619 connection. This is meant to be used from
6649 "Wait for output from remote rsh command."
6787 "Sending chunk from %s to %s"
6885 (setcar (nthcdr 8 attr) (tramp-file-mode-from-int (nth 8 attr))))
6905 (defun tramp-file-mode-from-int (mode)
6922 This is used internally by `tramp-file-mode-from-int'."
7077 "Constructs a tramp file name from METHOD, USER, HOST and LOCALNAME."
7183 (defun tramp-set-remote-encoding (multi-method method user host rem-enc)
7184 (tramp-set-connection-property "remote-encoding" rem-enc
7186 (defun tramp-get-remote-encoding (multi-method method user host)
7187 (tramp-get-connection-property "remote-encoding" nil
7197 (defun tramp-set-local-encoding (multi-method method user host loc-enc)
7198 (tramp-set-connection-property "local-encoding" loc-enc
7200 (defun tramp-get-local-encoding (multi-method method user host)
7201 (tramp-get-connection-property "local-encoding" nil
7285 (from (car pr))
7287 (while (string-match (regexp-quote from) string)
7322 "Read a password from user (compat function).
7361 ;; snarfed from Emacs 21 time-date.el; combining
7438 ;; `shell-quote-argument' is not used. This way, we are safe from
7457 ;; ;; away from tramp.el file names.
7460 ;; ;; 'dired-before-readin-hook'. This prevents EFS from opening an FTP
7646 ;; We load message.el and mml.el from Gnus.
7714 'part 'type "text/plain" 'encoding "base64"
7735 "Discard Tramp from loading remote files."
7769 ;; from Gnus.
7774 ;; For reading files from the remote host, we can just parse the output
7784 ;; * Separate local `tramp-coding-commands' from remote ones. Connect
7789 ;; * Rewrite `tramp-shell-quote-argument' to abstain from using
7801 ;; Sometimes, one gets `No CVSROOT specified' errors from CVS.
7828 ;; * Remove unneeded parameters from methods.