[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Slow access to files using UNC path

From: Dhruva Krishnamurthy
Subject: Re: Slow access to files using UNC path
Date: Sun, 18 Jul 2004 14:59:23 +0530

 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
          (if (string-match "^//" file)
              (cond ((find-file-literally file)
                     (set-auto-mode)))))) ; Guess the mode

with best regards,
Dhruva Krishnamurthy
Proud FSF member: #1935

reply via email to

[Prev in Thread] Current Thread [Next in Thread]