emacs-devel
[Top][All Lists]
Advanced

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

Re: scratch/command 064f146 1/2: Change command to interactive ... modes


From: Stefan Monnier
Subject: Re: scratch/command 064f146 1/2: Change command to interactive ... modes
Date: Sun, 14 Feb 2021 18:23:20 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> given the 97% statistic, would it be possible to also have a
> buffer-local default-interactive-mode (or some declaration at global
> scope) setting a default value for the third argument of (interactive x)
> when not given?
>
> that way i could just write at the top of my jao-awful-mode.el package:
>
>    (setq-local default-interactive-mode 'jao-awful-mode)
>
> and use only backwards compatible interactive forms in the rest of the
> code.

That would make a lot of sense, indeed.
Then you'd have to mark specially the few commands that are not tied to
the major mode (if any), but that'd be a lot less work.


        Stefan




reply via email to

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