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#74936: 30.0.91; special-event-map does not respect t Date: Sat, 04 Jan 2025 13:35:06 +0200 Message-ID: <86r05ierrp.fsf@gnu.org> References: <86h671m6v0.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40303"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 74936@debbugs.gnu.org To: monnier@iro.umontreal.ca, Psionic K Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 04 12:36:14 2025 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 1tU2Ry-000AIX-3w for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Jan 2025 12:36:14 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tU2Rq-0000MI-2i; Sat, 04 Jan 2025 06:36:06 -0500 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 1tU2Ro-0000Lu-GF for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2025 06:36:04 -0500 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 1tU2Rl-0000eD-VY for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2025 06:36:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=gr9o7rRGJTY9W03nYKlgBKpmOONC+7oT7S/aJLFgBIs=; b=SZmqyZbMQsHKXtikF7tLltQnGK/C1jMUV2mg0HwXjSfbPBi6hSRS5GN7VfbC11zIunLe5wVcJMosQqOuA16O131PCnJdZUDSqzzgBxCbRduovNvPoBdqxeQzdSN7rNntCCDO9yhNI/KAe78Azr6RDWtVgMQFTQcl+xiRU1yacV4RWL/stUAcwA3HcsM0oZw36NLi4yMyNKHjhujjW3byRD5OSlsBGYNaYfiBR03ER08HdVRCvQw836x1R9xNs0P18l6wGm5CjFcR7rCKGiDhhrRjNZELt+j65SYAr3XyTUVt4C5q77odeDnRR8iuKsleTlQChR9xb4hvCsorYcTfVQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tU2Rl-0002qf-PU for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2025 06:36:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Jan 2025 11:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74936 X-GNU-PR-Package: emacs Original-Received: via spool by 74936-submit@debbugs.gnu.org id=B74936.173599051810897 (code B ref 74936); Sat, 04 Jan 2025 11:36:01 +0000 Original-Received: (at 74936) by debbugs.gnu.org; 4 Jan 2025 11:35:18 +0000 Original-Received: from localhost ([127.0.0.1]:53615 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tU2R4-0002ph-7w for submit@debbugs.gnu.org; Sat, 04 Jan 2025 06:35:18 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51488) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tU2R2-0002pO-F4 for 74936@debbugs.gnu.org; Sat, 04 Jan 2025 06:35:17 -0500 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 1tU2Qv-0000Xw-Jq; Sat, 04 Jan 2025 06:35:09 -0500 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=gr9o7rRGJTY9W03nYKlgBKpmOONC+7oT7S/aJLFgBIs=; b=R8L4SF7DTrFH lrBp9XWu2xz61EnYYr/pF0B9Vy2ZxMoRaZI/ferXevSoOQknvnhdfYlekcfm1lDT78S06mYD9w8cF Cr7WgoSkoGAolu0qxtq7BHWuYORbscZa1+fTkSrkg0AR/gsqQtviBzeJmQO9tUOaJVuLykCTo9Xvq Z+qBxim6WPe8af8lUFjjI2ZDdy2VQZ6xMW7MOdNkJkzWg70Bn93Vm4FxS3ngjpSzjj712v8HpZnMm plyN2LD8p9Vs7JJ99xIFlnPlr8ynHNroxDv8HZ8/jPg0ENT17r7gXsNZaWdz0oetD/PskIL3/eUot ml7h5+/eKxEXcxd78389Kw==; In-Reply-To: (message from Psionic K on Thu, 19 Dec 2024 20:54:56 +0900) 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:298366 Archived-At: Ping! Stefan, any suggestions? > From: Psionic K > Date: Thu, 19 Dec 2024 20:54:56 +0900 > Cc: Eli Zaretskii , Psionic K , 74936@debbugs.gnu.org > > I'll try the patch tomorrow. > > > could be satisfied in many other ways > > Since I have code that will need to work on Emacs 30-ish, I have to > ask if any of the other ways are good ways? > > In the meantime I've thought of using `overriding-terminal-local-map' > with a keyhole nil binding for only my expected input in between > idling. A "keyhole" map that allows 'e' through. > > (let ((km (list 'keymap (cons t #'pmx--haha)))) > (keymap-set km "M-x" #'counsel-M-x) > (keymap-set km "e" nil) > (use-local-map km)) > > (current-local-map) > > To completely prevent fat-fingers, I then need to close the keyhole > after each first pass. Then there's the problem of input calling > commands that clobber `overriding-terminal-local-map'. > > In conclusion, the special map feels like the only correct one to > express the idea. >