From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Problems with defcustom setter functions during byte-compile Date: Sat, 06 Oct 2012 08:44:53 -0400 Message-ID: References: <87wqz4arlk.fsf@engster.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1349527501 8323 80.91.229.3 (6 Oct 2012 12:45:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 6 Oct 2012 12:45:01 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 06 14:45:07 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TKTkd-0003hZ-OQ for ged-emacs-devel@m.gmane.org; Sat, 06 Oct 2012 14:45:03 +0200 Original-Received: from localhost ([::1]:45738 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TKTkY-0002nk-05 for ged-emacs-devel@m.gmane.org; Sat, 06 Oct 2012 08:44:58 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33472) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TKTkV-0002mY-M0 for emacs-devel@gnu.org; Sat, 06 Oct 2012 08:44:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TKTkU-0005XY-Nl for emacs-devel@gnu.org; Sat, 06 Oct 2012 08:44:55 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:58288) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TKTkU-0005XU-Jc for emacs-devel@gnu.org; Sat, 06 Oct 2012 08:44:54 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAG6Zu09FxLQG/2dsb2JhbABEtBGBCIIWAQVWMws0EhQYDYhFugmNJoMeA6MzgViDBQ X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="200791849" Original-Received: from 69-196-180-6.dsl.teksavvy.com (HELO pastel.home) ([69.196.180.6]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 06 Oct 2012 08:44:53 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 8C913594D1; Sat, 6 Oct 2012 08:44:53 -0400 (EDT) In-Reply-To: <87wqz4arlk.fsf@engster.org> (David Engster's message of "Sat, 06 Oct 2012 11:15:51 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.182 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:154122 Archived-At: > (defcustom srecode-map-load-path > [... stuff snipped ...] > :set 'srecode-map-load-path-set) > The :set function `srecode-map-load-path-set' is called as soon as this > file is loaded. Actually, when the defcustom is executed, the it's the initializer that's called, and it just so happens that the default initializer in turn calls the setter. So you should be able to work around this problem by adding ":initialize #'custom-initialize-default". Stefan