fsm-el 0.2.1-4 source package in Ubuntu
Changelog
fsm-el (0.2.1-4) unstable; urgency=medium * Team upload * Rebuild with dh-elpa 2.x -- David Bremner <email address hidden> Tue, 26 Jan 2021 07:13:30 -0400
Upload details
- Uploaded by:
- Debian Emacsen team
- Uploaded to:
- Sid
- Original maintainer:
- Debian Emacsen team
- Architectures:
- all
- Section:
- misc
- Urgency:
- Medium Urgency
See full publishing history Publishing
Series | Published | Component | Section | |
---|---|---|---|---|
Noble | release | universe | misc | |
Mantic | release | universe | misc | |
Lunar | release | universe | misc | |
Jammy | release | universe | misc |
Downloads
File | Size | SHA-256 Checksum |
---|---|---|
fsm-el_0.2.1-4.dsc | 2.0 KiB | b929c8ea6eebe07c70a2d7b5336fb46c151f741ac1688de459179c7b1d142fcd |
fsm-el_0.2.1.orig.tar.xz | 5.7 KiB | b275aac2b8477cfaf8377f395881405e3b5aebccc8b5e12dec9ba38c57a7fe8b |
fsm-el_0.2.1-4.debian.tar.xz | 2.4 KiB | 18afa5ffbd10eda004aa36f82e7eec42c05e9a0be9eda9b406c741d38aba490a |
Available diffs
- diff from 0.2.1-3 to 0.2.1-4 (284 bytes)
No changes file available.
Binary packages built by this source
- elpa-fsm: state machine library
fsm.el is an exercise in metaprogramming inspired by gen_fsm of
Erlang/OTP. It aims to make asynchronous programming in Emacs Lisp
easy and fun. By "asynchronous" I mean that long-lasting tasks
don't interfer with normal editing.
.
Some people say that it would be nice if Emacs Lisp had threads
and/or continuations. They are probably right, but there are few
things that can't be made to run in the background using facilities
already available: timers, filters and sentinels. As the code can
become a bit messy when using such means, with callbacks everywhere
and such things, it can be useful to structure the program as a
state machine.
.
In this model, a state machine passes between different "states",
which are actually only different event handler functions. The
state machine receives "events" (from timers, filters, user
requests, etc) and reacts to them, possibly entering another state,
possibly returning a value.
.
The essential macros/functions are:
;;
define-state-machine - create start-FOO function
define-state - event handler for each state (required)
define-enter-state - called when entering a state (optional)
define-fsm - encapsulates the above three (more sugar!)
fsm-send - send an event to a state machine
fsm-call - send an event and wait for reply
.
fsm.el is similar to but different from Distel:
<URL:http://fresh.homeunix. net/~luke/ distel/>
Emacs' tq library is a similar idea.