/usr/share/fish/man/man1/emit.1 is in fish-common 2.4.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | .TH "emit" 1 "Sun Dec 11 2016" "Version 2.4.0" "fish" \" -*- nroff -*-
.ad l
.nh
.SH NAME
\fBemit\fP -- Emit a generic event
.PP
.SS "Synopsis"
.PP
.nf
\fBemit\fP EVENT_NAME [ARGUMENTS\&.\&.\&.]
.fi
.PP
.SS "Description"
\fCemit\fP 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\&.
.SS "Example"
The following code first defines an event handler for the generic event named 'test_event', and then emits an event of that type\&.
.PP
.PP
.nf
\fBfunction\fP event_test --on-event test_event
\fBecho\fP event test: $argv
\fBend\fP
.fi
.PP
.PP
.PP
.nf
\fBemit\fP test_event something
.fi
.PP
|