[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Patch to make VC annotate async
From: |
Tom Tromey |
Subject: |
Re: Patch to make VC annotate async |
Date: |
Mon, 09 Jul 2007 09:12:00 -0600 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.990 (gnu/linux) |
>>>>> "Stefan" == Stefan Monnier <address@hidden> writes:
Stefan> For the vc-cvs.el part of the patch , can you try the patch below?
I haven't tried it yet, but I do have a question.
Stefan> +(defun vc-cvs-annotate-process-filter (process string)
Stefan> + (setq string (concat (process-get process 'output) string))
Stefan> + (if (not (string-match "^[0-9]" string))
Stefan> + ;; Still waiting for the first real line.
Stefan> + (process-put process 'output string)
Stefan> + ;; FIXME: we shouldn't hardcode vc-process-filter here.
Stefan> + (set-process-filter process 'vc-process-filter)
Stefan> + (vc-process-filter process (substring string (match-beginning
0)))))
I had written a much more complicated filter because my reading of the
Elisp manual is that the output from the process won't necessarily
appear as full lines. Is that not so?
Tom
o