emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Smarter M-x that filters on major-mode


From: Lars Ingebrigtsen
Subject: Re: Smarter M-x that filters on major-mode
Date: Thu, 11 Feb 2021 22:12:19 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

This all reminded me of a slightly related issue: All modes defined by
`define-derived-mode' are interactive.  Is there a reason for that?

I mean, most editing-related modes are definitely commands -- you want
to switch `prolog-mode' on and off as you wish.  But there's also a
number of modes that only make sense in certain special prepared buffers
(like `eww-history-mode', which is there just to provide a couple of
commands).

Would it make sense to introduce a keyword to `define-derived-mode' that
would allow saying :interactive nil?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




reply via email to

[Prev in Thread] Current Thread [Next in Thread]