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: Sat, 17 Jul 2004 18:53:18 +0530 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <1090070598.482.200548261@webmail.messagingengine.com> References: <1089978045.7826.200489429@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 1090070622 6136 80.91.224.253 (17 Jul 2004 13:23:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 17 Jul 2004 13:23:42 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sat Jul 17 15:23:34 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 1BlpA6-0001h1-00 for ; Sat, 17 Jul 2004 15:23:34 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BlpA6-0003nc-00 for ; Sat, 17 Jul 2004 15:23:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BlpCg-0006ub-G6 for emacs-devel@quimby.gnus.org; Sat, 17 Jul 2004 09:26:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BlpCV-0006t0-Qc for emacs-devel@gnu.org; Sat, 17 Jul 2004 09:26:03 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BlpCT-0006rf-Ua for emacs-devel@gnu.org; Sat, 17 Jul 2004 09:26:03 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BlpCT-0006rV-Ni for emacs-devel@gnu.org; Sat, 17 Jul 2004 09:26:01 -0400 Original-Received: from [66.111.4.26] (helo=out2.smtp.messagingengine.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Blp9s-0004jd-0Q for emacs-devel@gnu.org; Sat, 17 Jul 2004 09:23:20 -0400 Original-Received: from server2.messagingengine.com (server2.internal [10.202.2.133]) by mail.messagingengine.com (Postfix) with ESMTP id 4E910C121D5; Sat, 17 Jul 2004 09:23:18 -0400 (EDT) Original-Received: by server2.messagingengine.com (Postfix, from userid 99) id 8786F80FB9; Sat, 17 Jul 2004 09:23:18 -0400 (EDT) Content-Disposition: inline X-Mailer: MIME::Lite 1.4 (F2.72; T1.001; A1.62; B3.01; Q3.01) In-Reply-To: Original-To: "Peter Lee" , "Emacs Devel" X-Sasl-Enc: JNH+Eh2Lo07/yZRvbvKMSA 1090070598 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:25791 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:25791 Hello, On Fri, 16 Jul 2004 08:22:01 -0500, "Peter Lee" said: > >>>> Dhruva Krishnamurthy writes: > > Dhruva> Hello, I find accessing a file using UNC path using GNU > Dhruva> Emacs (CVS Head, W2K and MinGW32 build) very slow when > Dhruva> compared to XEmacs. Has anyone experienced the same and > Dhruva> explored the reason? > > I'm using mingw32 cvs build on XP and UNC access is very fast. No > different actually than any other application. Does it happen if you > start without an init file '-Q'? I just realised that XEmacs does something like find-file-literally (and a little more, I guess). If I use find-file-literally in GNU Emacs, it is as fast as in XEmacs. I am using the following code in my .emacs (dot emacs). ;; For faster opening of files with UNC path (defadvice find-file (before find-file-unc first activate) "Insert an empty line when moving up from the top line." (let ((file (ad-get-arg 0))) (if (or (string-match "^//" file) (string-match "^\\\\" file)) (cond ((find-file-literally file) (font-lock-fontify-buffer)))))) PS: Any improvements for the above code is welcome, I am an amature. ________________________________________ Dhruva Krishnamurthy Proud FSF member: #1935 http://schemer.fateback.com/