unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* custom-declare-variable
@ 2005-07-04 23:20 Luc Teirlinck
  2005-07-04 23:37 ` custom-declare-variable Luc Teirlinck
  2005-07-11 16:53 ` custom-declare-variable Richard M. Stallman
  0 siblings, 2 replies; 8+ messages in thread
From: Luc Teirlinck @ 2005-07-04 23:20 UTC (permalink / raw)
  Cc: abraham

As I already pointed out in another message, there is some strangeness
in the custom-declare-variable docstring and the following comment,
As it was at the end of my message, it may have been overlooked.

  DEFAULT is stored as SYMBOL's value in the standard theme.  See
  `custom-known-themes' for a list of known themes.  For backwards
  compatibility, DEFAULT is also stored in SYMBOL's property
  `standard-value'.  At the same time, SYMBOL's property `force-value' is
  set to nil, as the value is no longer rogue."
    ;; Remember the standard setting.  The value should be in the standard
    ;; theme, not in this property.  However, this would require changing
    ;; the C source of defvar and others as well...
    (put symbol 'standard-value (list default))

First of all, the docstring appears to contain a falsehood.  From the
comment (and from the actual code), it appears that DEFAULT is not
_currently_ stored in the standard theme.  But the docstring clearly
seems to indicate an intent to store it in the standard theme and make
standard-value obsolete, which according to the comment, requires a
rewrite of defvar and various other primitives.

This seems to be completely crazy.  There would not appear to be
anything wrong with standard-value.  On the other hand, there are
plenty of things wrong with the bug-saturated attempt at Custom Themes
support in custom.el.  So I believe that it would be very unwise to
make correct functioning of Custom dependent on correct functioning of
the Custom Themes support.  The idea that implementing Custom themes
requires changes to defvar and various other primitives seems
completely crazy to me.  Do we really want to do that?  If not, should
we not delete the above comment and remove the (apparently) false
claims from the above second paragraph of the docstring:

  DEFAULT is stored in SYMBOL's property `standard-value'.  At the
  same time, SYMBOL's property `force-value' is set to nil, as the value
  is no longer rogue.

Sincerely,

Luc.

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

end of thread, other threads:[~2005-07-11 16:53 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-04 23:20 custom-declare-variable Luc Teirlinck
2005-07-04 23:37 ` custom-declare-variable Luc Teirlinck
2005-07-05  9:37   ` custom-declare-variable Per Abrahamsen
2005-07-05 10:54     ` custom-declare-variable Kim F. Storm
2005-07-06  1:34       ` custom-declare-variable Luc Teirlinck
2005-07-06 17:55         ` custom-declare-variable Richard M. Stallman
2005-07-05 23:55     ` custom-declare-variable Luc Teirlinck
2005-07-11 16:53 ` custom-declare-variable Richard M. Stallman

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