unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* AW: AW: AW: Can't interrupt directory_files_internalrunfromtimer-event-handler
@ 2005-08-12  8:16 klaus.berndl
  2005-08-12 19:58 ` Richard M. Stallman
  0 siblings, 1 reply; 3+ messages in thread
From: klaus.berndl @ 2005-08-12  8:16 UTC (permalink / raw)
  Cc: kzeitler, monnier, emacs-devel


[-- Attachment #1.1: Type: text/plain, Size: 1346 bytes --]

>>    >The best way to do this and make sure it is stealthy is by running a
>>    >subprocess.  The subprocess can run in parallel with Emacs.

>>    Hmm, i'm not sure if this is the best way?!

>If the primitives you need to do the job in Emacs LIsp can be slow, I
>see no other way to do the job except to avoid using those primitives.

I see another way:

IMHO reinventing the wheel for all these (potentially slow) elisp-
primitives is not worth the effort because IMHO for an ECB-user it is
much more important not being blocked. This can be achieved much easier
by implementing the stealthy task so they each key- or mouse-press
immediatelly interrupts a long-lasting action. So i do not really
elisp-threads if there is at least a elisp-tool which guarantees this
interrupt. AFAIK while-no-input is this tool . The only disadvantage
i can see is that it will be first available in Emacs 22. Therefore
my other question in another answer for with-local-quit mentioned by
Stefan (he said, this could be easily backported). AFAICS with-local-quit
would at least guarantee that C-g interrupts a long-lasting iteration
of a stealth task, right?

>Some day maybe that Emacs will have multi-threading, but that
>won't be soon.

I will not stop breathing until this feature will arise ;-)

Thansk for your help
Klaus

[-- Attachment #1.2: Type: text/html, Size: 1973 bytes --]

[-- Attachment #2: Type: text/plain, Size: 142 bytes --]

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-08-14  6:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-12  8:16 AW: AW: AW: Can't interrupt directory_files_internalrunfromtimer-event-handler klaus.berndl
2005-08-12 19:58 ` Richard M. Stallman
2005-08-14  6:47   ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).