From: Michael Albinus <michael.albinus@gmx.de>
To: Stefan Monnier <monnier@IRO.UMontreal.CA>
Cc: emacs-devel@gnu.org
Subject: Re: [Emacs-diffs] trunk r113420: * net/tramp-sh.el (tramp-sh-handle-vc-registered): Use `ignore-error'.
Date: Tue, 16 Jul 2013 10:44:57 +0200 [thread overview]
Message-ID: <87mwpm99me.fsf@gmx.de> (raw)
In-Reply-To: jwv7ggre64b.fsf-monnier+emacs@gnu.org
Stefan Monnier <monnier@IRO.UMontreal.CA> writes:
>> + (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.
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.
The real cause of the problem is a design deficiency, I believe. vc-bzr
should check, whether bzr is installed. Unfortunately, we have only
`executable-find', which works on the local machine. We would need a
counterpart of this function for remote machines, like the pairs
`call-process'/`process-file' and `start-process'/`start-file-process'.
> Stefan
Best regards, Michael.
next prev parent reply other threads:[~2013-07-16 8:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <E1UyRIz-0005sJ-Kb@vcs.savannah.gnu.org>
2013-07-15 23:50 ` [Emacs-diffs] trunk r113420: * net/tramp-sh.el (tramp-sh-handle-vc-registered): Use `ignore-error' Stefan Monnier
2013-07-16 8:44 ` Michael Albinus [this message]
2013-07-16 21:16 ` Stefan Monnier
2013-07-17 6:59 ` Michael Albinus
2017-07-10 15:53 ` Michael Albinus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87mwpm99me.fsf@gmx.de \
--to=michael.albinus@gmx.de \
--cc=emacs-devel@gnu.org \
--cc=monnier@IRO.UMontreal.CA \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.