From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#74936: 30.0.91; special-event-map does not respect t Date: Sat, 04 Jan 2025 16:20:25 -0500 Message-ID: References: <86h671m6v0.fsf@gnu.org> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22478"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , 74936@debbugs.gnu.org To: Psionic K Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 04 22:21:15 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 1tUBa6-0005fh-T5 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Jan 2025 22:21:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tUBZw-0003na-DF; Sat, 04 Jan 2025 16:21:04 -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 1tUBZu-0003nP-7v for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2025 16:21:02 -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 1tUBZt-0004kW-VZ for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2025 16:21:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=Xc67hm1Cdcuk6yQJ+iMenmjrhdN3MToVRUIsWSRNWBw=; b=Mp40YrqqRYC1C/CouLUfUn10bAgTSNd8UhBouYOkilPmamFtORWxy1Y4aAZp4TwyadGusICg5h4NSOzouPIPEZSNX5gjG8Y+SOt97Qm80+JX+adRi5z+KzBlzc9SWfKQJfRGiSz1pL6VPLvXLB+zqDEwN+LbLOaio12ctNeJTwrc4rkvQwr0flZ9yTnXHOWzaccsI9akbqRTuK9ti+Ql14u6L005de+rW0pS4mAUGKDH1r+qZilCu8VESG087fmih2xMWveMdnuZubPMOvzNO733fu429BQpVwegNUY+NMGxPBBfcdTaGn6sbjmBH5EVmpcwghm/cBCuNVW786P4pw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tUBZt-0005dv-PF for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2025 16:21:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Jan 2025 21:21: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.173602563521646 (code B ref 74936); Sat, 04 Jan 2025 21:21:01 +0000 Original-Received: (at 74936) by debbugs.gnu.org; 4 Jan 2025 21:20:35 +0000 Original-Received: from localhost ([127.0.0.1]:57698 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tUBZT-0005d4-F7 for submit@debbugs.gnu.org; Sat, 04 Jan 2025 16:20:35 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:37056) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tUBZR-0005cr-Tq for 74936@debbugs.gnu.org; Sat, 04 Jan 2025 16:20:34 -0500 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 75E2180821; Sat, 4 Jan 2025 16:20:27 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1736025626; bh=q8/73VxsYHWPRHlLEexMoBjZv410H/LxeRuz11lFqYw=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=d890m888OO4MVhpmBVwZgejtCwvCZJZD3/+MMW/EQAVVRhCQLbofuxgj2k+c39akx IFIyf+ND+/jHbhLeUEWVsAwfw/jQlMeBC4017ZSzQOXmg8PKGp6xwr5WnS6+V5f9Cr OLADu0C5ERp9m1FWhubFjWgVEi5fPZ5UEBkWdi/DsrwA1kBuSsKW+iLrQPL6oVrDnh oWH5EH0wkvA2NUxcFStogkgPtr/h43U4qrtvLXS8AbRKKLRhHOemRQp1PUyprkCaO/ 5/zCofvcqtYthmvEAxzw0V0EbIzFtUON/4rpuZwXDafzmi3EPVLQHsnq0v3s5PW8RD NpV+eq59ePy/A== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 97FF58031C; Sat, 4 Jan 2025 16:20:26 -0500 (EST) Original-Received: from alfajor (104-195-236-84.cpe.teksavvy.com [104.195.236.84]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 4A40C120497; Sat, 4 Jan 2025 16:20:26 -0500 (EST) In-Reply-To: (Psionic K.'s message of "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:298478 Archived-At: > 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? All the ones I can think of involve bigger changes to Emacs, e.g. to add ad-hoc functionality to temporarily suspend or redirect normal input events, or to label input events with the terminal from which they come, ... > 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'. Yup. > In conclusion, the special map feels like the only correct one to > express the idea. Assuming it works... Stefan