From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman" Newsgroups: gmane.emacs.devel Subject: Re: Autoloaded defcustoms Date: Tue, 6 Jan 2009 03:16:58 +0100 Message-ID: References: <873afx5gqp.fsf@jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1231208233 3573 80.91.229.12 (6 Jan 2009 02:17:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 6 Jan 2009 02:17:13 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org To: "Juri Linkov" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 06 03:18:24 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 1LK1WR-0006Z9-QA for ged-emacs-devel@m.gmane.org; Tue, 06 Jan 2009 03:18:24 +0100 Original-Received: from localhost ([127.0.0.1]:54004 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LK1VC-00075U-21 for ged-emacs-devel@m.gmane.org; Mon, 05 Jan 2009 21:17:06 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LK1V7-00072T-Ui for emacs-devel@gnu.org; Mon, 05 Jan 2009 21:17:01 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LK1V7-00071y-HF for emacs-devel@gnu.org; Mon, 05 Jan 2009 21:17:01 -0500 Original-Received: from [199.232.76.173] (port=46128 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LK1V7-00071l-E8 for emacs-devel@gnu.org; Mon, 05 Jan 2009 21:17:01 -0500 Original-Received: from fg-out-1718.google.com ([72.14.220.156]:38391) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LK1V7-0004tU-3l for emacs-devel@gnu.org; Mon, 05 Jan 2009 21:17:01 -0500 Original-Received: by fg-out-1718.google.com with SMTP id l26so2908345fgb.30 for ; Mon, 05 Jan 2009 18:16:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=S4Ej4+p639iXgyrNvdLCCO7ZJvhEdXxLeoQ0/x8GU6Y=; b=vR+omSvYRoEz7/kKOLpvkssuq+yFMeiQeBg307GI0qn5TxEVVkZINZaEbR7mxzM5R5 9dDSWwC3Hey6kje0PXq6t9/MwLVrgsu3E2QbawKPltZKQ/KjxsyYKYVZaCrX4UCiadm3 3H+ycunlA0J1Pr6LhB9gTDkmVwDneYy0uFmRA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=KfQOcXS3IF893zeUWF71ZrNdySQRXwQqFkTq7HdoxYN680mauFiS2AHpIRgdIEqRWR Mm76mSoAYyDo7Z1N1rcF0bU6v2kbprQbwRPRNYzGWqD597dyG15OJMMfxbYxuPiqLfRc 6MNUCCFdxKfUMwE0XtaJdphLwUjnqIby5XjCw= Original-Received: by 10.86.84.5 with SMTP id h5mr12513048fgb.12.1231208218486; Mon, 05 Jan 2009 18:16:58 -0800 (PST) Original-Received: by 10.86.35.9 with HTTP; Mon, 5 Jan 2009 18:16:58 -0800 (PST) In-Reply-To: <873afx5gqp.fsf@jurta.org> Content-Disposition: inline X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:107624 Archived-At: On Tue, Jan 6, 2009 at 1:57 AM, Juri Linkov wrote: >> I suggest using something like this instead of custom-autoload >> >> (defun nxhtml-custom-autoload (symbol load &optional noset) >> (custom-autoload symbol load noset) >> (let* ((standard (get symbol 'standard-value)) >> (saved (get symbol 'saved-value)) >> (need-set (get symbol 'custom-set))) >> (when (or need-set >> (equal standard saved)) >> (custom-load-symbol symbol)))) >> >> But I am not sure about the details. >> >> Jurij, could you please help with the details? What is necessary to do >> in the function above? > > Couldn't you just set `noset' to t to force its loading? I am not sure what `noset' does. How could it help here? The sequence of events here is (custom-set-variables ...) ... Maybe later during startup ... load the load defs for the defcustoms with a custom-set property ...