From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/50637 Path: main.gmane.org!not-for-mail From: Per Abrahamsen Newsgroups: gmane.emacs.gnus.general Subject: Re: convert from setq to customization Date: Fri, 07 Mar 2003 10:02:55 +0100 Organization: The Church of Emacs Sender: owner-ding@hpc.uh.edu Message-ID: References: <86u1em4wdn.fsf@red.stonehenge.com> <4nadg9fsw2.fsf@lockgroove.bwh.harvard.edu> <4nof4o2xc1.fsf@lockgroove.bwh.harvard.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1047027801 13952 80.91.224.249 (7 Mar 2003 09:03:21 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 7 Mar 2003 09:03:21 +0000 (UTC) Cc: emacs-custom@sunsite.dk Original-X-From: owner-ding@hpc.uh.edu Fri Mar 07 10:03:20 2003 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18rDl9-0003cu-00 for ; Fri, 07 Mar 2003 10:03:19 +0100 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 18rDl5-0007uz-00; Fri, 07 Mar 2003 03:03:15 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 07 Mar 2003 03:04:14 -0600 (CST) Original-Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id DAA08753 for ; Fri, 7 Mar 2003 03:04:01 -0600 (CST) Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 18rDkF-0003a6-00 for ; Fri, 07 Mar 2003 10:02:23 +0100 Mail-Followup-To: ding@hpc.uh.edu X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@hpc.uh.edu Original-Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 18rDkE-0003Zv-00 for ; Fri, 07 Mar 2003 10:02:22 +0100 Original-Lines: 27 Original-X-Complaints-To: usenet@main.gmane.org X-Face: +kRV2]2q}lixHkE{U)mY#+6]{AH=yN~S9@IFiOa@X6?GM|8MBp/ Mail-Copies-To: nobody User-Agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.1 (sparc-sun-solaris2.8) Cancel-Lock: sha1:nXOy6dGbF+u8t0fN+JRkrqIhDmc= Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:50637 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:50637 Ted Zlatanov writes: > On Thu, 06 Mar 2003, abraham@dina.kvl.dk wrote: >> User options, i.e. anything declared by defcustom or defface, should >> only be modified the user, either by setq's in .emacs or >> interactivly through customize. >> >> If it is done by other Lisp packages, they risk conflicting with the >> users choices. > > What if package A has variable A1, which needs to be overridden by > package B because of variable B1? Split the variable in two, A1-user and A1-default the first being defcustom (for the user) and the second defvar (for other packages), with the first taking precedence over the second if changed . > For example, spam.el requires nnimap-split-download-body in nnimap.el > to be set if a statistical filter is selected, so the whole message > body is downloaded. If ann option explicitly set by the user prevent another package from running, that package should give an error, not overwrite the EXPLICIT user choice. Defaults is another case, covered by my suggestion above.