From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: master 9dc306b1: Improve reporting of I/O, access errors Date: Fri, 20 Sep 2019 14:43:46 +0200 Message-ID: <87woe3p27x.fsf@gmx.de> References: <20190918022442.11082.40975@vcs0.savannah.gnu.org> <20190918022444.103AC207F5@vcs0.savannah.gnu.org> <875zlqgiga.fsf@gmx.de> <585476bd-e9f4-f622-a114-d7db6a36b06a@cs.ucla.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="203138"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 20 14:44:27 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iBIGw-000qf2-17 for ged-emacs-devel@m.gmane.org; Fri, 20 Sep 2019 14:44:26 +0200 Original-Received: from localhost ([::1]:59010 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iBIGu-0006oT-BU for ged-emacs-devel@m.gmane.org; Fri, 20 Sep 2019 08:44:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48034) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iBIGY-0006mj-TP for emacs-devel@gnu.org; Fri, 20 Sep 2019 08:44:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iBIGX-0004fz-N1 for emacs-devel@gnu.org; Fri, 20 Sep 2019 08:44:02 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:34305) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iBIGX-0004f6-B5 for emacs-devel@gnu.org; Fri, 20 Sep 2019 08:44:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1568983427; bh=eCDGBOtOohsMC26CIIejl86iD2G/Vrm891hegs8itTI=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=KdyI4IAnd0JmjDKFXWtZhp1cnqqdLkLIzaCWc5VncnxRokYyLo5+Yq/76XDR16kyU wk7N06OMrqD2PQHi3XsAkHK38r0npESJ5m3aWSzmMp6tZpFh3GOx3jBJGiWGHtaZjf BeDKdWybypPIx8Z+V5GK26+XtvX6JIkySnJ35ESM= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from detlef.gmx.de ([212.86.38.214]) by mail.gmx.com (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N17UQ-1i547l2ybK-012Z1R; Fri, 20 Sep 2019 14:43:47 +0200 In-Reply-To: <585476bd-e9f4-f622-a114-d7db6a36b06a@cs.ucla.edu> (Paul Eggert's message of "Thu, 19 Sep 2019 17:21:09 -0700") X-Provags-ID: V03:K1:GNN4sRDjG2+97eSqPwA70AZaaX1dEIXmFVFE3xc3Jskzh7DL535 w8HJEDzYa6gbUvQoZW6hBsajmpuIWr73uHYejrzF/sXXXgRrPPIEP5JPA8bDNe15dvxAacz x+rdIbGC3sbb+3Gt2t3mnwOTZvQD+dBPdv8p+pBiGF0PMDh05pCc4SEaKnV78uvb3JBUTzk YeK8xEqpqzmGk3hPz90Nw== X-UI-Out-Filterresults: notjunk:1;V03:K0:hIodg6ViLdw=:UCQtvscaurBfF1TSXqIOco BGn6PMBwJF1yFs3YhMJrBvghC2Qfbvh+XUjS4mDPlGU25DpQ4c1aMA7n+xZlLm/1aErMZb2nW VF1eQmyLhCb6IrKO7jMiianPPXFKAkuHB6PmSy20owa48ivv+ZKGVDJL2gFaU56v4zGP0N+8K YTmr5J6UXpvYkv+debhtZ6GaZhVsSmv86ZBME0ywpHE7xmZdXBEEDOp80lCtFs9z5D8/1J2u8 156tLA9uIaY8Zmn/XFusN6feMr3Y18ZJ3ZUlCyaRD+3WU0zE/J+vn2m1Ajvors6XNki5b/2sq vtaSIBFZ7Y2rITW1K3IghY82Q6qvVBjrXGAXhHnGJbpbL8g6PF0TrA1DWOHMwXfIwtpaVruzJ SBnHplcAt4saJVs2HDyQAHC+Lay68Q27tA9bSjELT4M5vAQaNawJmdPgXn0+kYdvIFdlFcccs M2ngAjCa6k1FtlrNHcwP7Kt642WOnN3G6Ri+nEz1YDI+O8H7Fhm46rZpsHII/ukp3ntvZaT4S M2Jbrdl2+59IefKfMS5HTJXFCmc6XssGWMgQAFWF2c0pRz0NgeK7CyHANaoOyCNi5bg4fXm0o 4yj07OSGdHxRYzBUDFn4WJAv62Klsk+e73C33ug4vizu2tZz6wzuKVdQgByFm8xNpNPJhp9h0 Eab33I1ie5GjpxCDvBiVXbjrjeF8yS9UgUZaW/f1ydZC3gYKrJ675eZVhYyTAE8VqqKC/v2vk CwcU5aMwkuHoUTWI1vxM5+6LgDStX6LjagI17CLoiBeCRF4iVt28DJZ7wsJA5KObUPOHW1BO X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.17.20 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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:240182 Archived-At: Paul Eggert writes: Hi Paul, >> Tramp trusts on file-attributes returning nil, when a >> file does not exist or is not accessible for whatever reason. This is >> true also for local files. > > Could you give an example of where Tramp does this? That is, suppose > there is a serious local-file error (I/O error, ancestor-directory=20 > permissions failure, etc.) when one uses Tramp to access a file - when > would it be wrong for Tramp to signal such an error? For such signals we have `access-file'. We shouldn't move its functionality to `file-attributes'. >> Furthermore, Tramp does not report anything but nil if a remote file is >> not accessible due to I/O errors. So the promise of this change cannot >> be kept for all situations. > > It would be nicer if serious errors were also signaled for remote > files, but that's not essential; such a feature can be delayed until a > later version (if ever). Tramp signals errors via =C2=B4access-file'. Its current implementation is not perfect, and should be improved, but that's another story. Best regards, Michael.