From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.devel Subject: Re: Custom dependencies Date: Sun, 06 Apr 2003 16:55:30 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200304062055.h36KtUNd019785@rum.cs.yale.edu> References: <8465pvpnhy.fsf@lucy.is.informatik.uni-duisburg.de> <200304041519.h34FJa9n007445@rum.cs.yale.edu> <84a3e0qv3x.fsf@lucy.is.informatik.uni-duisburg.de> <200304042033.h34KXwoB008300@rum.cs.yale.edu> <84k7e9t05t.fsf@lucy.is.informatik.uni-duisburg.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1049662603 16156 80.91.224.249 (6 Apr 2003 20:56:43 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 6 Apr 2003 20:56:43 +0000 (UTC) Cc: Stefan Monnier Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sun Apr 06 22:56:41 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 192HBx-0004CQ-00 for ; Sun, 06 Apr 2003 22:56:41 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 192HF9-0007wa-00 for ; Sun, 06 Apr 2003 22:59:59 +0200 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 192HBY-00045P-05 for emacs-devel@quimby.gnus.org; Sun, 06 Apr 2003 16:56:16 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 192HB4-0003nm-00 for emacs-devel@gnu.org; Sun, 06 Apr 2003 16:55:46 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 192HAs-0003Du-00 for emacs-devel@gnu.org; Sun, 06 Apr 2003 16:55:37 -0400 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.10.13) id 192HAr-00039L-00 for emacs-devel@gnu.org; Sun, 06 Apr 2003 16:55:33 -0400 Original-Received: from rum.cs.yale.edu (localhost [127.0.0.1]) by rum.cs.yale.edu (8.12.8/8.12.8) with ESMTP id h36KtUx6019787; Sun, 6 Apr 2003 16:55:30 -0400 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.12.8/8.12.8/Submit) id h36KtUNd019785; Sun, 6 Apr 2003 16:55:30 -0400 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: kai.grossjohann@gmx.net (Kai =?iso-8859-1?q?Gro=DFjohann?=) Original-cc: emacs-devel@gnu.org 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:12936 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:12936 > >> > - The case where A is set to "the value of E" where E is a sexp > >> > that refers to B. In such a case, the dependency is not part of > >> > A but of A's current setting, so :set-after is not a good solution. > >> > I don't know how custom could find out (or be told about) such > >> > dependencies. OTOH, "what to do when B changes" is trivial to answer > >> > this time. > >> > >> You mean that you could set next-screen-context-lines to `ten percent > >> of the window height'? That doesn't make sense: it needs to be > > > > Custom currently allows such things. > > But how does Custom change the code that's used to *access* a > variable? You don't understand: the expression is evaluated once and for all when setting the variable. Which is why dependencies might need to be handled: to reset the var when things it refers to are changed. Stefan