GNU bug report logs -
#5294
23.1; unload-feature disable minor-mode
Previous Next
Reported by: Kevin Ryde <user42 <at> zip.com.au>
Date: Sat, 2 Jan 2010 21:10:03 UTC
Severity: minor
Tags: wontfix
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #38 received at 5294 <at> debbugs.gnu.org (full text, mbox):
On Wed, Jan 6, 2010 at 02:01, Kevin Ryde <user42 <at> zip.com.au> wrote:
> Principally that define-minor-mode knows what things it did and
> therefore should be undone, or why they might not be undone at the
> present time.
But that is defined in the same file as the unload-function...
> I think it would be rather repetitive to be obliged to
> write a FOO-unload-function whenever making a minor mode.
You want to write the same code, but put it in define-minor-mode. I
don't think define-minor-mode should worry itself with unloading.
> Which, err, presumes that there may be standardized things that should
> be considered and/or undone for unloading a mode. I see you say there's
> normally not -- where I say there could be a disable or a caution to
> avoid likely breakage, removal from the minor modes menu, etc.
I do not say that there are not, I say that they are not easy to
generalize. Some are. For example, removing a minor-mode for the
minor-modes menu seems a good idea, and should be done by
unload-feature if it is not done already, because calling a
nonexistent function is an error.
Juanma
This bug report was last modified 3 years and 101 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.