unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Tak Ota <Takaaki.Ota@am.sony.com>
Cc: emacs-devel@gnu.org
Subject: Re: Tramp Trips
Date: Wed, 07 Aug 2002 11:04:58 -0700 (PDT)	[thread overview]
Message-ID: <20020807.110458.01363712.Takaaki.Ota@am.sony.com> (raw)
In-Reply-To: <vafk7n3ufdc.fsf@INBOX.auto.emacs.devel.tok.lucy.cs.uni-dortmund.de>

Wed, 07 Aug 2002 12:34:23 +0200: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) wrote:

> What's tramp-file-name-structure when this happens?  It should be:
> 
> /----
> | tramp-file-name-structure's value is 
> | ("\\`/\\(\\([a-zA-Z0-9-]+\\):\\)?\\(\\([^:@/]+\\)@\\)?\\([^:/]+\\):\\(.*\\)\\'" 2 4 5 6)
> | 
> | 
> | *List of five elements (REGEXP METHOD USER HOST FILE), detailing the tramp file name structure.
> | 
> | The first element REGEXP is a regular expression matching a tramp file
> | name.  The regex should contain parentheses around the method name,
> | the user name, the host name, and the file name parts.
> | 
> | The second element METHOD is a number, saying which pair of
> | parentheses matches the method name.  The third element USER is
> | similar, but for the user name.  The fourth element HOST is similar,
> | but for the host name.  The fifth element FILE is for the file name.
> | These numbers are passed directly to `match-string', which see.  That
> | means the opening parentheses are counted to identify the pair.
> | 
> | See also `tramp-file-name-regexp' and `tramp-make-tramp-file-format'.
> | 
> | You can customize this variable.
> | 
> | Defined in `tramp'.
> \----

This is what I get.  It looks slightly different from yours.

  tramp-file-name-structure's value is 
  ("\\`/r\\(@\\([a-z0-9]+\\)\\)?:\\(\\([-a-z0-9_#]+\\)@\\)?\\([-a-z0-9.]+\\):\\(.*\\)\\'" 2 4 5 6)


  *List of five elements (REGEXP METHOD USER HOST FILE), detailing the tramp file name structure.

  The first element REGEXP is a regular expression matching a tramp file
  name.  The regex should contain parentheses around the method name,
  the user name, the host name, and the file name parts.

  The second element METHOD is a number, saying which pair of
  parentheses matches the method name.  The third element USER is
  similar, but for the user name.  The fourth element HOST is similar,
  but for the host name.  The fifth element FILE is for the file name.
  These numbers are passed directly to `match-string', which see.  That
  means the opening parentheses are counted to identify the pair.

  See also `tramp-file-name-regexp' and `tramp-make-tramp-file-format'.

  You can customize this variable.

  Defined in `tramp'.


M-x tramp-version returns this.

"$Id: tramp.el,v 2.0.2.3 2001/03/28 21:44:30 grossjoh Exp $"


> What happens when you eval the following Lisp expression?  (The
> second line shows the result when I do it.)
> 
> (tramp-dissect-file-name "/ota@xenon:~/")
> [cl-struct-tramp-file-name nil "sm" "ota" "xenon" "~/"]
> 
> The "sm" is wrong.  I think it's due to our broken local config.  It
> should be "ssh".

It ends up with the same error as this.


Debugger entered--Lisp error: (error "Not a tramp file name: /ota@xenon:~/")
  signal(error ("Not a tramp file name: /ota@xenon:~/"))
  error("Not a tramp file name: %s" "/ota@xenon:~/")
  (if (string-match (nth 0 tramp-file-name-structure) name) nil (error "Not a tramp file name: %s" name))
  (unless (string-match (nth 0 tramp-file-name-structure) name) (error "Not a tramp file name: %s" name))
  (progn (unless (string-match ... name) (error "Not a tramp file name: %s" name)) (setq method (or ... tramp-default-method)) (if (member method tramp-multi-methods) (tramp-dissect-multi-file-name name) (make-tramp-file-name :multi-method nil :method method :user ... :host ... :path ...)))
  (unwind-protect (progn (unless ... ...) (setq method ...) (if ... ... ...)) (set-match-data save-match-data-internal))
  (let ((save-match-data-internal ...)) (unwind-protect (progn ... ... ...) (set-match-data save-match-data-internal)))
  (save-match-data (unless (string-match ... name) (error "Not a tramp file name: %s" name)) (setq method (or ... tramp-default-method)) (if (member method tramp-multi-methods) (tramp-dissect-multi-file-name name) (make-tramp-file-name :multi-method nil :method method :user ... :host ... :path ...)))
  (let (method) (save-match-data (unless ... ...) (setq method ...) (if ... ... ...)))
  tramp-dissect-file-name("/ota@xenon:~/")

  reply	other threads:[~2002-08-07 18:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-06 18:31 Tramp Trips Tak Ota
2002-08-07 10:34 ` Kai Großjohann
2002-08-07 18:04   ` Tak Ota [this message]
2002-08-07 18:37     ` Tak Ota
2002-08-08  8:45       ` Kai Großjohann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020807.110458.01363712.Takaaki.Ota@am.sony.com \
    --to=takaaki.ota@am.sony.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).