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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 74 in the body.
You can then email your comments to 74 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#74; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Reiner Steib <Reiner.Steib <at> gmx.de>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Reiner Steib <reinersteib+gmane <at> imap.cc>
To: emacs-devel <at> gnu.org
Subject: defcustom keyword :custom-show isn't documented
Date: Fri, 21 Mar 2008 21:35:13 +0100
Hi,

in gnus-art.el, we have...

,----
| (defcustom gnus-ignored-headers
| [...]
|   :type '(choice :custom-show nil
| 		 regexp
| 		 (repeat regexp))
|   :group 'gnus-article-hiding)
`----

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

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/





Severity set to `minor' from `normal' Request was from Don Armstrong <don <at> donarmstrong.com> to control <at> emacsbugs.donarmstrong.com. (Wed, 11 Jun 2008 18:35:03 GMT) Full text and rfc822 format available.

bug reassigned from package `emacs' to `emacs,documentation'. Request was from Juanma Barranquero <lekktu <at> gmail.com> to control <at> emacsbugs.donarmstrong.com. (Sat, 24 Jan 2009 13:30:04 GMT) Full text and rfc822 format available.

Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#74; Package emacs,documentation. (Thu, 21 Jan 2010 05:09:02 GMT) Full text and rfc822 format available.

Message #12 received at 74 <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).




bug reassigned from package 'emacs,documentation' to 'emacs'. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Thu, 21 Jan 2010 05:09:02 GMT) Full text and rfc822 format available.

Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#74; Package emacs. (Wed, 06 Jul 2011 17:30:05 GMT) Full text and rfc822 format available.

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

From: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 74 <at> debbugs.gnu.org
Subject: Re: Bug#74: defcustom keyword :custom-show isn't documented
Date: Wed, 06 Jul 2011 19:27:39 +0200
Glenn Morris <rgm <at> gnu.org> writes:

>> 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).

Perhaps we should just remove the usages, and mark :custom-show as
obsolete?

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#74; Package emacs. (Wed, 06 Jul 2011 20:16:02 GMT) Full text and rfc822 format available.

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

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
Cc: Glenn Morris <rgm <at> gnu.org>, 74 <at> debbugs.gnu.org
Subject: Re: bug#74: defcustom keyword :custom-show isn't documented
Date: Wed, 06 Jul 2011 16:15:14 -0400
>> 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).
> Perhaps we should just remove the usages, and mark :custom-show as
> obsolete?

Agreed,


        Stefan




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#74; Package emacs. (Thu, 07 Jul 2011 16:01:02 GMT) Full text and rfc822 format available.

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

From: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: Glenn Morris <rgm <at> gnu.org>, 74 <at> debbugs.gnu.org
Subject: Re: bug#74: defcustom keyword :custom-show isn't documented
Date: Thu, 07 Jul 2011 17:59:58 +0200
Stefan Monnier <monnier <at> iro.umontreal.ca> writes:

>>> 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).
>> Perhaps we should just remove the usages, and mark :custom-show as
>> obsolete?
>
> Agreed,

I've now added a comment to the definition of the :custom-show widget,
and marked the `custom-show' function as obsolete.

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/




Added tag(s) fixed. Request was from Lars Magne Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 07 Jul 2011 16:01:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 24.1, send any further explanations to 74 <at> debbugs.gnu.org and Reiner Steib <Reiner.Steib <at> gmx.de> Request was from Lars Magne Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 07 Jul 2011 16:01:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 05 Aug 2011 11:24:05 GMT) Full text and rfc822 format available.

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.