[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: grep-use-null-device
From: |
Stefan Monnier |
Subject: |
Re: grep-use-null-device |
Date: |
Thu, 01 Sep 2005 14:18:30 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
>> + (when compilation-disable-input
>> + (condition-case nil
>> + (process-send-eof proc)
>> + ;; The process may have exited already.
>> + (error nil)))
>> (setq compilation-in-progress
>> (cons proc compilation-in-progress)))
>> ;; No asynchronous processes available.
> I think it is the wrong fix to just ignore an error which should not
> occur in the first place. Rather process-send-eof should be fixed not
> to throw an error as long as the process is not considered dead from
> Emacs' point of view. That there is nobody to actually look at the
> eof can't be considered a problem in asynchronous operations: the
> consuming process can close down without waiting for an explicit eof.
I agree it'd be the better thing to do. But I have no patch to do that, so
unless someone else can provide a patch for it, my suggestion is a good
temporary workaround.
Stefan