From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: David Masterson Newsgroups: gmane.emacs.devel,gmane.emacs.customize Subject: Re: Customize Rogue Date: Fri, 14 Mar 2003 16:22:13 -0800 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <15986.29237.809000.666327@gargle.gargle.HOWL> References: <20030309185419.2506.LEKTU@terra.es> <200303140421.WAA16774@eel.dms.auburn.edu> <200303142312.RAA17322@eel.dms.auburn.edu> <15986.27208.152000.911108@gargle.gargle.HOWL> <200303150002.SAA17358@eel.dms.auburn.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1047688104 17079 80.91.224.249 (15 Mar 2003 00:28:24 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 15 Mar 2003 00:28:24 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sat Mar 15 01:28:21 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18tzXA-0004R5-00 for ; Sat, 15 Mar 2003 01:28:20 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18tzvc-0005J6-00 for ; Sat, 15 Mar 2003 01:53:36 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18tzXG-0000jq-04 for emacs-devel@quimby.gnus.org; Fri, 14 Mar 2003 19:28:26 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18tzWw-0000fS-00 for emacs-devel@gnu.org; Fri, 14 Mar 2003 19:28:06 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18tzTg-0007jy-00 for emacs-devel@gnu.org; Fri, 14 Mar 2003 19:24:45 -0500 Original-Received: from [198.182.60.75] (helo=vaxjo.synopsys.com) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18tzRI-0006Wf-00 for emacs-devel@gnu.org; Fri, 14 Mar 2003 19:22:17 -0500 Original-Received: from mother.synopsys.com (mother.synopsys.com [146.225.100.171]) by vaxjo.synopsys.com (Postfix) with ESMTP id 3DF33DE86; Fri, 14 Mar 2003 16:22:15 -0800 (PST) Original-Received: from DMASTER-LAP.synopsys.com (localhost [127.0.0.1]) by mother.synopsys.com (8.9.1/8.9.1) with ESMTP id QAA08603; Fri, 14 Mar 2003 16:21:26 -0800 (PST) Original-To: Luc Teirlinck In-Reply-To: <200303150002.SAA17358@eel.dms.auburn.edu> X-Mailer: VM 7.03 under Emacs 21.1.1 Original-cc: emacs-custom@sunsite.dk X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:12375 gmane.emacs.customize:63 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:12375 >>>>> Luc Teirlinck writes: > I downloaded initsplit.el. I did not really read through the code. > But does initsplit-customizations-alist not tell initsplit.el where > everything is supposed to be? If the user tries to fool the > automated tool, the automated tool looses, no doubt about that. Now > initsplit somehow has to tell this to Custom through advice, hooks, > whatever. I am not interested in personally writing such a tool, > but it does not seem theoretically impossible. Whether it is easy > is another matter. I just took a look at it again (it's been awhile). The alist does tell initsplit where everything is supposed to be (based upon regexps against the defcustom variables). There is also a write-file-hook that checks to see if the file that is being written is a custom-file or user-init-file and, if so, runs it through initsplit. The comment says (I think) that, if you run Custom after initsplit, the new customizations (which could include updates to old ones) will again be put into the custom-file, but, because of the write-file-hook, initsplit will put it back where it belongs according to the alist. The only issue is that you have load all the split custom-files in your .emacs to ensure that all the customizations are known to Custom. John apparently uses this to split out Gnus and Viper customizations, but I guess you could apply it to VM, Rmail, JDE, and so on. Hmmm, maybe I ought to look at using this again... ;-) What was the issue that Per mentioned about multiple calls to custom-set-variables again? -- David Masterson David DOT Masterson AT synopsys DOT com Sr. R&D Engineer Synopsys, Inc. Software Engineering Sunnyvale, CA