Re: Can't interrupt directory_files_internal run fromtimer-event-handler

2005-08-12 Thread Stefan Monnier
>> I'd say use while-no-input but you're in a better position to make this call. > the only thing i wanted is: An expert-estimation if while-no-input is > a good way - or with-local-quit - if i remember right you said that this > could easily being backported - maybe its not a really good idea to

AW: Can't interrupt directory_files_internal run fromtimer-event-handler

2005-08-12 Thread klaus.berndl
Title: AW: Can't interrupt directory_files_internal run fromtimer-event-handler >> With the current available elisp-tools (macos, functions etc.) ECB can run >> these tasks only pseudo-stealthy...therefore a way to make this really >> stealthy would be very importa

Re: Can't interrupt directory_files_internal run fromtimer-event-handler

2005-08-12 Thread Stefan Monnier
> With the current available elisp-tools (macos, functions etc.) ECB can run > these tasks only pseudo-stealthy...therefore a way to make this really > stealthy would be very important for ECB so users are not blocked... > I have no preference how to achieve this (while-no-input, with-local-quit >

Re: AW: Can't interrupt directory_files_internal run fromtimer-event-handler

2005-08-10 Thread Richard M. Stallman
In fact: ECB has some tasks which should be run really(!) stealthy, like checking if a dir is empty, getting the VC-state of all files in a dir, checking which files in a dir are read-only... in case of a remote host The best way to do this and make sure it is stealthy is by running a

AW: Can't interrupt directory_files_internal run fromtimer-event-handler

2005-08-10 Thread klaus.berndl
Title: AW: Can't interrupt directory_files_internal run fromtimer-event-handler >> ECB encapslates ist "stealthy" tasks in a loop like: >> (while (and (not (input-pending-p)) >> ... >> So IMHO C-g should work >Only if

Re: Can't interrupt directory_files_internal run fromtimer-event-handler

2005-08-09 Thread Stefan Monnier
> ECB encapslates ist "stealthy" tasks in a loop like: > (while (and (not (input-pending-p)) > ... > So IMHO C-g should work Only if each iteration takes a (small) finite time. The OP's problem is that one of the iteration doesn't terminate. > AFAIK there is a new m

Re: AW: Can't interrupt directory_files_internal run fromtimer-event-handler

2005-08-08 Thread Eli Zaretskii
> Date: Mon, 8 Aug 2005 13:27:46 +0200 > From: <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]>, > > > >A combination of file-attributes (looking at the number of links) and > >directory-files should do that, I think. > > Hmm, maybe i oversee something here - but when you have to call > direc

Re: Can't interrupt directory_files_internal run fromtimer-event-handler

2005-08-08 Thread Richard M. Stallman
For that reason, I think we should either document throw-on-input (and keep its name), or [better] change while-no-input to return `quit' for C-g, `input-pending-p' for input, and value of BODY otherwise. This won't achieve the goal of making it possible to distinguish all the possible

AW: Can't interrupt directory_files_internal run fromtimer-event-handler

2005-08-08 Thread klaus.berndl
Title: AW: Can't interrupt directory_files_internal run fromtimer-event-handler >>> There's no need to run any program just to know if a directory is >>> empty.  Emacs has primitives which will tell that directly (e.g., >>> file-attributes)

Re: Can't interrupt directory_files_internal run fromtimer-event-handler

2005-08-06 Thread Kim F. Storm
"Richard M. Stallman" <[EMAIL PROTECTED]> writes: > BTW, `while-no-input' and `throw-on-input' are not documented on the > Emacs Lisp Reference; and the docstring for `throw-on-input' is > suboptimal: > > while-no-input is in the Lisp manual. throw-on-input is not for users > to use;

Re: Can't interrupt directory_files_internal run fromtimer-event-handler

2005-08-06 Thread Juanma Barranquero
On 8/6/05, Richard M. Stallman <[EMAIL PROTECTED]> wrote: > while-no-input is in the Lisp manual. Yes, you're right. Sorry. > throw-on-input is not for users > to use; perhaps we should rename it to while-no-input-throw-internal. I agree. -- /L/e/k/t/u __

Re: Can't interrupt directory_files_internal run fromtimer-event-handler

2005-08-05 Thread Richard M. Stallman
BTW, `while-no-input' and `throw-on-input' are not documented on the Emacs Lisp Reference; and the docstring for `throw-on-input' is suboptimal: while-no-input is in the Lisp manual. throw-on-input is not for users to use; perhaps we should rename it to while-no-input-throw-internal.

Re: Can't interrupt directory_files_internal run fromtimer-event-handler

2005-08-05 Thread Juanma Barranquero
On 8/5/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > AFAIK there is a new macro in CVS named `while-no-input' (there > was a discussion some time ago) BTW, `while-no-input' and `throw-on-input' are not documented on the Emacs Lisp Reference; and the docstring for `throw-on-input' is subo

RE: Can't interrupt directory_files_internal run fromtimer-event-handler

2005-08-05 Thread klaus.berndl
Klaus Zeitler wrote: > The following problem occurs with CVS emacs + ECB under Solaris 5.8. > > While ECB performs its stealth update activities, emacs sometimes > seems to > hang for a long time. > gdb shows the following function and backtrace: > > directory_files_internal (directory=16076323,