emacs-devel
[Top][All Lists]
Advanced

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

Re: define-derived-mode and function arguments


From: Stefan Monnier
Subject: Re: define-derived-mode and function arguments
Date: Mon, 02 Aug 2010 10:24:42 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

> So the question is, is it possible to use `define-derived-mode' with
> optional arguments?

No, there's no way to have arguments.  Usually those arguments are used
to set some buffer-local vars and the way to make it work with
define-derived-mode is to set those vars in the caller (right after the
call) rather than in the major-mode function.


        Stefan



reply via email to

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