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: Thu, 17 Mar 2005 23:47:55 -0500 Message-ID: <87is3p5zp2.fsf-monnier+emacs@gnu.org> References: <200503180435.j2I4Z2R18621@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 1111122517 4281 80.91.229.2 (18 Mar 2005 05:08:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 18 Mar 2005 05:08:37 +0000 (UTC) Cc: snogglethorpe@gmail.com, emacs-devel@gnu.org, miles@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 18 06:08:36 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DC9im-000891-JI for ged-emacs-devel@m.gmane.org; Fri, 18 Mar 2005 06:08:28 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DC9zC-0004kj-Sa for ged-emacs-devel@m.gmane.org; Fri, 18 Mar 2005 00:25:26 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DC9xW-0004Gm-9B for emacs-devel@gnu.org; Fri, 18 Mar 2005 00:23:43 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DC9xQ-0004EP-99 for emacs-devel@gnu.org; Fri, 18 Mar 2005 00:23:37 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DC9xN-00046M-Gj for emacs-devel@gnu.org; Fri, 18 Mar 2005 00:23:33 -0500 Original-Received: from [209.226.175.184] (helo=tomts22-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DC9Ot-0003cL-W0; Thu, 17 Mar 2005 23:47:56 -0500 Original-Received: from alfajor ([67.68.217.141]) by tomts22-srv.bellnexxia.net (InterMail vM.5.01.06.10 201-253-122-130-110-20040306) with ESMTP id <20050318044755.MDZC1919.tomts22-srv.bellnexxia.net@alfajor>; Thu, 17 Mar 2005 23:47:55 -0500 Original-Received: by alfajor (Postfix, from userid 1000) id 2BAC9D7373; Thu, 17 Mar 2005 23:47:55 -0500 (EST) Original-To: Luc Teirlinck In-Reply-To: <200503180435.j2I4Z2R18621@raven.dms.auburn.edu> (Luc Teirlinck's message of "Thu, 17 Mar 2005 22:35:03 -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:34701 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:34701 > I believe that the reason you have problems is that define-minor-mode > uses `custom-initialize-default' as the Custom :initialize function. > That is correct if you want the minor mode disabled by default, but > not if you want it enabled by default. Then you need to use > `custom-initialize-set'. Passing an explicit :initialize keyword to > `define-minor-mode' does not seem to help: it gets ignored. I believe > that `define-minor-mode' should use `custom-initialize-set' as the > :initialize function if :init-value is non-nil. Then the patches > below would work. _Currently they do not._ An alternate patch that > does work right now is to call `custom-reevaluate-setting' in > startup.el, but to me, that seems ugly. Assuming it's still considered a good idea to make sure that loading a file does not have any other side effect, I think it's better to keep the :init-value at nil, and simply add a call to file-name-shadow-mode somewhere (either in startup, or loadup). Stefan