From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: testing for a remote file to include file on a Windows mappeddrive Date: Wed, 30 Jan 2008 09:45:16 -0500 Message-ID: References: <871w844yff.fsf@gmx.de> <87bq781bf7.fsf@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1201704341 15117 80.91.229.12 (30 Jan 2008 14:45:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 30 Jan 2008 14:45:41 +0000 (UTC) Cc: emacs-devel@gnu.org, Michael Albinus , drew.adams@oracle.com, jasonr@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 30 15:46:01 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JKECM-0003SC-Db for ged-emacs-devel@m.gmane.org; Wed, 30 Jan 2008 15:45:58 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JKEBv-0003zl-5U for ged-emacs-devel@m.gmane.org; Wed, 30 Jan 2008 09:45:31 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JKEBr-0003yv-JM for emacs-devel@gnu.org; Wed, 30 Jan 2008 09:45:27 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JKEBq-0003y8-3v for emacs-devel@gnu.org; Wed, 30 Jan 2008 09:45:27 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JKEBp-0003y5-VF for emacs-devel@gnu.org; Wed, 30 Jan 2008 09:45:25 -0500 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JKEBi-0007fF-LO; Wed, 30 Jan 2008 09:45:18 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao8CALkcoEfO+J95dGdsb2JhbACQJwEwnzSBAg X-IronPort-AV: E=Sophos;i="4.25,277,1199682000"; d="scan'208";a="13398487" Original-Received: from smtp.pppoe.ca ([65.39.196.238]) by ironport2-out.pppoe.ca with ESMTP; 30 Jan 2008 09:45:19 -0500 Original-Received: from pastel.home ([206.248.159.121]) by smtp.pppoe.ca (Internet Mail Server v1.0) with ESMTP id KPX58517; Wed, 30 Jan 2008 09:45:17 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id AD95D85F8; Wed, 30 Jan 2008 09:45:16 -0500 (EST) In-Reply-To: (Stefan Monnier's message of "Wed, 30 Jan 2008 09:29:49 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:87776 Archived-At: >> I think the same goes for `unhandled-file-name'. > I don't understand. unhandled-file-name-directory is used to get > a directory that can be used as cwd for subprocesses. And the new > operation is meant to be used to get a filename that can be passed > to subprocesses. So AFAICT they share everything and should use the > same name. And actually the default implementation of unhandled-file-name-directory should be changed from /* If the file name has special constructs in it, call the corresponding file handler. */ handler = Ffind_file_name_handler (filename, Qunhandled_file_name_directory); if (!NILP (handler)) return call2 (handler, Qunhandled_file_name_directory, filename); return Ffile_name_directory (filename); to Lisp_Object ufn = Funhandled_file_name (Ffile_name_directory (filename)); if (!NILP (ufn)) return ufn; /* In most cases the unhandled-file-name handler already took care of it but there might be yet-unknown corner cases where it's not enough or maybe the file-name-handler hasn't been updated yet to define unhandled-file-name. */ handler = Ffind_file_name_handler (filename, Qunhandled_file_name_directory); if (!NILP (handler)) return call2 (handler, Qunhandled_file_name_directory, filename); else return build_string ("/"); and my guess is that there won't be any file-name-handler that will ever need to define unhandled-file-name-directory any more. Stefan