[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs 28 trigger after-change-major-mode-hook inside mini buffer
From: |
Stefan Monnier |
Subject: |
Re: Emacs 28 trigger after-change-major-mode-hook inside mini buffer |
Date: |
Sun, 21 Aug 2022 10:49:31 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Jakub T. Jankiewicz [2022-08-21 16:20:26] wrote:
> On Sun, 21 Aug 2022 15:29:45 +0300
> Eli Zaretskii <eliz@gnu.org> wrote:
>
>> > Date: Sun, 21 Aug 2022 14:22:50 +0200
>> > From: "Jakub T. Jankiewicz" <jcubic@onet.pl>
>> >
>> > So to fix the problem I need to know: what type of major mode does the
>> > mini buffer now have in Emacs 28? So I can filter out that major mode.
>>
>> It's minibuffer-mode, unsurprisingly.
It can be something else, of course. E.g. for `M-!` the major mode
should be a mix of `minibuffer-mode` and `shell-mode` for completion,
and for `M-:` you'd want a mix of `minibuffer-mode` and `elisp-mode`
(for completion and eldoc).
Stefan