* [21.2]: M-x customize-group offers non-groups for customisation
@ 2002-04-11 13:35 Marshall, Simon
2002-04-11 15:41 ` Per Abrahamsen
2002-04-11 18:06 ` Stefan Monnier
0 siblings, 2 replies; 3+ messages in thread
From: Marshall, Simon @ 2002-04-11 13:35 UTC (permalink / raw)
If you do M-x customize-group RET then you can enter, e.g.,
auto-compression-mode and a customisation buffer is offered up. Problem
is, auto-compression-mode isn't a group and so the customisation buffer
is empty/confusing.
The cause is in this in customize-group:
(completing-read "Customize group: (default emacs) "
obarray
(lambda (symbol)
(or (get symbol 'custom-loads)
(get symbol 'custom-group)))
t)
where auto-compression-mode has a non-nil custom-loads property (its
custom-group property is nil).
How hard is it to make custom only offer genuine groups? Presumably too
hard.
Perhaps something meaningful can be done after customize-group does the
custom-load-symbol, e.g., say, "oh, it's not a group, but here's a
customisation buffer containing the list of groups to which it belongs"
or "oh, it's not a group, it's an X and here's the appropriate
customisation buffer to customise it".
Simon.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [21.2]: M-x customize-group offers non-groups for customisation
2002-04-11 13:35 [21.2]: M-x customize-group offers non-groups for customisation Marshall, Simon
@ 2002-04-11 15:41 ` Per Abrahamsen
2002-04-11 18:06 ` Stefan Monnier
1 sibling, 0 replies; 3+ messages in thread
From: Per Abrahamsen @ 2002-04-11 15:41 UTC (permalink / raw)
"Marshall, Simon" <simon.marshall@misys.com> writes:
> How hard is it to make custom only offer genuine groups? Presumably too
> hard.
You'd have to add the information when you generate cus-load. I don't
think it would be hard (but I don't volunteer), the question is
whether it is worth it.
> Perhaps something meaningful can be done after customize-group does the
> custom-load-symbol, e.g., say, "oh, it's not a group, but here's a
> customisation buffer containing the list of groups to which it belongs"
> or "oh, it's not a group, it's an X and here's the appropriate
> customisation buffer to customise it".
I prefer the second option, with the caveat that it can be both a
variable and a face, simultaneously. It isn't even a rare case.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [21.2]: M-x customize-group offers non-groups for customisation
2002-04-11 13:35 [21.2]: M-x customize-group offers non-groups for customisation Marshall, Simon
2002-04-11 15:41 ` Per Abrahamsen
@ 2002-04-11 18:06 ` Stefan Monnier
1 sibling, 0 replies; 3+ messages in thread
From: Stefan Monnier @ 2002-04-11 18:06 UTC (permalink / raw)
>>>>> "Marshall," == Marshall, Simon <simon.marshall@misys.com> writes:
> where auto-compression-mode has a non-nil custom-loads property (its
> custom-group property is nil).
> How hard is it to make custom only offer genuine groups? Presumably too
> hard.
Couldn't we decide that the `custom-loads' property should only
contain a list of elements if the object is a group, otherwise
it should just contain a single string (or symbol).
After all, why should a `defcustom' require loading of more
than a single file/feature ?
Stefan
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-04-11 18:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-11 13:35 [21.2]: M-x customize-group offers non-groups for customisation Marshall, Simon
2002-04-11 15:41 ` Per Abrahamsen
2002-04-11 18:06 ` Stefan Monnier
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).