GNU bug report logs - #38807
[Feature request]: Support lisp workers like web workers.

Previous Next

Package: emacs;

Reported by: HaiJun Zhang <netjune <at> outlook.com>

Date: Mon, 30 Dec 2019 05:29:02 UTC

Severity: wishlist

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: HaiJun Zhang <netjune <at> outlook.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 38807 <at> debbugs.gnu.org, michael.albinus <at> gmx.de
Subject: bug#38807: [Feature request]: Support lisp workers like web workers.
Date: Sat, 4 Jan 2020 13:19:46 +0800
[Message part 1 (text/plain, inline)]
在 2020年1月3日 +0800 PM1:59,Eli Zaretskii <eliz <at> gnu.org>,写道:
>
> How do you write a useful Lisp application for a thread if you have no
> way of displaying any messages?

Workers are background workers. They don’t display messages directly. They post the error messages to the UI part of the lisp application.

For a lisp application such as an email client, it is splitted to two parts: the UI part and the worker part. The UI part may has two callbacks(or event handlers):
1. on_new_email
2. on_error

If the worker fetches an email successfully, it sends an event to the UI part and the on_new_email callback of the UI part will be called. If the worker fails, it sends an error to the UI part and the on_error callback will be called. The on_error callback can display the error message to user.


[Message part 2 (text/html, inline)]

This bug report was last modified 3 years and 63 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.