From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Bruce Ingalls Newsgroups: gmane.emacs.help Subject: Re: override defcustom Date: Tue, 03 Sep 2002 05:44:55 GMT Organization: Road Runner - NYC Sender: help-gnu-emacs-admin@gnu.org Message-ID: <3D744D5B.6050100@fit-zones.DELETE-THE-SPAM-BLOCK.com> References: <3D6F86E6.6080003@fit-zones.DELETE-THE-SPAM-BLOCK.com> <3D718AAA.8010401@fit-zones.DELETE-THE-SPAM-BLOCK.com> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1031032477 12474 127.0.0.1 (3 Sep 2002 05:54:37 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 3 Sep 2002 05:54:37 +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 17m6e4-0003F5-00 for ; Tue, 03 Sep 2002 07:54:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17m6fV-0008Qc-00; Tue, 03 Sep 2002 01:56:05 -0400 Original-Path: shelby.stanford.edu!nntp.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed1.cidera.com!Cidera!cyclone.rdc-nyc.rr.com!news-out.nyc.rr.com!twister.nyc.rr.com.POSTED!not-for-mail User-Agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.0.0) Gecko/20020605 X-Accept-Language: en-us, en Original-Newsgroups: gnu.emacs.help Original-Lines: 32 Original-NNTP-Posting-Host: 24.168.133.158 Original-X-Complaints-To: abuse@rr.com Original-X-Trace: twister.nyc.rr.com 1031031895 24.168.133.158 (Tue, 03 Sep 2002 01:44:55 EDT) Original-NNTP-Posting-Date: Tue, 03 Sep 2002 01:44:55 EDT Original-Xref: nntp.stanford.edu gnu.emacs.help:104415 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:980 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:980 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.