emacs-devel
[Top][All Lists]
Advanced

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

Re: define-derived-mode


From: Lute Kamstra
Subject: Re: define-derived-mode
Date: Mon, 09 May 2005 12:35:01 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Luc Teirlinck <address@hidden> writes:

[...]

> If I understood correctly, define-generic-mode only started
> constructing automatic defcustoms recently,

True; I made the change.

> which was an incompatible change.

Not compatible with what?

> In that case, it could easily be reversed, which would make the two
> major mode defining functions consistent in this respect.

I primarily wanted to define the mode hook as a variable so that I
could give it docstring.  I chose defcustom over defvar because
define-minor-mode and quite some other major modes did that.  I don't
strongly object to making the defcustom a defvar, but I don't
understand your problems with the use of defcustom:

> Customizing mode hooks through Custom is only convenient if an
> :options keyword is used.  (Currently, customizing hooks through
> Custom is not advisable to begin with because of several bugs we
> discussed before.  We plan to fix these in Emacs 23 or 24.)

I don't recall the bugs you refer to; could you give me the subject(s)
of the relevant thread(s)?

Lute.




reply via email to

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