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.bugs Subject: bug#65577: 29.1; set in global map Date: Thu, 31 Aug 2023 13:03:52 +0300 Message-ID: <83h6ofedfb.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17577"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 65577@debbugs.gnu.org To: Shynur Xie , Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 31 12:05:22 2023 Return-path: Envelope-to: geb-bug-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 1qbeYE-0004K8-66 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 31 Aug 2023 12:05:22 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qbeXo-00016I-8y; Thu, 31 Aug 2023 06:04:56 -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 1qbeXm-00015c-NL for bug-gnu-emacs@gnu.org; Thu, 31 Aug 2023 06:04:54 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qbeXm-0003HS-FM for bug-gnu-emacs@gnu.org; Thu, 31 Aug 2023 06:04:54 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qbeXu-0006Dc-5t for bug-gnu-emacs@gnu.org; Thu, 31 Aug 2023 06:05:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 31 Aug 2023 10:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65577 X-GNU-PR-Package: emacs Original-Received: via spool by 65577-submit@debbugs.gnu.org id=B65577.169347627223866 (code B ref 65577); Thu, 31 Aug 2023 10:05:02 +0000 Original-Received: (at 65577) by debbugs.gnu.org; 31 Aug 2023 10:04:32 +0000 Original-Received: from localhost ([127.0.0.1]:54902 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qbeXP-0006Cq-Ue for submit@debbugs.gnu.org; Thu, 31 Aug 2023 06:04:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52842) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qbeXK-0006CY-63 for 65577@debbugs.gnu.org; Thu, 31 Aug 2023 06:04:30 -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 1qbeX5-0003C3-7f; Thu, 31 Aug 2023 06:04:11 -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=vp3qHY/Ayo07WwGqUBnSLBvLyLUaTpO9ZL2jtfn0SUQ=; b=qdppfmqiaI1Z MTxVi2UzXALJKsN2Og+/aZT5aKUijRszNJrhp5HKW67kMPtYR9v5E2RqSNNzEyGS03WjMOraDpvD6 /SucEtQhGT4wMO6ouFTgnm1mYISAmBw57leceOyJAncwkmLtZISfuAGHB9WSmqrypZuYmj0hVHM7Z i9+ITUB5CIrZh7hvGDgCgXFM9Sy7HBLMgkU0fKHzJUncaQsyvjd7TUNqqPE56PioarDKAHDIjvyez oW6RmPYIN45sDbyr34jSjOwlXtgsONP1NpGcfW9b+O4pu5aluUz6N6w5OGzowgP03eS+Jat3rG1c/ PuaB+RpAZMpKi1XkUkLRaw==; In-Reply-To: (message from Shynur Xie on Mon, 28 Aug 2023 07:29:20 +0000) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:268806 Archived-At: > From: Shynur Xie > Date: Mon, 28 Aug 2023 07:29:20 +0000 > msip_labels: > > This report is about the question asked at > . > > Reproduce (-Q): > > (keymap-global-set " " > (lambda () ; doesn't work. > (interactive) > (message "teeest: signal usr1"))) > (signal-process (emacs-pid) 'sigusr1) > (keymap-set special-event-map "" > (lambda () ; does work > (interactive) > (message "teeest: sigusr1"))) > > Is this a documentation bug? Or am I missing something? Stefan, it sounds like the first example is some left-over from old handling of signals? I don't see a "function key" named 'signal' bound anywhere in the global map. So the 1st example above should only work if 'signal' is a prefix key bound in the global-map, right? (keymap-lookup global-map "") => help-command but (keymap-lookup global-map "") => nil