[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.
Tom
ChangeLog:
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))
(cond
- Re: Hideously slow VC status queries fixed, (continued)
- Re: Hideously slow VC status queries fixed, Eric S. Raymond, 2007/12/29
- Re: Hideously slow VC status queries fixed, Tom Tromey, 2007/12/30
- Re: Hideously slow VC status queries fixed, Eric S. Raymond, 2007/12/30
- Re: Hideously slow VC status queries fixed, Tom Tromey, 2007/12/31
- Re: Hideously slow VC status queries fixed, Eric S. Raymond, 2007/12/31
- Re: Hideously slow VC status queries fixed, Dan Nicolaescu, 2007/12/31
- Re: Hideously slow VC status queries fixed, Eric S. Raymond, 2007/12/31
Re: Hideously slow VC status queries fixed, Richard Stallman, 2007/12/27
Re: Hideously slow VC status queries fixed, Dan Nicolaescu, 2007/12/26
Re: Hideously slow VC status queries fixed, Stefan Monnier, 2007/12/29
Fwd: Hideously slow VC status queries fixed, Alexandru Harsanyi, 2007/12/27