all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* defcustom keyword :custom-show isn't documented
@ 2008-03-21 20:35 Reiner Steib
  2010-01-21  5:08 ` bug#74: Bug#74: " Glenn Morris
  0 siblings, 1 reply; 5+ messages in thread
From: Reiner Steib @ 2008-03-21 20:35 UTC (permalink / raw)
  To: emacs-devel

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/




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

* bug#74: Bug#74: defcustom keyword :custom-show isn't documented
  2008-03-21 20:35 defcustom keyword :custom-show isn't documented Reiner Steib
@ 2010-01-21  5:08 ` Glenn Morris
  2011-07-06 17:27   ` bug#74: " Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 5+ messages in thread
From: Glenn Morris @ 2010-01-21  5:08 UTC (permalink / raw)
  To: 74

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






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

* bug#74: defcustom keyword :custom-show isn't documented
  2010-01-21  5:08 ` bug#74: Bug#74: " Glenn Morris
@ 2011-07-06 17:27   ` Lars Magne Ingebrigtsen
  2011-07-06 20:15     ` Stefan Monnier
  0 siblings, 1 reply; 5+ messages in thread
From: Lars Magne Ingebrigtsen @ 2011-07-06 17:27 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 74

Glenn Morris <rgm@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/





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

* bug#74: defcustom keyword :custom-show isn't documented
  2011-07-06 17:27   ` bug#74: " Lars Magne Ingebrigtsen
@ 2011-07-06 20:15     ` Stefan Monnier
  2011-07-07 15:59       ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 5+ messages in thread
From: Stefan Monnier @ 2011-07-06 20:15 UTC (permalink / raw)
  To: Lars Magne Ingebrigtsen; +Cc: 74

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





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

* bug#74: defcustom keyword :custom-show isn't documented
  2011-07-06 20:15     ` Stefan Monnier
@ 2011-07-07 15:59       ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 5+ messages in thread
From: Lars Magne Ingebrigtsen @ 2011-07-07 15:59 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: 74

Stefan Monnier <monnier@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/





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

end of thread, other threads:[~2011-07-07 15:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-21 20:35 defcustom keyword :custom-show isn't documented Reiner Steib
2010-01-21  5:08 ` bug#74: Bug#74: " Glenn Morris
2011-07-06 17:27   ` bug#74: " Lars Magne Ingebrigtsen
2011-07-06 20:15     ` Stefan Monnier
2011-07-07 15:59       ` Lars Magne Ingebrigtsen

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.