[Top][All Lists]

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

Re: Hideously slow VC status queries fixed

From: Tom Tromey
Subject: Re: Hideously slow VC status queries fixed
Date: Fri, 28 Dec 2007 12:36:38 -0700
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.990 (gnu/linux)

>>>>> "Tom" == Tom Tromey <address@hidden> writes:

Tom> I'm not really sure where to disable undo for this... maybe
Tom> somewhere in dired.

This patch seems to fix the undo problem.  I don't get a message any
more.  It doesn't appear to speed up vc-dired, though.


2007-12-28  Tom Tromey  <address@hidden>

        * vc.el (vc-dired-hook): Disable undo.

Index: vc.el
RCS file: /sources/emacs/emacs/lisp/vc.el,v
retrieving revision 1.501
diff -u -r1.501 vc.el
--- vc.el       28 Dec 2007 18:16:55 -0000      1.501
+++ vc.el       28 Dec 2007 20:04:59 -0000
@@ -2349,7 +2349,10 @@
     (if (and (vc-call-backend backend 'responsible-p default-directory)
             (vc-find-backend-function backend 'dir-state))
        (vc-call-backend backend 'dir-state default-directory)))
-  (let (filename (inhibit-read-only t))
+  (let (filename
+       (inhibit-read-only t)
+       ;; Temporarily disable undo.
+       (buffer-undo-list t))
     (goto-char (point-min))
     (while (not (eobp))

reply via email to

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