[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Can't interrupt directory_files_internal run from timer-event-handle
From: |
Richard M. Stallman |
Subject: |
Re: Can't interrupt directory_files_internal run from timer-event-handler |
Date: |
Fri, 05 Aug 2005 16:38:14 -0400 |
Timer code normally turns off C-g so that you won't interrupt it
by accident. (After all, you can't predict when the timer code
will be running.) If ECB is going to do something potentially
slow from a timer, it should probably bind inhibit-quit to nil
around that code, after displaying a message in the echo area
to inform the user what is happening.
Alternatively, it could use start-process to run ls asychronously
as a way to find out whether the directory is empty. The process
sentinel could take action based on whether the output was empty.
Then you wouldn't have any such problem.
I suggest forwarding this to the ECB developers.
Re: Can't interrupt directory_files_internal run from timer-event-handler, Stefan Monnier, 2005/08/09