GNU bug report logs - #74
defcustom keyword :custom-show isn't documented

Previous Next

Package: emacs;

Reported by: Reiner Steib <Reiner.Steib <at> gmx.de>

Date: Sat, 22 Mar 2008 01:20:03 UTC

Severity: minor

Tags: fixed

Fixed in version 24.1

Done: Lars Magne Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #14 received at control <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 74 <at> debbugs.gnu.org
Subject: Re: Bug#74: defcustom keyword :custom-show isn't documented
Date: Thu, 21 Jan 2010 00:08:10 -0500
reassign 74 emacs
stop

Reiner Steib wrote:

> Neither the doc string of `defcustom', nor the manual explains it.

It seems that it (:custom-show) is supposed to make the variable value
field be hidden by default when it is created. In other words, make the
custom buffer look like you have clicked the "Hide the value of this
option" button.

The idea is that when a variable has a complex value, it should be
hidden by default, to avoid cluttering up the display.

However, AFAICS it doesn't work (in Emacs 21, 22, or 23).
custom-variable-value-create only uses custom-show when a variable has a
nil :custom-state. Since variables are created with state 'unknown, it
never does anything.

Making the obvious change doesn't work (the variable is created hidden
ok, but can't be unhidden by clicking the relevant button).

Given that it seems never to have worked, I'm not sure it's worth
bothering trying to fix it. It's only used in gnus-art (and cus-edit
tries to apply it to long editable-fields).




This bug report was last modified 13 years and 323 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.