help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: add argument to a derived-mode


From: Stefan Monnier
Subject: Re: add argument to a derived-mode
Date: Sun, 15 Jan 2017 17:33:10 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2.50 (gnu/linux)

> Is it a requirement that major modes not take an argument?

Technically, not quite (it may be called with no arguments, so any
argument it can accept should be optional).

> However, if it's considered bad form to pass arguments to them,
> I'll make the change, which would allow using define-derived-mode.

Yes, it's considered bad form and likely to lead to problems sooner
or later.


        Stefan



reply via email to

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