GNU bug report logs - #42028
[Feature Request] 27.0.91; Provide the ability dynamic modules to post events in emacs event loop

Previous Next

Package: emacs;

Reported by: Ivan Yonchovski <yyoncho <at> gmail.com>

Date: Wed, 24 Jun 2020 07:15:01 UTC

Severity: wishlist

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Ivan Yonchovski <yyoncho <at> gmail.com>
Cc: 42028 <at> debbugs.gnu.org
Subject: bug#42028: [Feature Request] 27.0.91; Provide the ability dynamic modules to post events in emacs event loop
Date: Wed, 24 Jun 2020 17:44:42 +0300
> From: Ivan Yonchovski <yyoncho <at> gmail.com>
> Date: Wed, 24 Jun 2020 10:14:44 +0300
> 
> This is needed for the cases when the module is listening for extenal
> events and wants to call back emacs to process them. ATM this is kind of
> possible by using signals on linux and using WM_INPUTLANGCHANGE as
> described in https://nullprogram.com/blog/2017/02/14/ but this looks
> more a hack for a missing feature.

It is almost trivial to let modules insert events into the event
queue.  The problem is that I expect a module that inserts such events
to want to be called to process those events as well.  Is that
expectation correct?  If it is, then we need to think about extending
the mechanism that calls event handlers, not just about exposing the
likes of kbd_buffer_store_event to modules.  We should also consider
how a module could define its own events.

IOW, this calls for a slightly more detailed specification, before
someone could sit down and code the stuff.  I suggest to take a look
at how existing events are handled, and propose such a detailed
specification.

Thanks.




This bug report was last modified 4 years and 356 days ago.

Previous Next


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