unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Robert J. Chassell" <bob@rattlesnake.com>
Subject: Re: Bug in Custom
Date: Sat, 1 Jul 2006 09:04:57 -0400 (EDT)	[thread overview]
Message-ID: <m1Fwf9d-0004EnC@rattlesnake.com> (raw)
In-Reply-To: <200607010014.k610E6WN015030@jane.dms.auburn.edu> (message from Luc Teirlinck on Fri, 30 Jun 2006 19:14:06 -0500 (CDT))

   I reported this bug a month and a half ago, but it is still present.

Someone could (partially) fix the bug by revising the words "Erase
Customization" in the `State' menu to "Change this Value to Previous".

The bug occurs because of different ways people think of the notion of
"Customization".  Most people that I know think of what you do in this
buffer as similar to evaluating

    (setq fill-column 72)

in a *scratch*, .emacs, or other buffer, but with a different
function.  (In this case, `custom-set-variables'.)  In addition, they
think of "Customization" as something you do with that different
function (or with `custom-set-faces').

That is to say, "Customization" in this context is not what you do
when you evaluate `(setq fill-column 72)' in your `user-init-file', it
is what you do when you evaluate

    (custom-set-variables '(fill-column 72))

So "Erase Customization" does exactly what most of the people I know
expect.  Moreover, it fits what RMS has said to expect.

Because of the different understandings of what `customization' means,
you are suggesting that evaluating a `custom-set-variables' expression
should change values set by evaluating a `setq' expression in your
existing customization file.  

In addition, you are suggesting that another way of saying "customize"
should be "evaluating a `setq' expression".


(info "(emacs)Changing a Variable")    says:

   `Erase Customization'
        This sets the variable to its standard value, and updates the text
        accordingly.  This also eliminates any saved value for the
        variable, so that you will get the standard value in future Emacs
        sessions.

Yes, this is clearly a bug.

The action does not set the variable to its standard value; the action
changes it to what ever it was before using the `custom-set-variables'
function.  The new value is only sometimes its standard value.  The
documentation should be reworded.

Incidently, the second sentence in the documentation for
`Custom-reset-standard' should also be reworded, too.  The first line
of that documentation is accurate:

  Erase all customization (either current or saved) for the group members.

But the second line is not:

    The immediate result is to restore them to their standard values.


Indeed, since many new people will think that customization refers to
the effects of evaluating a `setq' expression as well as a
`custom-set-*' expression, perhaps the word `customization' and its
cognates should all be changed.  That would mean, for example,
changing the phrase "customization buffer" to "novices' change
buffer".  It could mean changing `custom' to
`novices-special-evaluation'.

-- 
    Robert J. Chassell                         
    bob@rattlesnake.com                         GnuPG Key ID: 004B4AC8
    http://www.rattlesnake.com                  http://www.teak.cc

  parent reply	other threads:[~2006-07-01 13:04 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-01  0:14 Bug in Custom Luc Teirlinck
2006-07-01  0:32 ` Lennart Borgman
2006-07-01  3:12 ` Luc Teirlinck
2006-07-01  3:32 ` Chong Yidong
2006-07-01  5:04   ` Luc Teirlinck
2006-07-01 14:11   ` Richard Stallman
2006-07-01 13:04 ` Robert J. Chassell [this message]
2006-07-02 18:13 ` Per Abrahamsen
2006-07-05  2:04   ` Luc Teirlinck

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m1Fwf9d-0004EnC@rattlesnake.com \
    --to=bob@rattlesnake.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).