From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Oliver Scholz Newsgroups: gmane.emacs.help Subject: Re: Customize enforcing data relationships? Date: Wed, 19 Feb 2003 09:11:10 +0100 Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <5l65ri51xo.fsf@rum.cs.yale.edu> <84wujy4y7q.fsf@lucy.is.informatik.uni-duisburg.de> <5l1y264tlu.fsf@rum.cs.yale.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1045642586 7267 80.91.224.249 (19 Feb 2003 08:16:26 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 19 Feb 2003 08:16:26 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18lPOz-0001t5-00 for ; Wed, 19 Feb 2003 09:16:25 +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 18lPO4-0001hZ-00 for gnu-help-gnu-emacs@m.gmane.org; Wed, 19 Feb 2003 03:15:28 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!dialin-145-254-192-055.arcor-ip.NET!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 38 Original-NNTP-Posting-Host: dialin-145-254-192-055.arcor-ip.net (145.254.192.55) Original-X-Trace: fu-berlin.de 1045642279 51175918 145.254.192.55 (16 [87814]) X-Operating-System: GNU/Linux, built from scratch: http://www.linuxfromscratch.org/ X-Attribution: os X-Face: "HgH2sgK|bfH$; PiOJI6|qUCf.ve<51_Od(%ynHr?=>znn#~#oS>",F%B8&\vus),2AsPYb -n>PgddtGEn}s7kH?7kH{P_~vu?]OvVN^qD(L)>G^gDCl(U9n{:d>'DkilN!_K"eNzjrtI4Ya6;Td% IZGMbJ{lawG+'J>QXPZD&TwWU@^~A}f^zAb[Ru;CT(UA]c& User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-msvc-nt5.1.2600) Cancel-Lock: sha1:NgRQ8YVS8sNwMiu2iv7HoflhDZY= Original-Xref: shelby.stanford.edu gnu.emacs.help:110367 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:6869 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:6869 Galen Boyer writes: [...] > I was talking more about, if you set variable B, then you will need to > set variable A. > > Or, you should set these variables in this particular order. > > It would be a way for customize to mimic those interactive installing > programs. Let the author define the dependency (how bout requirements > as the term?) and customize could continue to take care of the setup > interface. > > It would also be a way to get some of the nice windowy setup dialogs > where they make it difficult for one to muck up their environment. If a > certain dialog box is clicked off, a whole particular section of > variables gets grayed out. [...] You could at least do something like this, if it is applicable: (defvar my-variable-A nil) (defcustom my-variable-B "test" "A variable." :type 'string :set (lambda (symbol value) (set symbol value) (if (equal value "schubi") (setq my-variable-A "dubi") (setq my-variable-A nil)))) It would be nice, if this could be used to "gray out" some sections in the customization buffer. Oliver -- 1 Ventôse an 211 de la Révolution Liberté, Egalité, Fraternité!