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: Joe Riel
Subject: Re: add argument to a derived-mode
Date: Sun, 15 Jan 2017 17:53:45 -0800

On Sun, 15 Jan 2017 17:33:10 -0500
Stefan Monnier <monnier@IRO.UMontreal.CA> wrote:

> > 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.

Thanks.  I made the changes.  Using define-derived-mode is certainly nicer.

-- 
Joe Riel




reply via email to

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