GNU bug report logs - #14247
24.3.50; Autoloaded defcustom in package loses saved setting

Previous Next

Package: emacs;

Reported by: Magnus Henoch <magnus.henoch <at> gmail.com>

Date: Tue, 23 Apr 2013 14:49:02 UTC

Severity: normal

Tags: fixed

Found in version 24.3.50

Fixed in version 25.1

Done: Mauro Aranda <maurooaranda <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
To: Magnus Henoch <magnus.henoch <at> gmail.com>
Cc: 14247 <at> debbugs.gnu.org
Subject: bug#14247: 24.3.50; Autoloaded defcustom in package loses saved setting
Date: Tue, 23 Apr 2013 15:52:09 -0400
> This obviously yields the suggestion "don't do that, then", but the
> manual doesn't seem to discourage the programmer from using autoload
> cookies with defcustom, so I think either the behaviour or the manual
> should be changed.

Using autoloads cookies on defvars and defcustom is indeed something
I generally discourage and I'd like to see such uses diminish.

But at the same time, they are sometimes important, so we should
definitely try to make it work right.

Note that "for M-x customize-option to list it" is not a good reason to
autoload a variable.  We should teach customize-option to load packages
as needed to really remove this desire to autoload variables.


        Stefan




This bug report was last modified 4 years and 264 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.