GNU bug report logs - #8964
24.0.50; `find-file' triggers the debugger when called with a nonexistent remote file

Previous Next

Package: emacs;

Reported by: Dani Moncayo <dmoncayo <at> gmail.com>

Date: Thu, 30 Jun 2011 09:42:01 UTC

Severity: normal

Found in version 24.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

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 8964 in the body.
You can then email your comments to 8964 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8964; Package emacs. (Thu, 30 Jun 2011 09:42:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Dani Moncayo <dmoncayo <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 30 Jun 2011 09:42:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Dani Moncayo <dmoncayo <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.0.50; `find-file' triggers the debugger when called with a
	nonexistent remote file
Date: Thu, 30 Jun 2011 11:40:49 +0200
Package: emacs
Version: 24.0.50

From "emacs -Q":
1. Eval this, literally: (find-file "/user <at> host:/file")
2. Give any random password (for user <at> host).

Then, the a debugger window pops up, with this text:

  Debugger entered--Lisp error: (ftp-error #("FTP Error: OPEN request
failed: Unknown host host." 32 50 (fontified nil front-sticky (field
inhibit-line-move-field-capture) rear-nonsticky t field output
inhibit-line-move-field-capture t)))
    signal(ftp-error (#("FTP Error: OPEN request failed: Unknown host
host." 32 50 (fontified nil front-sticky (field
inhibit-line-move-field-capture) rear-nonsticky t field output
inhibit-line-move-field-capture t))))
    byte-code("\203


If the host is unknown, it should be notified with a message in the
minibuffer (as happens if you do it interactively with C-x C-f), but
not by triggering the debugger.


In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600)
 of 2011-06-27 on 3249CTO
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (4.5) --no-opt --cflags
-Ic:/build/include'


-- 
Dani Moncayo




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8964; Package emacs. (Thu, 30 Jun 2011 09:58:02 GMT) Full text and rfc822 format available.

Message #8 received at 8964 <at> debbugs.gnu.org (full text, mbox):

From: Dani Moncayo <dmoncayo <at> gmail.com>
To: 8964 <at> debbugs.gnu.org
Subject: Re: 24.0.50; `find-file' triggers the debugger when called with a
	nonexistent remote file
Date: Thu, 30 Jun 2011 11:57:34 +0200
BTW, he same happens when user <at> host is OK, but the _path_ to the file
is wrong.  In this case, the debugger window shows something like
this:

   Debugger entered--Lisp error: (ftp-error #("FTP Error: DIR failed:
550 /home/fac19/PREVTEC/ptbsgpmx.4exs/: No such file or directory." 23
89 (fontified nil front-sticky (field inhibit-line-move-field-capture)
rear-nonsticky t field output inhibit-line-move-field-capture t)))
     signal(ftp-error (#("FTP Error: DIR failed: 550
/home/fac19/PREVTEC/ptbsgpmx.4exs/: No such file or directory." 23 89
(fontified nil front-sticky (field inhibit-line-move-field-capture)
rear-nonsticky t field output inhibit-line-move-field-capture t))))
     byte-code("\203


-- 
Dani Moncayo




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8964; Package emacs. (Thu, 30 Jun 2011 12:20:03 GMT) Full text and rfc822 format available.

Message #11 received at 8964 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Dani Moncayo <dmoncayo <at> gmail.com>
Cc: 8964 <at> debbugs.gnu.org
Subject: Re: bug#8964: 24.0.50;
	`find-file' triggers the debugger when called with a nonexistent
	remote file
Date: Thu, 30 Jun 2011 08:19:50 -0400
> Date: Thu, 30 Jun 2011 11:40:49 +0200
> From: Dani Moncayo <dmoncayo <at> gmail.com>
> 
> >From "emacs -Q":
> 1. Eval this, literally: (find-file "/user <at> host:/file")
> 2. Give any random password (for user <at> host).
> 
> Then, the a debugger window pops up, with this text:
> 
>   Debugger entered--Lisp error: (ftp-error #("FTP Error: OPEN request
> failed: Unknown host host." 32 50 (fontified nil front-sticky (field

Do you eval this in the *scratch* buffer?  If so, this is a feature:
the Lisp interaction mode in *scratch* sets up things so that
debug-on-error is non-nil, which causes every call to `error' to enter
the debugger.  Normally, `error' just aborts the current command and
displays an error message.

If you don't eval in *scratch*, please tell exactly how you do it.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8964; Package emacs. (Thu, 30 Jun 2011 12:40:03 GMT) Full text and rfc822 format available.

Message #14 received at 8964 <at> debbugs.gnu.org (full text, mbox):

From: Dani Moncayo <dmoncayo <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 8964 <at> debbugs.gnu.org
Subject: Re: bug#8964: 24.0.50; `find-file' triggers the debugger when called
	with a nonexistent remote file
Date: Thu, 30 Jun 2011 14:39:35 +0200
> If you don't eval in *scratch*, please tell exactly how you do it.

I've just tried and been able to reproduce the problem from these modes:
 - "Lisp Interaction" (*scratch* buffer)
 - "Emacs-Lisp" (visiting a ".el" file)
 - "Fundamental" (a brand new buffer)
 - "Text mode"


-- 
Dani Moncayo




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8964; Package emacs. (Thu, 30 Jun 2011 13:15:03 GMT) Full text and rfc822 format available.

Message #17 received at 8964 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Dani Moncayo <dmoncayo <at> gmail.com>
Cc: 8964 <at> debbugs.gnu.org
Subject: Re: bug#8964: 24.0.50; `find-file' triggers the debugger when called
	with a nonexistent remote file
Date: Thu, 30 Jun 2011 09:14:00 -0400
> Date: Thu, 30 Jun 2011 14:39:35 +0200
> From: Dani Moncayo <dmoncayo <at> gmail.com>
> Cc: 8964 <at> debbugs.gnu.org
> 
> > If you don't eval in *scratch*, please tell exactly how you do it.
> 
> I've just tried and been able to reproduce the problem from these modes:
>  - "Lisp Interaction" (*scratch* buffer)
>  - "Emacs-Lisp" (visiting a ".el" file)
>  - "Fundamental" (a brand new buffer)
>  - "Text mode"

Was debug-on-error set to non-nil?  If so, this is intended behavior
of ange-ftp.





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8964; Package emacs. (Thu, 30 Jun 2011 13:20:03 GMT) Full text and rfc822 format available.

Message #20 received at 8964 <at> debbugs.gnu.org (full text, mbox):

From: Dani Moncayo <dmoncayo <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 8964 <at> debbugs.gnu.org
Subject: Re: bug#8964: 24.0.50; `find-file' triggers the debugger when called
	with a nonexistent remote file
Date: Thu, 30 Jun 2011 15:19:11 +0200
> Was debug-on-error set to non-nil?  If so, this is intended behavior
> of ange-ftp.

C-h v debug-on-error gives:
  debug-on-error is a variable defined in `C source code'.
  Its value is nil


-- 
Dani Moncayo




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8964; Package emacs. (Thu, 30 Jun 2011 13:52:02 GMT) Full text and rfc822 format available.

Message #23 received at 8964 <at> debbugs.gnu.org (full text, mbox):

From: Lars Magne Ingebrigtsen <lmi <at> gnus.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 8964 <at> debbugs.gnu.org, Dani Moncayo <dmoncayo <at> gmail.com>
Subject: Re: bug#8964: 24.0.50;
	`find-file' triggers the debugger when called with a nonexistent
	remote file
Date: Thu, 30 Jun 2011 15:51:33 +0200
Eli Zaretskii <eliz <at> gnu.org> writes:

>> 1. Eval this, literally: (find-file "/user <at> host:/file")
>> 2. Give any random password (for user <at> host).

For me, this fails, too, but by hanging until I `C-g'.

If I look in the "*ftp user...*" buffer, I then find:

---
ftp> open host
ftp: host: Name or service not knownftp> 
---

Which sounds like a totally unrelated issue.  :-)

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8964; Package emacs. (Thu, 30 Jun 2011 14:20:04 GMT) Full text and rfc822 format available.

Message #26 received at 8964 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Dani Moncayo <dmoncayo <at> gmail.com>
Cc: 8964 <at> debbugs.gnu.org
Subject: Re: bug#8964: 24.0.50; `find-file' triggers the debugger when called
	with a nonexistent remote file
Date: Thu, 30 Jun 2011 10:19:54 -0400
> Date: Thu, 30 Jun 2011 15:19:11 +0200
> From: Dani Moncayo <dmoncayo <at> gmail.com>
> Cc: 8964 <at> debbugs.gnu.org
> 
> > Was debug-on-error set to non-nil?  If so, this is intended behavior
> > of ange-ftp.
> 
> C-h v debug-on-error gives:
>   debug-on-error is a variable defined in `C source code'.
>   Its value is nil

Try "M-: debug-on-error RET".




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8964; Package emacs. (Thu, 30 Jun 2011 14:30:03 GMT) Full text and rfc822 format available.

Message #29 received at 8964 <at> debbugs.gnu.org (full text, mbox):

From: Dani Moncayo <dmoncayo <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 8964 <at> debbugs.gnu.org
Subject: Re: bug#8964: 24.0.50; `find-file' triggers the debugger when called
	with a nonexistent remote file
Date: Thu, 30 Jun 2011 16:29:35 +0200
> Try "M-: debug-on-error RET".

Gives `t'.


How is it possible?  I.e., why "C-h v" gives a different value than "M-:"?

And why "M-: debug-on-error RET" returns `t' even after doing (setq
debug-on-error nil)?

-- 
Dani Moncayo




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8964; Package emacs. (Thu, 30 Jun 2011 18:01:02 GMT) Full text and rfc822 format available.

Message #32 received at 8964 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Dani Moncayo <dmoncayo <at> gmail.com>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 8964 <at> debbugs.gnu.org
Subject: Re: bug#8964: 24.0.50;
	`find-file' triggers the debugger when called with a nonexistent
	remote file
Date: Thu, 30 Jun 2011 14:00:03 -0400
Dani Moncayo wrote:

> How is it possible?  I.e., why "C-h v" gives a different value than "M-:"?
>
> And why "M-: debug-on-error RET" returns `t' even after doing (setq
> debug-on-error nil)?

Because of eval-expression-debug-on-error, I think.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8964; Package emacs. (Thu, 30 Jun 2011 18:29:02 GMT) Full text and rfc822 format available.

Message #35 received at 8964 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 8964 <at> debbugs.gnu.org, dmoncayo <at> gmail.com
Subject: Re: bug#8964: 24.0.50;
	`find-file' triggers the debugger when called with a nonexistent
	remote file
Date: Thu, 30 Jun 2011 21:27:40 +0300
> From: Glenn Morris <rgm <at> gnu.org>
> Cc: Eli Zaretskii <eliz <at> gnu.org>,  8964 <at> debbugs.gnu.org
> Date: Thu, 30 Jun 2011 14:00:03 -0400
> 
> Dani Moncayo wrote:
> 
> > How is it possible?  I.e., why "C-h v" gives a different value than "M-:"?
> >
> > And why "M-: debug-on-error RET" returns `t' even after doing (setq
> > debug-on-error nil)?
> 
> Because of eval-expression-debug-on-error, I think.

Of course.  And that's also the reason why evaluating something like
`(find-file "foo")' will run with debug-on-error set non-nil, and
that's why ange-ftp enters the debugger when it signals an error.

IOW, not a bug, like I said.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8964; Package emacs. (Thu, 30 Jun 2011 18:53:02 GMT) Full text and rfc822 format available.

Message #38 received at 8964 <at> debbugs.gnu.org (full text, mbox):

From: Dani Moncayo <dmoncayo <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Glenn Morris <rgm <at> gnu.org>, 8964 <at> debbugs.gnu.org
Subject: Re: bug#8964: 24.0.50; `find-file' triggers the debugger when called
	with a nonexistent remote file
Date: Thu, 30 Jun 2011 20:52:37 +0200
>> > How is it possible?  I.e., why "C-h v" gives a different value than "M-:"?
>> >
>> > And why "M-: debug-on-error RET" returns `t' even after doing (setq
>> > debug-on-error nil)?
>>
>> Because of eval-expression-debug-on-error, I think.
>
> Of course.  And that's also the reason why evaluating something like
> `(find-file "foo")' will run with debug-on-error set non-nil, and
> that's why ange-ftp enters the debugger when it signals an error.
>
> IOW, not a bug, like I said.

Eli, Glenn, thanks for your explanations.  I understand it now.

You can close this bug.

-- 
Dani Moncayo




Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Thu, 30 Jun 2011 19:27:01 GMT) Full text and rfc822 format available.

Notification sent to Dani Moncayo <dmoncayo <at> gmail.com>:
bug acknowledged by developer. (Thu, 30 Jun 2011 19:27:01 GMT) Full text and rfc822 format available.

Message #43 received at 8964-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Dani Moncayo <dmoncayo <at> gmail.com>
Cc: rgm <at> gnu.org, 8964-done <at> debbugs.gnu.org
Subject: Re: bug#8964: 24.0.50;
	`find-file' triggers the debugger when called with a nonexistent
	remote file
Date: Thu, 30 Jun 2011 22:25:59 +0300
> Date: Thu, 30 Jun 2011 20:52:37 +0200
> From: Dani Moncayo <dmoncayo <at> gmail.com>
> Cc: Glenn Morris <rgm <at> gnu.org>, 8964 <at> debbugs.gnu.org
> 
> Eli, Glenn, thanks for your explanations.  I understand it now.
> 
> You can close this bug.

Done.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 29 Jul 2011 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 14 years and 20 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.