GNU bug report logs - #48153
28.0.50; minor mode keymaps should not override keymap given to read-from-minibuffer

Previous Next

Package: emacs;

Reported by: Jimmy Yuen Ho Wong <wyuenho <at> gmail.com>

Date: Sun, 2 May 2021 07:01:01 UTC

Severity: normal

Tags: moreinfo

Found in version 28.0.50

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Gregory Heytings <gregory <at> heytings.org>
To: Jimmy Yuen Ho Wong <wyuenho <at> gmail.com>
Cc: 48153 <at> debbugs.gnu.org
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
>> 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.)




This bug report was last modified 4 years and 13 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.