From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Dhruva Krishnamurthy" Newsgroups: gmane.emacs.devel Subject: Re: Slow access to files using UNC path Date: Sun, 18 Jul 2004 14:59:23 +0530 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <1090142963.25373.200575908@webmail.messagingengine.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1090143012 9821 80.91.224.253 (18 Jul 2004 09:30:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 18 Jul 2004 09:30:12 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sun Jul 18 11:30:02 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Bm7ze-00075r-00 for ; Sun, 18 Jul 2004 11:30:02 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1Bm7ze-0001zZ-00 for ; Sun, 18 Jul 2004 11:30:02 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bm82G-0000qn-M0 for emacs-devel@quimby.gnus.org; Sun, 18 Jul 2004 05:32:44 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Bm829-0000qi-Cs for emacs-devel@gnu.org; Sun, 18 Jul 2004 05:32:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Bm827-0000qW-PT for emacs-devel@gnu.org; Sun, 18 Jul 2004 05:32:37 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bm827-0000qT-NK for emacs-devel@gnu.org; Sun, 18 Jul 2004 05:32:35 -0400 Original-Received: from [66.111.4.26] (helo=out2.smtp.messagingengine.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Bm7z2-0000V7-Nu for emacs-devel@gnu.org; Sun, 18 Jul 2004 05:29:24 -0400 Original-Received: from server2.messagingengine.com (server2.internal [10.202.2.133]) by mail.messagingengine.com (Postfix) with ESMTP id 6A8C6C11ED7 for ; Sun, 18 Jul 2004 05:29:23 -0400 (EDT) Original-Received: by server2.messagingengine.com (Postfix, from userid 99) id 8B99C7B549; Sun, 18 Jul 2004 05:29:23 -0400 (EDT) Content-Disposition: inline X-Mailer: MIME::Lite 1.4 (F2.72; T1.001; A1.62; B3.01; Q3.01) Original-To: "Emacs Devel" X-Sasl-Enc: QzXOh4ccGsc34YLW/rjL4A 1090142963 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+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:25813 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:25813 Hi, Based on some inputs from dak/eliz and some extra digging into Elisp, I have the following version which can show good improvements in the behaviour from user point of view (in comparision wrt XEmacs). I have this modified version in my _emacs file: ;; For faster opening of files with UNC path (defadvice find-file (before find-file-unc first activate) "Open file literally if UNC path for better performance" (let ((file (replace-regexp-in-string "\\\\" "/" (ad-get-arg 0)))) (if (string-match "^//" file) (cond ((find-file-literally file) (set-auto-mode)))))) ; Guess the mode with best regards, dhruva ________________________________________ Dhruva Krishnamurthy Proud FSF member: #1935 http://schemer.fateback.com/