From: Alan.Grunwald@tatasteel.com
To: Michael Albinus <michael.albinus@gmx.de>
Cc: 6019@debbugs.gnu.org
Subject: bug#6019: 23.3; Can't visit VMS file from Windows Emacs 23.3.1
Date: Wed, 31 Aug 2011 13:41:25 +0100 [thread overview]
Message-ID: <OFB44C74C0.D5ADF24E-ON802578FD.00458F16-802578FD.00453B86@LocalDomain> (raw)
In-Reply-To: <8739gh6c9p.fsf@gmx.de>
Michael,
> > Please find attached the contents of the *trace-output* and *ftp
> > grunwald@confid* buffers afetr I executed
> >
> > C-x C-f /grunwald@confid:login.com
> >
> > Best of luck :-)
>
> Thanks, it helps :-)
>
> The following call is guilty:
>
> 8 -> ange-ftp-fix-name-for-vms: name="\"/$DISK1!/GRUNWALD/\"" reverse=nil
> 8 <- ange-ftp-fix-name-for-vms: "[.\".$DISK1!.GRUNWALD]\""
>
> This reminds me, that we have changed the quoting for file names a while
> ago. This results in surrounding a file name under Windows by '"', like
> "/$DISK1!/GRUNWALD/". Obviously, ange-ftp-fix-name-for-vms must be
> aware of it.
>
> Could you, please, check whether the following patch helps?
>
> --8<---------------cut here---------------start------------->8---
> *** /home/albinus/src/emacs-23/lisp/net/ange-ftp.el.~100624~
> 2011-08-31 13:30:47.905559520 +0200
> --- /home/albinus/src/emacs-23/lisp/net/ange-ftp.el 2011-08-31 13:
> 28:25.395350494 +0200
> ***************
> *** 5017,5023 ****
> dir (and dir "/")
> file))
> (error "name %s didn't match" name))
> ! (let (drive dir file tmp)
> (if (string-match "\\`/[^:]+:/" name)
> (setq drive (substring name 1
> (1- (match-end 0)))
> --- 5017,5027 ----
> dir (and dir "/")
> file))
> (error "name %s didn't match" name))
> ! (let (drive dir file tmp quote)
> ! (if (string-match "\\`\".+\"\\'" name)
> ! (setq name (substring name 1 -1)
> ! quote "\"")
> ! (setq quote ""))
> (if (string-match "\\`/[^:]+:/" name)
> (setq drive (substring name 1
> (1- (match-end 0)))
> ***************
> *** 5026,5034 ****
> (if tmp
> (setq dir (subst-char-in-string ?/ ?. (substring tmp 0 -1) t)))
> (setq file (file-name-nondirectory name))
> ! (concat drive
> (and dir (concat "[" (if drive nil ".") dir "]"))
> ! file)))))
>
> ;; (ange-ftp-fix-name-for-vms "/PUB
$:/ANONYMOUS/SDSCPUB/NEXT/Readme.txt;1")
> ;; (ange-ftp-fix-name-for-vms "/PUB$:[ANONYMOUS.SDSCPUB.NEXT]
> Readme.txt;1" t)
> --- 5030,5038 ----
> (if tmp
> (setq dir (subst-char-in-string ?/ ?. (substring tmp 0 -1) t)))
> (setq file (file-name-nondirectory name))
> ! (concat quote drive
> (and dir (concat "[" (if drive nil ".") dir "]"))
> ! file quote)))))
>
> ;; (ange-ftp-fix-name-for-vms "/PUB
$:/ANONYMOUS/SDSCPUB/NEXT/Readme.txt;1")
> ;; (ange-ftp-fix-name-for-vms "/PUB$:[ANONYMOUS.SDSCPUB.NEXT]
> Readme.txt;1" t)
> --8<---------------cut here---------------end--------------->8---
>
I haven't got access to a handy method to convert the changes listing
above into a new file - could you send me a full ang-ftp.el please?
Thanks,
Alan
**********************************************************************
This transmission is confidential and must not be used or disclosed by anyone other than the intended recipient. Neither Tata Steel Europe Limited nor any of its subsidiaries can accept any responsibility for any use or misuse of the transmission by anyone.
For address and company registration details of certain entities within the Tata Steel Europe group of companies, please visit http://www.tatasteeleurope.com/entities
**********************************************************************
next prev parent reply other threads:[~2011-08-31 12:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <OF7CF6E26D.4255F847-ON802578FD.0031AD64-802578FD.00326650@LocalDomain>
2010-04-23 21:09 ` bug#6019: 23.1; ange-ftp with VAX Carroll, Tom
2010-05-02 11:22 ` Michael Albinus
2011-07-11 21:39 ` Glenn Morris
2011-08-31 11:39 ` bug#6019: 23.3; Can't visit VMS file from Windows Emacs 23.3.1 Michael Albinus
2011-08-31 12:41 ` Alan.Grunwald [this message]
2011-08-17 13:24 bug#9315: " Alan.Grunwald
2011-08-30 8:57 ` bug#6019: " Michael Albinus
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=OFB44C74C0.D5ADF24E-ON802578FD.00458F16-802578FD.00453B86@LocalDomain \
--to=alan.grunwald@tatasteel.com \
--cc=6019@debbugs.gnu.org \
--cc=michael.albinus@gmx.de \
/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).