mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-02 05:41:16 -03:00
Convert \\subsection sections into rst format
This commit is contained in:
@@ -7,12 +7,14 @@ Synopsis
|
||||
emit EVENT_NAME [ARGUMENTS...]
|
||||
|
||||
|
||||
\subsection emit-description Description
|
||||
Description
|
||||
------------
|
||||
|
||||
`emit` emits, or fires, an event. Events are delivered to, or caught by, special functions called event handlers. The arguments are passed to the event handlers as function arguments.
|
||||
|
||||
|
||||
\subsection emit-example Example
|
||||
Example
|
||||
------------
|
||||
|
||||
The following code first defines an event handler for the generic event named 'test_event', and then emits an event of that type.
|
||||
|
||||
@@ -25,6 +27,7 @@ emit test_event something
|
||||
\endfish
|
||||
|
||||
|
||||
\subsection emit-notes Notes
|
||||
Notes
|
||||
------------
|
||||
|
||||
Note that events are only sent to the current fish process as there is no way to send events from one fish process to another.
|
||||
|
||||
Reference in New Issue
Block a user