From: <klaus.berndl@sdm.de>
Cc: kzeitler@lucent.com, monnier@iro.umontreal.ca, emacs-devel@gnu.org
Subject: AW: AW: AW: Can't interrupt directory_files_internalrunfromtimer-event-handler
Date: Fri, 12 Aug 2005 10:16:26 +0200 [thread overview]
Message-ID: <A47B192B0358794C958615D788BF7FB71789C8@mucmail1.sdm.de> (raw)
[-- 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
next reply other threads:[~2005-08-12 8:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-12 8:16 klaus.berndl [this message]
2005-08-12 19:58 ` AW: AW: AW: Can't interrupt directory_files_internalrunfromtimer-event-handler Richard M. Stallman
2005-08-14 6:47 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=A47B192B0358794C958615D788BF7FB71789C8@mucmail1.sdm.de \
--to=klaus.berndl@sdm.de \
--cc=emacs-devel@gnu.org \
--cc=kzeitler@lucent.com \
--cc=monnier@iro.umontreal.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).