unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#4614: 23.1.50; tramp-ftp-file-name-handler: Recursive `require' for feature `ange-ftp'
@ 2009-10-02  9:14 ` Stephen Berman
  2009-10-03  2:56   ` Glenn Morris
  2009-10-03 17:00   ` bug#4614: marked as done (23.1.50; tramp-ftp-file-name-handler: Recursive `require' for feature `ange-ftp') Emacs bug Tracking System
  0 siblings, 2 replies; 6+ messages in thread
From: Stephen Berman @ 2009-10-02  9:14 UTC (permalink / raw)
  To: emacs-pretest-bug

Until sometime within the last few weeks (sorry, I can't narrow it down
more), the following (anonymized) code worked fine:

(defun my-ftp ()
  "Call dired on my ftp server."
  (interactive)
  (require 'tramp)
  (let ((default-directory "/ftp:my-name@my.server.net:/"))
    (call-interactively 'dired)))

But now it throws the error in the Subject line (also with emacs -Q
built with make bootstrap).  When I comment out (require 'tramp) and
eval the resulting defun in emacs -Q, then I get this error:

expand-file-name: Recursive load: "/home/steve/cvsroot/emacs/lisp/net/tramp.elc", "/home/steve/cvsroot/emacs/lisp/net/tramp.elc", "/home/steve/cvsroot/emacs/lisp/net/tramp.elc", "/home/steve/cvsroot/emacs/lisp/net/tramp.elc", "/home/steve/cvsroot/emacs/lisp/net/tramp.elc", "/home/steve/cvsroot/emacs/lisp/dired.elc"

Doing `C-x d RET /ftp:my-name@my.server.net:/ RET' works as always.
After doing this, then my-ftp also works (both with the require-sexp and
without it).

The problem is only with ftp handling; the following defun works fine:

(defun sv ()
  "Call dired on /su::/var/log."
  (interactive)
  (require 'tramp)
  (let ((default-directory "/su::/var/log"))
    (call-interactively 'dired)))

Did something change in the ftp handling that I have to adapt my-ftp to,
or is this a bug in Emacs?


In GNU Emacs 23.1.50.1 (i686-pc-linux-gnu, GTK+ Version 2.14.4)
 of 2009-10-01 on escher
Windowing system distributor `The X.Org Foundation', version 11.0.10502000
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: @im=local
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#4614: 23.1.50; tramp-ftp-file-name-handler: Recursive `require' for feature `ange-ftp'
  2009-10-02  9:14 ` bug#4614: 23.1.50; tramp-ftp-file-name-handler: Recursive `require' for feature `ange-ftp' Stephen Berman
@ 2009-10-03  2:56   ` Glenn Morris
  2009-10-03 12:43     ` Michael Albinus
  2009-10-03 17:00   ` bug#4614: marked as done (23.1.50; tramp-ftp-file-name-handler: Recursive `require' for feature `ange-ftp') Emacs bug Tracking System
  1 sibling, 1 reply; 6+ messages in thread
From: Glenn Morris @ 2009-10-03  2:56 UTC (permalink / raw)
  To: Stephen Berman; +Cc: 4614

Stephen Berman wrote:

> Until sometime within the last few weeks (sorry, I can't narrow it down
> more), the following (anonymized) code worked fine:

Are you sure? It fails for me in the same way in both 22 and 23.1.
(It seems you can require ange-ftp beforehand as a workaround.)





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#4614: 23.1.50; tramp-ftp-file-name-handler: Recursive `require' for feature `ange-ftp'
  2009-10-03  2:56   ` Glenn Morris
@ 2009-10-03 12:43     ` Michael Albinus
  2009-10-03 13:43       ` Stephen Berman
  0 siblings, 1 reply; 6+ messages in thread
From: Michael Albinus @ 2009-10-03 12:43 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 4614, Stephen Berman

Glenn Morris <rgm@gnu.org> writes:

> Stephen Berman wrote:
>
>> Until sometime within the last few weeks (sorry, I can't narrow it down
>> more), the following (anonymized) code worked fine:
>
> Are you sure? It fails for me in the same way in both 22 and 23.1.
> (It seems you can require ange-ftp beforehand as a workaround.)

Indeed. I've fixed this in tramp-ftp.el. Stephen, could you please
check, whether it works for you?

Best regards, Michael.





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#4614: 23.1.50; tramp-ftp-file-name-handler: Recursive `require' for feature `ange-ftp'
  2009-10-03 12:43     ` Michael Albinus
@ 2009-10-03 13:43       ` Stephen Berman
  2009-10-03 16:04         ` Stephen Berman
  0 siblings, 1 reply; 6+ messages in thread
From: Stephen Berman @ 2009-10-03 13:43 UTC (permalink / raw)
  To: Michael Albinus; +Cc: 4614

On Sat, 03 Oct 2009 14:43:53 +0200 Michael Albinus <michael.albinus@gmx.de> wrote:

> Glenn Morris <rgm@gnu.org> writes:
>
>> Stephen Berman wrote:
>>
>>> Until sometime within the last few weeks (sorry, I can't narrow it down
>>> more), the following (anonymized) code worked fine:
>>
>> Are you sure? It fails for me in the same way in both 22 and 23.1.
>> (It seems you can require ange-ftp beforehand as a workaround.)
>
> Indeed. I've fixed this in tramp-ftp.el. Stephen, could you please
> check, whether it works for you?

I haven't updated yet to get your change, but I confirm the workaround
works with emacs -Q on my current build.

However, I just tried the code again with my init file on my current
build and I cannot reproduce it now.  After my init file loaded, I did
`C-h v features' and found both ange-ftp and tramp-*, which would
explain why it works.  I don't know why it didn't work when I reported
it (with the same initializations), but that failure happened in several
separate Emacs sessions, on at least two different days.  Perhaps I
loaded some function that unloaded ange-ftp, ...or it's a heisenbug.
Anyway, I'll update and try your fix, Michael.  You can wait till I
confirm it works to close the bug, but that might not be till tomorrow.
But since it appears to be unreproducible, it's probably ok to close it
now.

Steve Berman





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#4614: 23.1.50; tramp-ftp-file-name-handler: Recursive `require' for feature `ange-ftp'
  2009-10-03 13:43       ` Stephen Berman
@ 2009-10-03 16:04         ` Stephen Berman
  0 siblings, 0 replies; 6+ messages in thread
From: Stephen Berman @ 2009-10-03 16:04 UTC (permalink / raw)
  To: 4614; +Cc: Michael Albinus

On Sat, 03 Oct 2009 15:43:12 +0200 Stephen Berman <stephen.berman@gmx.net> wrote:

> On Sat, 03 Oct 2009 14:43:53 +0200 Michael Albinus <michael.albinus@gmx.de> wrote:
>>
>> Indeed. I've fixed this in tramp-ftp.el. Stephen, could you please
>> check, whether it works for you?
[...]
> Anyway, I'll update and try your fix, Michael.  You can wait till I
> confirm it works to close the bug, but that might not be till tomorrow.

I just updated and confirmed it makes my code work with emacs -Q (and
also with my initializations).

Steve Berman





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#4614: marked as done (23.1.50; tramp-ftp-file-name-handler: Recursive `require' for feature `ange-ftp')
  2009-10-02  9:14 ` bug#4614: 23.1.50; tramp-ftp-file-name-handler: Recursive `require' for feature `ange-ftp' Stephen Berman
  2009-10-03  2:56   ` Glenn Morris
@ 2009-10-03 17:00   ` Emacs bug Tracking System
  1 sibling, 0 replies; 6+ messages in thread
From: Emacs bug Tracking System @ 2009-10-03 17:00 UTC (permalink / raw)
  To: Michael Albinus

[-- Attachment #1: Type: text/plain, Size: 949 bytes --]

Your message dated Sat, 03 Oct 2009 18:55:35 +0200
with message-id <878wfspgc8.fsf@gmx.de>
and subject line Re: bug#4614: 23.1.50; tramp-ftp-file-name-handler: Recursive `require' for feature `ange-ftp'
has caused the Emacs bug report #4614,
regarding 23.1.50; tramp-ftp-file-name-handler: Recursive `require' for feature `ange-ftp'
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@emacsbugs.donarmstrong.com
immediately.)


-- 
4614: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=4614
Emacs Bug Tracking System
Contact owner@emacsbugs.donarmstrong.com with problems

[-- Attachment #2: Type: message/rfc822, Size: 4069 bytes --]

From: Stephen Berman <stephen.berman@gmx.net>
To: emacs-pretest-bug@gnu.org
Subject: 23.1.50; tramp-ftp-file-name-handler: Recursive `require' for feature `ange-ftp'
Date: Fri, 02 Oct 2009 11:14:21 +0200
Message-ID: <8763aykviq.fsf@escher.local.home>

Until sometime within the last few weeks (sorry, I can't narrow it down
more), the following (anonymized) code worked fine:

(defun my-ftp ()
  "Call dired on my ftp server."
  (interactive)
  (require 'tramp)
  (let ((default-directory "/ftp:my-name@my.server.net:/"))
    (call-interactively 'dired)))

But now it throws the error in the Subject line (also with emacs -Q
built with make bootstrap).  When I comment out (require 'tramp) and
eval the resulting defun in emacs -Q, then I get this error:

expand-file-name: Recursive load: "/home/steve/cvsroot/emacs/lisp/net/tramp.elc", "/home/steve/cvsroot/emacs/lisp/net/tramp.elc", "/home/steve/cvsroot/emacs/lisp/net/tramp.elc", "/home/steve/cvsroot/emacs/lisp/net/tramp.elc", "/home/steve/cvsroot/emacs/lisp/net/tramp.elc", "/home/steve/cvsroot/emacs/lisp/dired.elc"

Doing `C-x d RET /ftp:my-name@my.server.net:/ RET' works as always.
After doing this, then my-ftp also works (both with the require-sexp and
without it).

The problem is only with ftp handling; the following defun works fine:

(defun sv ()
  "Call dired on /su::/var/log."
  (interactive)
  (require 'tramp)
  (let ((default-directory "/su::/var/log"))
    (call-interactively 'dired)))

Did something change in the ftp handling that I have to adapt my-ftp to,
or is this a bug in Emacs?


In GNU Emacs 23.1.50.1 (i686-pc-linux-gnu, GTK+ Version 2.14.4)
 of 2009-10-01 on escher
Windowing system distributor `The X.Org Foundation', version 11.0.10502000
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: @im=local
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t


[-- Attachment #3: Type: message/rfc822, Size: 1948 bytes --]

From: Michael Albinus <michael.albinus@gmx.de>
To: Stephen Berman <stephen.berman@gmx.net>
Cc: 4614-done@emacsbugs.donarmstrong.com
Subject: Re: bug#4614: 23.1.50; tramp-ftp-file-name-handler: Recursive `require' for feature `ange-ftp'
Date: Sat, 03 Oct 2009 18:55:35 +0200
Message-ID: <878wfspgc8.fsf@gmx.de>

Stephen Berman <stephen.berman@gmx.net> writes:

> I just updated and confirmed it makes my code work with emacs -Q (and
> also with my initializations).

Thanks for testing. I've close the bug.

> Steve Berman

Best regards, Michael.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-10-03 17:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <878wfspgc8.fsf@gmx.de>
2009-10-02  9:14 ` bug#4614: 23.1.50; tramp-ftp-file-name-handler: Recursive `require' for feature `ange-ftp' Stephen Berman
2009-10-03  2:56   ` Glenn Morris
2009-10-03 12:43     ` Michael Albinus
2009-10-03 13:43       ` Stephen Berman
2009-10-03 16:04         ` Stephen Berman
2009-10-03 17:00   ` bug#4614: marked as done (23.1.50; tramp-ftp-file-name-handler: Recursive `require' for feature `ange-ftp') Emacs bug Tracking System

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).