emacs-devel
[Top][All Lists]
Advanced

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

Re: why do some programming modes have customize hooks and others do not


From: Stefan Monnier
Subject: Re: why do some programming modes have customize hooks and others do not?
Date: Sat, 18 Oct 2014 17:46:14 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

> Emacs-Lisp mode has a customizable hook variable but erlang-mode does
> not.

define-derived-mode currently defines the hook with `defvar', so you'll
only get a customizable hook if the mode author explicitly added
a defcustom for it.

Maybe define-derived-mode should define the hook with defcustom.
I guess we'd need some motivation (other than "consistency") for that,
such as what would be the benefit to define the hook as a defcustom if
all the defcustom says is ":type hook".


        Stefan



reply via email to

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