emacs-devel
[Top][All Lists]
Advanced

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

Re: Defcustoms, how do users find them?


From: Juri Linkov
Subject: Re: Defcustoms, how do users find them?
Date: Tue, 17 Nov 2009 12:03:11 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (x86_64-pc-linux-gnu)

> This defcustom is not autoloaded. How are users supposed to find it?
> Should all defcustoms be autoloaded?

Autoloading of defcustom causes problems with default values.
For autoloaded defcustoms the default is computed at the startup time
before loading .emacs and calling custom-set-variables where other variables
get their values that may be used for computing the default value of
the autoloaded defcustom.

Please see the related bug#4387 for more information:
http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=4387

There is the following etc/TODO task:

  ** Remove unnecessary autoload cookies from defcustoms.
  This needs a bit of care, since often people have become used to
  expecting such variables to always be defined, eg when they modify
  things in their .emacs.

I'm not sure what does mean "This needs a bit of care"?
So I hesitate to remove the autoload cookie from `find-name-arg'
to fix the bug#4387.

PS: Removing the autoload cookie from `find-name-arg' also means
adding (require 'find-dired) to rgrep where it is used, but it seems
this is not a problem.

-- 
Juri Linkov
http://www.jurta.org/emacs/




reply via email to

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