From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings Newsgroups: gmane.emacs.bugs Subject: bug#48153: 28.0.50; minor mode keymaps should not override keymap given to read-from-minibuffer Date: Tue, 04 May 2021 14:29:36 +0000 Message-ID: <1a73bd6c69101f3312ad@heytings.org> References: <1a73bd6c69bb5c6a8431@heytings.org> <1a73bd6c69374497d37b@heytings.org> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31258"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 48153@debbugs.gnu.org To: Jimmy Yuen Ho Wong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 04 16:30:15 2021 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 1ldw3y-000817-8Q for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 04 May 2021 16:30:14 +0200 Original-Received: from localhost ([::1]:47294 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ldw3x-00062R-BL for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 04 May 2021 10:30:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57976) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldw3m-00060S-PD for bug-gnu-emacs@gnu.org; Tue, 04 May 2021 10:30:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41989) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ldw3m-0001Z8-H5 for bug-gnu-emacs@gnu.org; Tue, 04 May 2021 10:30:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ldw3m-0008Jf-D1 for bug-gnu-emacs@gnu.org; Tue, 04 May 2021 10:30:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gregory Heytings Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 04 May 2021 14:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48153 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 48153-submit@debbugs.gnu.org id=B48153.162013858231936 (code B ref 48153); Tue, 04 May 2021 14:30:02 +0000 Original-Received: (at 48153) by debbugs.gnu.org; 4 May 2021 14:29:42 +0000 Original-Received: from localhost ([127.0.0.1]:53533 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ldw3R-0008J2-TF for submit@debbugs.gnu.org; Tue, 04 May 2021 10:29:42 -0400 Original-Received: from heytings.org ([95.142.160.155]:37296) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ldw3O-0008Iw-Gz for 48153@debbugs.gnu.org; Tue, 04 May 2021 10:29:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20210101; t=1620138576; bh=vKgxcEnDR9Z/g5qSbWqSWZKmJ61GPuC+0ba2rGUd/5g=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=gJTL7n8cfD85Y7lcZbu/2bIWQgF638DEUOk7+nSJ4hl+iX9oZYsc75wWw3vt285Dm 7hsvRpzBKpG5KKlBMv5lhEjjzNXgOz8+ddIhVcqAhRjjfKVLdB/Lu/symmNyhxl1K8 1qWxEidDcfRZXexJ2Jzdk10YBcb84xThYV581drjROz3PqyDwQKrMgwIrx2p9pwesX RIlCJRlalmZLNrarzrDLYiuVBCc+wunvmrhkV4Juae+Tli/SqPMNoaYnrdl1BbyGVe d/TAweKEBaBpkTCaIlcb7kTomPHYAWaCSJ3oU99cfHwJNzNcg3MixiPUVsj8tde0IY JQ9ENkP59GOJw== In-Reply-To: <1a73bd6c69374497d37b@heytings.org> 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" Xref: news.gmane.io gmane.emacs.bugs:205613 Archived-At: >> It's literally just a global minor mode defined for your test minor >> mode, basically `(define-global-minor-mode test-global-mode test-mode >> (lambda() t))` > > In that case, you should disable (or rather, not enable) that minor mode > for minibuffers, for example: > > (define-global-minor-mode test-global-mode test-mode (lambda () (or > (minibufferp) (test-mode 1)))) > (Note that this does not answer your question "In Emacs 27, turning the minor mode on inside the minibuffer would not override the key map given to read-from-minibuffer", with the above the effect is the same in Emacs 27 and 28 AFAICS. Without seeing the minor mode, I cannot help you more, I don't have a crystal ball.)