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: Artur Malabarba
Subject: Re: why do some programming modes have customize hooks and others do not?
Date: Mon, 20 Oct 2014 11:38:33 +0100


> If I sent patches (once we're on git, how goes that?) for customize any
> hooks that aren't already customizable, they would get accepted?

I'd like to point out that saving a hook with the customize interface is kind of asking for trouble.

Hooks are routinely added by arbitrary packages. If an unsuspecting user customizes and saves a hook through the customize interface, any functions that other packages have added to it will be saved as well.
If the user later removes one of these packages, he'll be confronted with "undefined function" errors which no amount of restarting will solve.

The safe (and annoying) way to do this would be to define a second hook for the user, and make that a defcustom.

Malabarba


reply via email to

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