From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: in which keymap to set SIGUSR-handler
Date: Sun, 27 Aug 2023 20:59:50 +0300 [thread overview]
Message-ID: <833504jrhl.fsf@gnu.org> (raw)
In-Reply-To: <PH0PR11MB747073374051C5BAA2AA0614D7E1A@PH0PR11MB7470.namprd11.prod.outlook.com> (message from Shynur Xie on Sun, 27 Aug 2023 16:54:25 +0000)
> From: Shynur Xie <one.last.kiss@outlook.com>
> Date: Sun, 27 Aug 2023 16:54:25 +0000
> msip_labels:
>
> Hi, friends. I'm reading the elisp manual. In 22.7.12 Miscellaneous
> System Events
> (<https://gnu.org/s/emacs/manual/html_node/elisp/Misc-Events.html>),
> there's a sample code about SIGUSR:
>
> (keymap-set special-event-map "<sigusr1>" 'sigusr-handler)
>
> In 22.7.13 Event Examples
> (<https://gnu.org/s/emacs/manual/html_node/elisp/Event-Examples.html>)
> there's another one:
>
> (keymap-global-set "<signal> <usr1>" 'usr1-handler)
>
> Which one should I use in my init file? Thanks in advance.
They should both work. Did you try?
next prev parent reply other threads:[~2023-08-27 17:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-27 16:54 in which keymap to set SIGUSR-handler Shynur Xie
2023-08-27 17:59 ` Eli Zaretskii [this message]
2023-08-27 21:44 ` Emanuel Berg
-- strict thread matches above, loose matches on Subject: below --
2023-08-27 18:18 Shynur Xie
2023-08-27 18:50 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=833504jrhl.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).