GNU bug report logs -
#6923
24.0.50; Can't load remote elc.gz file using tramp-ftp
Previous Next
Reported by: Katsumi Yamaoka <yamaoka <at> jpl.org>
Date: Fri, 27 Aug 2010 08:02:01 UTC
Severity: normal
Tags: patch
Found in version 24.0.50
Done: Chong Yidong <cyd <at> stupidchicken.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 6923 in the body.
You can then email your comments to 6923 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#6923
; Package
emacs
.
(Fri, 27 Aug 2010 08:02:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Katsumi Yamaoka <yamaoka <at> jpl.org>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Fri, 27 Aug 2010 08:02:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi,
Now there is the file gnus.elc.gz in: /ftp:ftp.jpl.org:/pub/tmp/lisp
You can see this one fails:
(let ((load-path (cons "/ftp:ftp.jpl.org:/pub/tmp/lisp" load-path)))
(load "gnus"))
;; (require 'gnus) also fails.
This might not be a bug and there might not be a demand either,
but loading elc.gz file using tramp-ssh succeeds (you don't have
access to this, sorry):
(let ((load-path (cons "/ssh:jpl.org:~/ftp/pub/tmp/lisp" load-path)))
(load "gnus"))
It seems easy to solve. How about the attached patch?
BTW, after starting Emacs, I needed to do tramp-ftp (e.g. dired)
to the remote site before testing the above two items. If not,
I got the error `Variable binding depth exceeds max-specpdl-size'
for unknown reason. At that time, there were many "*ftp-.netrc*<N>"
buffers, in which `buffer-file-name' was "~/.netrc". I'd like to
investigate this when I have time.
Regards,
--8<---------------cut here---------------start------------->8---
--- ange-ftp.el~ 2010-05-28 00:48:36 +0000
+++ ange-ftp.el 2010-08-27 05:59:12 +0000
@@ -1728,11 +1728,12 @@
;;; Temporary file location and deletion...
;;; ------------------------------------------------------------
-(defun ange-ftp-make-tmp-name (host)
+(defun ange-ftp-make-tmp-name (host &optional suffix)
"This routine will return the name of a new file."
(make-temp-file (if (ange-ftp-use-gateway-p host)
ange-ftp-gateway-tmp-name-template
- ange-ftp-tmp-name-template)))
+ ange-ftp-tmp-name-template)
+ nil suffix))
(defun ange-ftp-del-tmp-name (filename)
"Force to delete temporary file."
@@ -4158,7 +4159,8 @@
(let* ((fn1 (expand-file-name file))
(pa1 (ange-ftp-ftp-name fn1)))
(if pa1
- (let ((tmp1 (ange-ftp-make-tmp-name (car pa1))))
+ (let ((tmp1 (ange-ftp-make-tmp-name (car pa1)
+ (file-name-extension file t))))
(ange-ftp-copy-file-internal fn1 tmp1 t nil
(format "Getting %s" fn1))
tmp1))))
--8<---------------cut here---------------end--------------->8---
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#6923
; Package
emacs
.
(Fri, 27 Aug 2010 10:37:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 6923 <at> debbugs.gnu.org (full text, mbox):
Katsumi Yamaoka <yamaoka <at> jpl.org> writes:
> Hi,
Hi,
> This might not be a bug and there might not be a demand either,
> but loading elc.gz file using tramp-ssh succeeds (you don't have
> access to this, sorry):
>
> (let ((load-path (cons "/ssh:jpl.org:~/ftp/pub/tmp/lisp" load-path)))
> (load "gnus"))
>
> It seems easy to solve. How about the attached patch?
Your patch looks OK to me. Loading gnus.el.gz via ssh works, because
tramp-ssh preserves the suffix when applying `file-local-copy'. You get
the same result for `ange-ftp-file-local-copy' with your patch.
Maybe we shall extend the docstring of `file-local-copy', saying that
suffixes must be preserved.
> BTW, after starting Emacs, I needed to do tramp-ftp (e.g. dired)
> to the remote site before testing the above two items. If not,
> I got the error `Variable binding depth exceeds max-specpdl-size'
> for unknown reason.
This is related to Bug#1529 and Bug#5705. Now, after Tramp 2.1.19 has
been released, I plan to reorganize Tramp's packages and their load
dependencies. Shall be fixed then.
> Regards,
Best regards, Michael.
Added tag(s) patch.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Fri, 27 Aug 2010 16:37:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#6923
; Package
emacs
.
(Thu, 03 Mar 2011 21:34:01 GMT)
Full text and
rfc822 format available.
Message #13 received at 6923 <at> debbugs.gnu.org (full text, mbox):
Hi,
Is this bug still relevant, or can it be closed? Thanks.
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6923
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#6923
; Package
emacs
.
(Fri, 04 Mar 2011 19:38:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 6923 <at> debbugs.gnu.org (full text, mbox):
Glenn Morris <rgm <at> gnu.org> writes:
> Hi,
Hi,
> Is this bug still relevant, or can it be closed? Thanks.
The proposed patch hasn't been applied; the bug is still relevant.
The second part of the problem (loading problems of Tramp) shall be
solved now.
Best regards, Michael.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#6923
; Package
emacs
.
(Sun, 06 Mar 2011 00:43:03 GMT)
Full text and
rfc822 format available.
Message #19 received at 6923 <at> debbugs.gnu.org (full text, mbox):
Katsumi, would you like to apply your patch and close this report?
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#6923
; Package
emacs
.
(Mon, 27 Jun 2011 21:32:02 GMT)
Full text and
rfc822 format available.
Message #22 received at 6923 <at> debbugs.gnu.org (full text, mbox):
Since there was no response for a long time, I've committed Katsumi
Yamaoka's patch to the trunk. Closing this bug.
bug closed, send any further explanations to
6923 <at> debbugs.gnu.org and Katsumi Yamaoka <yamaoka <at> jpl.org>
Request was from
Chong Yidong <cyd <at> stupidchicken.com>
to
control <at> debbugs.gnu.org
.
(Mon, 27 Jun 2011 21:32:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#6923
; Package
emacs
.
(Mon, 27 Jun 2011 23:36:01 GMT)
Full text and
rfc822 format available.
Message #27 received at 6923 <at> debbugs.gnu.org (full text, mbox):
Chong Yidong wrote:
> Since there was no response for a long time, I've committed Katsumi
> Yamaoka's patch to the trunk. Closing this bug.
Oh, sorry for my laziness. Thanks for committing.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 26 Jul 2011 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 13 years and 326 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.