Subject: bug#45792: 28.0.50; regression in commit c7c154bb, minibuffer is not closed after opening a file

From: Platon Pronko <[email-masked]>
Date: Tue, 12 Jan 2021 13:29:23 +0300

Yes, of course minibufferp is much cleaner - I just wasn't aware of its existence :)

But the problem still persists if I refactor the code to use it. Here's the code I used:

(define-minor-mode dvorak-minor-mode "Use english-dvorak input method." :lighter nil
   (if (and dvorak-minor-mode (not (minibufferp)))
     (activate-input-method "english-dvorak")))
(define-global-minor-mode global-dvorak-mode dvorak-minor-mode dvorak-minor-mode)
(global-dvorak-mode t)

Actually even removing (not (minibufferp)) altogether has no effect on the issue.

Best regards,
Platon Pronko