[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Emacs-diffs] trunk r113420: * net/tramp-sh.el (tramp-sh-handle-vc-r

From: Stefan Monnier
Subject: Re: [Emacs-diffs] trunk r113420: * net/tramp-sh.el (tramp-sh-handle-vc-registered): Use `ignore-error'.
Date: Tue, 16 Jul 2013 17:16:46 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

>>> +     (ignore-errors
>>> +       (tramp-run-real-handler 'vc-registered (list file))))))))
>> Is it normal/common for (tramp-run-real-handler 'vc-registered (list
>> file)) to signal an error in some corner cases?
> No. I have added this as self-defense of Tramp.

So an error here indicates an error in some code somewhere.  In this
case, with-demoted-errors is preferable.

> The error was triggered, when I have opened a file on a NAS via Tramp.
> I have mounted the emacs source directory there, and I have tried to
> open a file in that directory.
> Due to the existence of .../emacs/.bzr, there was a call
>   (process-file "bzr" nil t nil "status" "--no-classify" "README")
> bzr is not installed on that machine, so this call failed.

Sounds like a bug in vc-bzr-register.  Could you either try and fix it
there (catching the error right there), or file a bug report for it?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]