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: file-name-shadow-mode Date: Sun, 20 Mar 2005 09:13:13 -0500 Message-ID: <87acoyxvf7.fsf-monnier+emacs@gnu.org> References: <200503180435.j2I4Z2R18621@raven.dms.auburn.edu> <87is3p5zp2.fsf-monnier+emacs@gnu.org> <200503191521.j2JFL8901509@raven.dms.auburn.edu> <87r7ibziw6.fsf-monnier+emacs@gnu.org> <200503200214.j2K2Efh03044@raven.dms.auburn.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1111329056 10024 80.91.229.2 (20 Mar 2005 14:30:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 20 Mar 2005 14:30:56 +0000 (UTC) Cc: snogglethorpe@gmail.com, emacs-devel@gnu.org, rms@gnu.org, miles@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 20 15:30:54 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DD1Ri-00032y-GN for ged-emacs-devel@m.gmane.org; Sun, 20 Mar 2005 15:30:27 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DD1ic-00070s-N9 for ged-emacs-devel@m.gmane.org; Sun, 20 Mar 2005 09:47:54 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DD1ga-0006MZ-Bz for emacs-devel@gnu.org; Sun, 20 Mar 2005 09:45:48 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DD1gV-0006Kt-SC for emacs-devel@gnu.org; Sun, 20 Mar 2005 09:45:44 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DD1gV-0006Do-9Y for emacs-devel@gnu.org; Sun, 20 Mar 2005 09:45:43 -0500 Original-Received: from [209.226.175.188] (helo=tomts25-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DD1B5-0006iO-96; Sun, 20 Mar 2005 09:13:15 -0500 Original-Received: from alfajor ([67.71.26.238]) by tomts25-srv.bellnexxia.net (InterMail vM.5.01.06.10 201-253-122-130-110-20040306) with ESMTP id <20050320141314.HXKJ1567.tomts25-srv.bellnexxia.net@alfajor>; Sun, 20 Mar 2005 09:13:14 -0500 Original-Received: by alfajor (Postfix, from userid 1000) id EBB97D72F3; Sun, 20 Mar 2005 09:13:13 -0500 (EST) Original-To: Luc Teirlinck In-Reply-To: <200503200214.j2K2Efh03044@raven.dms.auburn.edu> (Luc Teirlinck's message of "Sat, 19 Mar 2005 20:14:41 -0600 (CST)") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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 X-MailScanner-To: ged-emacs-devel@m.gmane.org Xref: news.gmane.org gmane.emacs.devel:34819 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:34819 > beginning of the define-minor-mode expansion. Otherwise, setting > :initialize to something else but `custom-initialize-default' is > probably not going to work for minor modes defined with > `define-minor-mode'. (It definitely does not work with the current > code.) I think it's OK that way. Last time we had a discussion around this, it became clear to me that the :init value should *describe* the state you get when loading the file, rather than *decide* it. This is because if the minor mode's code needs to be run to properly set the value, you can't run it safely before the whole file is loaded (since the minor mode's code might call functions defined further down in the file). So I think it's best to keep the :init value at nil and then elsewhere do a customize-set-variable (in startup.el, in loadup.el, or even at the end of rfn-shadow.el). That's the cleaner solution. Stefan