From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] trunk r113420: * net/tramp-sh.el (tramp-sh-handle-vc-registered): Use `ignore-error'. Date: Mon, 10 Jul 2017 17:53:38 +0200 Message-ID: <87a84cwanx.fsf@detlef> References: <87mwpm99me.fsf@gmx.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1499702442 4878 195.159.176.226 (10 Jul 2017 16:00:42 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 10 Jul 2017 16:00:42 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 10 18:00:38 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dUb6v-0000rK-VL for ged-emacs-devel@m.gmane.org; Mon, 10 Jul 2017 18:00:34 +0200 Original-Received: from localhost ([::1]:41598 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dUb71-0007Lb-6F for ged-emacs-devel@m.gmane.org; Mon, 10 Jul 2017 12:00:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34661) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dUb0R-0003D0-Gn for emacs-devel@gnu.org; Mon, 10 Jul 2017 11:53:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dUb0O-00072X-D7 for emacs-devel@gnu.org; Mon, 10 Jul 2017 11:53:51 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:62423) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dUb0O-00071M-2C for emacs-devel@gnu.org; Mon, 10 Jul 2017 11:53:48 -0400 Original-Received: from detlef.gmx.de ([212.86.63.246]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MdFwl-1dCEo3499H-00IYPF; Mon, 10 Jul 2017 17:53:41 +0200 In-Reply-To: (Stefan Monnier's message of "Tue, 16 Jul 2013 17:16:46 -0400") X-Provags-ID: V03:K0:sFd2Shlis487MtpfF6ALoGQGW2+zn81S9R0ntVNKPGUDxdeJuru EL6HHmelGhu4YZyo7n67ZZJJDdP2MQ6n1dlTJu7uhMIxCOi5R1g9Mq6Mf9aaE55LjE+8l6m QOfCE22QYemmH9dcv/ZACEgjE/0Rm4geKCqhK0nZukuNf04Mhl8RaimM76bUf/nFkNgusDQ HOXy0yh/8Q5r9i5+EY7zQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:SF0i8aeKs5Q=:9TwU0d+l/J1sG8zF+Lhf/G Vm5isZKbAvTLttskkVKsouggXbBXNmoWcgHRYcXy8KL58TVscw7Q9euzezRh9uUYXVtQ5aIY+ Z1rEDsZQv9Viu7OTZcVZbMVraNKOYKeV/KWAzNNkXHcDbkfLLqXInU6PPCHXpa3FxB/5uVlDd ryEUPUJPL9G103xqt75Pxjhnlk/BGlmR++wCJOxd6H9cmJy+VFHmhry6EsfoI1FVjcnvf4xyl IJUVw0rCpbc5+MR73yO6xV83BQwcw0Z37VwzKU3JHQX56hLs9O4B0GqpkFO3cvtVIs0pHBlKn v17CEpH5G9bpHimS9I2cSRCnNFEDpgxWMw4N1p4ggB101BM3mxAhm/07gtui1Ryg+8jKMKKHN hGEI1Ij3FrYL3bPr5xQZ9OPCW7xL5PYDmD/qBJjZBGPTxqmuxrBz189KaVsm8lk/Au25l+ZF5 g1MrK3um4rfvSomk/FdJ9DdB5Qx+5nsO0NtwX2gH10iuYOo9j4dCeAzuWC0wUzjdDC/UKBkd4 x6+daBMBpY8IF+Fze6rnnud5XMs9T8TxseZb6Pv6TeCez3roVNb6cOTO2nngpeBLNa+7eCSAC uhYtZxop1E7Oi/do0Hf5IltkzYLFPOYgV0Ap0qYSdNme0qlXIX4Xvikx/dE7olsvs70l4M3jk Q05+LT4xAmVyh+JTLrDw7nMC8L4oJx+b8AfDAJOeFgpae9xf36IwrVkg/2FnuA3uXLsFIFbeV j3deYZ+fYcTd/sbBmGACcQy4gRWm+E9KmMr+XGnYHxNtjnc5fDvtgqxlGDRixbaSEHwwFcI+ X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.17.22 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:216415 Archived-At: Stefan Monnier 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. > > So an error here indicates an error in some code somewhere. In this > case, with-demoted-errors is preferable. It took almost 4 years, but now I've fixed this. >> 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? This bug doesn't happen anymore. I don't remember whether I've filed a bug report, but it is fixed now. > Stefan Best regards, Michael (proud, 'cos I've shortened my todo list).