From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Defcustoms, how do users find them? Date: Tue, 17 Nov 2009 12:03:11 +0200 Organization: JURTA Message-ID: <87ocn1fnko.fsf@mail.jurta.org> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1258456874 2727 80.91.229.12 (17 Nov 2009 11:21:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Nov 2009 11:21:14 +0000 (UTC) Cc: Emacs-Devel devel To: Lennart Borgman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 17 12:21:07 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NAM7L-00082K-Vy for ged-emacs-devel@m.gmane.org; Tue, 17 Nov 2009 12:21:04 +0100 Original-Received: from localhost ([127.0.0.1]:41610 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NAM7L-0007iw-4r for ged-emacs-devel@m.gmane.org; Tue, 17 Nov 2009 06:21:03 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NALT9-0007H3-4s for emacs-devel@gnu.org; Tue, 17 Nov 2009 05:39:31 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NALT3-0007EX-K1 for emacs-devel@gnu.org; Tue, 17 Nov 2009 05:39:29 -0500 Original-Received: from [199.232.76.173] (port=60644 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NALT3-0007EJ-23 for emacs-devel@gnu.org; Tue, 17 Nov 2009 05:39:25 -0500 Original-Received: from smtp-out2.starman.ee ([85.253.0.4]:59290 helo=mx2.starman.ee) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NALT2-0001g2-Go for emacs-devel@gnu.org; Tue, 17 Nov 2009 05:39:24 -0500 X-Virus-Scanned: by Amavisd-New at mx2.starman.ee Original-Received: from mail.starman.ee (82.131.30.92.cable.starman.ee [82.131.30.92]) by mx2.starman.ee (Postfix) with ESMTP id ED3CB3F408C; Tue, 17 Nov 2009 12:39:16 +0200 (EET) In-Reply-To: (Lennart Borgman's message of "Mon, 16 Nov 2009 22:11:34 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (x86_64-pc-linux-gnu) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:117083 Archived-At: > 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/