|
From: | Stefan Monnier |
Subject: | Re: Smarter M-x that filters on major-mode |
Date: | Fri, 12 Feb 2021 08:39:15 -0500 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
>>> Would it make sense to introduce a keyword to `define-derived-mode' that >>> would allow saying :interactive nil? >> I don't see any benefit in making it not interactive. >> But I do see a benefit in not listing it in `M-x` completion. > To reverse the question: What's the benefit of marking these functions > as interactive when they're not meant to be used as commands? It's marginally less complexity in `define-derived-mode`. And it obeys the "Major Mode Conventions" node which repeats over and over "the major mode command": the fact that it is expected to be a command is so obvious there that it's not even stated explicitly. Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |