all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Re: override defcustom
@ 2002-09-03  5:44 Bruce Ingalls
  2003-04-26  5:49 ` why `view-lossage' is called so? Janusz S. Bień
  0 siblings, 1 reply; 3+ messages in thread
From: Bruce Ingalls @ 2002-09-03  5:44 UTC (permalink / raw)


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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-05-05  0:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.5233.1051378760.21513.help-gnu-emacs@gnu.org>
2003-05-05  0:49 ` why `view-lossage' is called so? Bob Nelson
2002-09-03  5:44 override defcustom Bruce Ingalls
2003-04-26  5:49 ` why `view-lossage' is called so? Janusz S. Bień
2003-04-26 17:38   ` drf5n

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.