unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Bruce Ingalls <bingalls@fit-zones.DELETE-THE-SPAM-BLOCK.com>
Subject: Re: override defcustom
Date: Tue, 03 Sep 2002 05:44:55 GMT	[thread overview]
Message-ID: <3D744D5B.6050100@fit-zones.DELETE-THE-SPAM-BLOCK.com> (raw)
In-Reply-To: vafr8gccvit.fsf@lucy.cs.uni-dortmund.de

I likely did not explain the problem precisely enough.
It now looks that both Modern Emacs & XEmacs properly (IMHO) default
font-lock-maximum-decoration to t. However, there are other custom
variables I would like to override.

The essentials work fine, if I create an emacro defcustom group, and do

(defcustom font-lock-maximum-decoration t
  "Toggle max colors for all modes."
   :group 'emacro
   :type 'boolean)

Some users will use M-x customize (or its menu equivalent), and will try 
to change the default setting.
Perhaps I am wrong, but I expect that they will be in for a surprise.
The problem is that font-lock-maximum-decoration is also set in the 
font-lock group.
Aren't users required to set this variable in both groups?
Unfortunately, they may only be aware of one group. :(

I could have EMacro generate setq() statements. However, customize() 
users will simply know that the font-lock-maximum-decoration variable is 
available, and again be disappointed.

I don't have a choice; Emacs & XEmacs already use such Customize 
Variables. I am also just as certain that I don't like the defaults 
provided. Finally, I want to provide a way that nonprogrammers can set 
their own defaults; customize() provides a user friendly menu to do just 
that.

Thanks, Bruce.

  reply	other threads:[~2002-09-03  5:44 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-30 14:46 override defcustom Bruce Ingalls
2002-08-31 16:19 ` Kai Großjohann
2002-09-01  3:27   ` Bruce Ingalls
2002-09-01 18:36     ` Kai Großjohann
2002-09-02 14:32       ` Kai Großjohann
2002-09-03  5:44         ` Bruce Ingalls [this message]
2002-09-03 13:04           ` Kai Großjohann
2003-04-26  5:49           ` why `view-lossage' is called so? Janusz S. Bień
2003-04-26 17:38             ` drf5n
  -- strict thread matches above, loose matches on Subject: below --
2002-09-08  2:53 override defcustom Bruce Ingalls
2002-09-08 20:24 ` Kai Großjohann

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=3D744D5B.6050100@fit-zones.DELETE-THE-SPAM-BLOCK.com \
    --to=bingalls@fit-zones.delete-the-spam-block.com \
    /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 read-only IMAP folder(s) and NNTP newsgroup(s).