Gnus development mailing list
 help / color / mirror / Atom feed
From: Per Abrahamsen <abraham@dina.kvl.dk>
Cc: emacs-custom@sunsite.dk
Subject: Re: convert from setq to customization
Date: Fri, 07 Mar 2003 10:02:55 +0100	[thread overview]
Message-ID: <rjllzrczwg.fsf__39382.2275604636$1047027801@zuse.dina.kvl.dk> (raw)
In-Reply-To: <4nof4o2xc1.fsf@lockgroove.bwh.harvard.edu>

Ted Zlatanov <tzz@lifelogs.com> 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.





      parent reply	other threads:[~2003-03-07  9:02 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-01 21:20 Randal L. Schwartz
2003-03-01 23:59 ` Ted Zlatanov
2003-03-03 13:41   ` Kai Großjohann
2003-03-03 15:56     ` Ted Zlatanov
2003-03-03 16:53       ` Kai Großjohann
2003-03-03 19:42         ` Randal L. Schwartz
2003-03-03 19:51           ` Kai Großjohann
2003-03-03 20:50           ` Randal L. Schwartz
2003-03-05 12:49   ` Per Abrahamsen
2003-03-05 20:38     ` Ted Zlatanov
2003-03-05 13:31 ` Per Abrahamsen
2003-03-05 17:38   ` David S Goldberg
2003-03-06  8:01     ` Per Abrahamsen
2003-03-05 18:39   ` Reiner Steib
2003-03-06  7:55     ` Per Abrahamsen
     [not found]   ` <4nadg9fsw2.fsf@lockgroove.bwh.harvard.edu>
     [not found]     ` <rju1ehc501.fsf@zuse.dina.kvl.dk>
2003-03-06 17:56       ` Ted Zlatanov
2003-03-06 20:13         ` Simon Josefsson
2003-03-07 16:19           ` Ted Zlatanov
2003-03-07 16:36             ` Simon Josefsson
2003-03-07 17:33               ` Ted Zlatanov
2003-03-07 18:38                 ` Simon Josefsson
2003-03-07 19:46                   ` Ted Zlatanov
2003-03-07  9:02         ` Per Abrahamsen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='rjllzrczwg.fsf__39382.2275604636$1047027801@zuse.dina.kvl.dk' \
    --to=abraham@dina.kvl.dk \
    --cc=emacs-custom@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).