From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: Slow access to files using UNC path Date: Wed, 08 Sep 2004 10:18:14 +0200 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: References: <68c73b1a04083122477869f5a@mail.gmail.com> <1094020967.1821.22.camel@localhost> <68c73b1a040907234950a01f97@mail.gmail.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1094631545 4538 80.91.224.253 (8 Sep 2004 08:19:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 8 Sep 2004 08:19:05 +0000 (UTC) Cc: Emacs Devel , KOBAYASHI Yasuhiro , Stefan Monnier , Andre Spiegel , Richard Stallman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 08 10:18:54 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1C4xfK-0002dC-00 for ; Wed, 08 Sep 2004 10:18:54 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C4xka-0000GQ-Rd for ged-emacs-devel@m.gmane.org; Wed, 08 Sep 2004 04:24:20 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C4xkR-0000Fz-Fs for emacs-devel@gnu.org; Wed, 08 Sep 2004 04:24:11 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C4xkQ-0000FZ-L5 for emacs-devel@gnu.org; Wed, 08 Sep 2004 04:24:11 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C4xkQ-0000FW-EE for emacs-devel@gnu.org; Wed, 08 Sep 2004 04:24:10 -0400 Original-Received: from [212.88.64.25] (helo=mail-relay.sonofon.dk) by monty-python.gnu.org with smtp (Exim 4.34) id 1C4xek-0007sE-4G for emacs-devel@gnu.org; Wed, 08 Sep 2004 04:18:18 -0400 Original-Received: (qmail 65339 invoked from network); 8 Sep 2004 08:18:15 -0000 Original-Received: from unknown (HELO kfs-l.imdomain.dk.cua.dk) (213.83.150.2) by 0 with SMTP; 8 Sep 2004 08:18:15 -0000 Original-To: Dhruva Krishnamurthy In-Reply-To: <68c73b1a040907234950a01f97@mail.gmail.com> (Dhruva Krishnamurthy's message of "Wed, 8 Sep 2004 12:19:17 +0530") User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (gnu/linux) 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: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:26880 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:26880 Dhruva Krishnamurthy writes: > + (defvar vc-hostname-fs-path-re "\\`\\([\\/][\\/]\\|/net/\\|/afs/\\)" > + "Regex variable used to avoid determining whether file is under vc-arch > + or vc-mcvs. The default regexp prevents the determination of type of vc for > + folders in UNC, net and afs. This speeds up opening of files by not trying to > + determine whether file is under vc. This can be modified by user to match a > + different path or paths") In Emacs, a 'path' is something like load-path, and we never use the term 'path' for a directory name or file name. IMO, a better name would be something like `vc-ignore-file-re'. (defvar vc-ignore-file-re "\\`\\([\\/][\\/]\\|/net/\\|/afs/\\)" "Regular expression matching file names that are not under vc control. Specifically, it is used to avoid determining whether file is under vc-arch or vc-mcvs. The default regexp prevents the determination of type of vc for folders in UNC, net and afs. This speeds up opening of files by not trying to determine whether file is under vc. This can be modified by user to match a different directory or file names.") BTW, I don't understand why this is specific for vc-arch and vc-mcvs ? > + > (defcustom vc-handled-backends '(RCS CVS SVN SCCS Arch MCVS) > ;; Arch and MCVS come last because they are per-tree rather than per-dir. > "*List of version control backends for which VC will be used. > *** D:/tmp/cvs/emacs/lisp/vc-mcvs.el 2004-05-31 14:05:26.938250000 +0530 > --- vc-mcvs.el 2004-09-08 12:07:35.548205800 +0530 > *************** This is only meaningful if you don't use > *** 118,123 **** > --- 118,125 ---- > ;;;###autoload (while (and (stringp dir) > ;;;###autoload (not (equal > ;;;###autoload dir (setq dir (file-name-directory dir)))) > + ;;;###autoload ;; avoid searching no existing computer on Windowz. > + ;;;###autoload (not (string-match vc-hostname-fs-path-re dir)) > ;;;###autoload dir) > ;;;###autoload (setq dir (if (file-directory-p > ;;;###autoload (expand-file-name "MCVS/CVS" dir)) > *** D:/tmp/cvs/emacs/lisp/vc-arch.el 2004-09-08 09:35:36.187974400 +0530 > --- vc-arch.el 2004-09-08 12:07:35.608295200 +0530 > *************** > *** 77,82 **** > --- 77,84 ---- > ;;;###autoload (while (and (stringp dir) > ;;;###autoload (not (equal > ;;;###autoload dir (setq dir (file-name-directory dir)))) > + ;;;###autoload ;; Avoid searching no existing computer on Windowz. > + ;;;###autoload (not (string-match vc-hostname-fs-path-re dir)) > ;;;###autoload dir) > ;;;###autoload (setq dir (if (file-directory-p > ;;;###autoload (expand-file-name "{arch}" dir)) > _______________________________________________ > Emacs-devel mailing list > Emacs-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-devel -- Kim F. Storm http://www.cua.dk