From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: in which keymap to set SIGUSR-handler Date: Sun, 27 Aug 2023 20:59:50 +0300 Message-ID: <833504jrhl.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14018"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 27 20:01:05 2023 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qaK4O-0003Uf-L2 for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 27 Aug 2023 20:01:04 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qaK3o-0008DY-A4; Sun, 27 Aug 2023 14:00:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qaK3d-00082D-IW for help-gnu-emacs@gnu.org; Sun, 27 Aug 2023 14:00:20 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qaK3d-0008RB-9h for help-gnu-emacs@gnu.org; Sun, 27 Aug 2023 14:00:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=q15sjEzqEdvFzy73v6mhTpCq8XEEIRuUV+zzrsSHRWs=; b=VGvq5uiNrPf8 bMQU9N86HZ4DUq3W3pjliS94GtMSqTbW26hJb/AhP6PcDQBxMlohQA3FH4nW/Knm1qLCZj69JwsyZ OoHGP0GNqZjl0BIK1BDoxClasAsj85ScOQRYuNRw+dFY6nVVTyEYDrXxvunHUZLT53ntLYCn7GcEP Nqo/geGq/4gRoaw21ZxPtgnmwSLMH45xyNdmo3lVIeRZ6CS4ayUjBoycRTTZEbf39TVVynvrbcc2M 3XvTihw6ewLkE0fbYaxwhdCwgI0nQhpDSbefaC9AHxSbpiyW9u60C/CaOBl1oMFXpkcAtDpKSNfdm qFAUt6XI3r6a/7OAioiW7w==; In-Reply-To: (message from Shynur Xie on Sun, 27 Aug 2023 16:54:25 +0000) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:144983 Archived-At: > From: Shynur Xie > 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 > (), > there's a sample code about SIGUSR: > > (keymap-set special-event-map "" 'sigusr-handler) > > In 22.7.13 Event Examples > () > there's another one: > > (keymap-global-set " " 'usr1-handler) > > Which one should I use in my init file? Thanks in advance. They should both work. Did you try?