unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Normal errors bring up the debugger in tramp
@ 2013-02-13 18:50 Stefan Monnier
  2013-02-14 13:39 ` Michael Albinus
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Monnier @ 2013-02-13 18:50 UTC (permalink / raw)
  To: Michael Albinus; +Cc: emacs-devel


   emacs -Q
   Options => Enter debugger on error
   C-x C-f /ssh:iro:h/1/inde TAB

does complete to ...:html/1215/index.html but it brings up the debugger
many times before getting there.  So I think the
tramp-compat-condition-case-unless-debug in tramp-file-name-handler is
not quite correct, because errors inside its body might be signalled for
perfectly normal reasons.


        Stefan



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

* Re: Normal errors bring up the debugger in tramp
  2013-02-13 18:50 Normal errors bring up the debugger in tramp Stefan Monnier
@ 2013-02-14 13:39 ` Michael Albinus
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Albinus @ 2013-02-14 13:39 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: emacs-devel

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>    emacs -Q
>    Options => Enter debugger on error
>    C-x C-f /ssh:iro:h/1/inde TAB
>
> does complete to ...:html/1215/index.html but it brings up the debugger
> many times before getting there.  So I think the
> tramp-compat-condition-case-unless-debug in tramp-file-name-handler is
> not quite correct, because errors inside its body might be signalled for
> perfectly normal reasons.

I wrap it now by a let-bind, which uses `tramp-debug-on-error'. Since
this construct is intended to allow Tramp debugging, this should be not
too restrictive to require setting this Tramp specific variable.

>         Stefan

Best regards, Michael.



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

end of thread, other threads:[~2013-02-14 13:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-13 18:50 Normal errors bring up the debugger in tramp Stefan Monnier
2013-02-14 13:39 ` Michael Albinus

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