From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: Fixing dired hangs when NFS mount goes AWOL Date: Thu, 06 Oct 2011 19:58:32 +0200 Message-ID: <87aa9eypbr.fsf@gmx.de> References: <87mxdf3z8u.fsf@stupidchicken.com> <0jty7nnl1f.fsf@fencepost.gnu.org> <5bvcs3kq0m.fsf@fencepost.gnu.org> <87sjn68dhv.fsf@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1317923927 5801 80.91.229.12 (6 Oct 2011 17:58:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 6 Oct 2011 17:58:47 +0000 (UTC) Cc: Chong Yidong , Michael Olson , Emacs Development Discussions To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 06 19:58:41 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RBsDQ-0000T1-TI for ged-emacs-devel@m.gmane.org; Thu, 06 Oct 2011 19:58:41 +0200 Original-Received: from localhost ([::1]:55597 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBsDQ-0003PU-ID for ged-emacs-devel@m.gmane.org; Thu, 06 Oct 2011 13:58:40 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:49562) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBsDO-0003PE-5R for emacs-devel@gnu.org; Thu, 06 Oct 2011 13:58:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RBsDM-0007Nd-Qy for emacs-devel@gnu.org; Thu, 06 Oct 2011 13:58:38 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:43663) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1RBsDM-0007NT-BQ for emacs-devel@gnu.org; Thu, 06 Oct 2011 13:58:36 -0400 Original-Received: (qmail invoked by alias); 06 Oct 2011 17:58:34 -0000 Original-Received: from p57BB99CA.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.153.202] by mail.gmx.net (mp062) with SMTP; 06 Oct 2011 19:58:34 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX18EK4w6MZAEy8ow6QtScsbFW0OM6Q9x11LNddpNfw FgJEC/+efK0JhF In-Reply-To: (Stefan Monnier's message of "Thu, 06 Oct 2011 11:22:32 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 213.165.64.22 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:144626 Archived-At: Stefan Monnier writes: >>> The concept of "remote" file is a very fuzzy one, which means very >>> different things to different people in different cases. >>> I tend to agree that file-remote-p should return non-nil on NFS mounted >>> filesystems, but that's simply not implemented. Patch welcome, >> This will break Tramp completely. Please don't change its current behaviour. > > Why would it break Tramp? This would only change the behavior of > file-remote-p for file names which are not handled by Tramp, so it > shouldn't break Tramp any more than adding some other file-name-handler > for other kinds of remote magic file names. There was a very long discussion about, see In short: Tramp uses file-remote-p internally. OK, this could be replaced by an internal function. Other packages use it as well, inside and outside core Emacs. We didn't want to propagate tramp-* functions outside Tramp; file-remote-p is the check to be used when necessary. Not so important for basic file name operations, but needed for all process related things. > Stefan Best regards, Michael.