From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/7020 Path: main.gmane.org!not-for-mail From: Andy Norman Newsgroups: gmane.emacs.gnus.general Subject: Re: ange-ftp caching problems for remote nndir groups Date: Thu, 27 Jun 1996 23:40:44 +0000 Message-ID: <199606272340.XAA00285@alpha.hpl.hp.com> References: NNTP-Posting-Host: coloc-standby.netfonds.no X-Trace: main.gmane.org 1035147391 5593 80.91.224.250 (20 Oct 2002 20:56:31 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 20:56:31 +0000 (UTC) Cc: ding@ifi.uio.no, ange-ftp-lovers%cuckoo.hpl.hp.com@hplb.hpl.hp.com Return-Path: ding-request@ifi.uio.no Original-Received: from ifi.uio.no (ifi.uio.no [129.240.64.2]) by deanna.miranova.com (8.7.5/8.6.9) with SMTP id QAA17209 for ; Thu, 27 Jun 1996 16:28:41 -0700 Original-Received: from hplb.hpl.hp.com (hplb.hpl.hp.com [15.255.59.2]) by ifi.uio.no with ESMTP (8.6.11/ifi2.4) id ; Fri, 28 Jun 1996 00:41:14 +0200 Original-Received: from otter.hpl.hp.com by hplb.hpl.hp.com; Thu, 27 Jun 1996 23:41:10 +0100 Original-Received: from alpha.hpl.hp.com by otter.hpl.hp.com with ESMTP (1.37.109.16/15.6+ISC) id AA090535265; Thu, 27 Jun 1996 23:41:05 +0100 Original-Received: from hplb (localhost [127.0.0.1]) by alpha.hpl.hp.com (8.7.4/8.7.3) with ESMTP id XAA00285; Thu, 27 Jun 1996 23:40:44 GMT Original-To: Lars Magne Ingebrigtsen In-Reply-To: Your message of "27 Jun 1996 19:20:00 GMT." Xref: main.gmane.org gmane.emacs.gnus.general:7020 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:7020 Lars writes: > What is the canonical way to check whether a given filename is an > ange-ftp filename or not? I can think of some heuristics to use, but > is there a fail-safe method? Something yukky like: (defun remote-filename-p (path) (if (boundp 'ange-ftp-path-format) (save-match-data (string-match (car ange-ftp-path-format) path)) (if (boundp 'efs-path-regexp) (save-match-data (string-match efs-path-regexp path))))) or some similar variant might work OK. -- ange -- <>< ange@hplb.hpl.hp.com