unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Luc Teirlinck <teirllm@dms.auburn.edu>
Cc: rms@gnu.org, lennart.borgman.073@student.lu.se,
	emacs-devel@gnu.org, monnier@iro.umontreal.ca,
	drew.adams@oracle.com, abraham@dina.kvl.dk
Subject: Re: Eliminating "changed in Emacs outside of Customize"
Date: Tue, 1 Feb 2005 16:11:49 -0600 (CST)	[thread overview]
Message-ID: <200502012211.j11MBnj02899@raven.dms.auburn.edu> (raw)
In-Reply-To: <x5ekg0q7yu.fsf@lola.goethe.zz> (message from David Kastrup on Tue, 01 Feb 2005 22:35:37 +0100)

David Kastrup wrote:

   It appears that I am babbling and confusing this with something else.

   Probably with custom-declare-variable calling the setter function if
   the value of the variable has been set before custom-declare-variable
   is executed.

I believe that you were confusing with the defcustom form, which does
not override an already set value (_unless_ the :set function does so)
and its default :initialize function `custom-initialize-reset', which
nevertheless executes the :set function _even_ if the value is already
set.

`custom-initialize-reset' is a dangerous default by the way, as it
could override the user and unpredictably change behavior due to, say,
browsing custom groups and hence inadvertently loading a file and
executing a defcustom.  Indeed, even if the :set function does not
change the value, it can change other stuff.  We decided before that
it was too late to change this default, but I believe that anybody who
writes a defcustom with a :set function should carefully check whether
the default :initialize function is really appropriate for it, taking
into account that not all Emacs users will customize the variable
through Custom.  `custom-initialize-reset' has led to several bugs,
but all _known_ bugs caused by it have been corrected.

Sincerely,

Luc.

  reply	other threads:[~2005-02-01 22:11 UTC|newest]

Thread overview: 59+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-26  0:03 Eliminating "changed in Emacs outside of Customize" Richard Stallman
2005-01-31 10:33 ` Per Abrahamsen
2005-02-01 13:30   ` Richard Stallman
2005-02-01 14:32     ` Per Abrahamsen
2005-02-01 18:58       ` Drew Adams
2005-02-01 20:04         ` Stefan Monnier
2005-02-01 20:38           ` Drew Adams
2005-02-01 20:44           ` David Kastrup
2005-02-01 21:05             ` Drew Adams
2005-02-01 23:52               ` Robert J. Chassell
2005-02-01 21:19             ` Lennart Borgman
2005-02-01 21:35               ` David Kastrup
2005-02-01 22:11                 ` Luc Teirlinck [this message]
2005-02-01 22:26                   ` Lennart Borgman
2005-02-02  1:03                     ` Luc Teirlinck
2005-02-02  1:34                       ` Drew Adams
2005-02-02  2:11                         ` Luc Teirlinck
2005-02-02  2:51                         ` Luc Teirlinck
2005-02-03  6:40                       ` Richard Stallman
2005-02-01 22:28                   ` David Kastrup
2005-02-01 22:40                   ` Drew Adams
2005-02-03  6:39                     ` Richard Stallman
2005-02-03  7:29                       ` Lennart Borgman
2005-02-05  5:27                         ` Richard Stallman
2005-02-03 16:54                       ` Drew Adams
2005-02-01 22:40                 ` Drew Adams
2005-02-01 21:25           ` Lennart Borgman
2005-02-03  6:39             ` Richard Stallman
2005-02-02  7:57           ` Per Abrahamsen
2005-02-02 18:33             ` Drew Adams
2005-02-02 21:04               ` Lennart Borgman
2005-02-02 22:11                 ` Drew Adams
2005-02-02 22:55                   ` Stefan Monnier
2005-02-02 22:45                 ` Luc Teirlinck
2005-02-03 15:49                   ` Lennart Borgman
2005-02-03 16:12                     ` Luc Teirlinck
2005-02-03 15:51                   ` Lennart Borgman
2005-02-03 16:01                     ` Lennart Borgman
2005-02-03 19:14                 ` Richard Stallman
2005-02-04  7:27                   ` Lennart Borgman
2005-02-03 19:12             ` Richard Stallman
2005-02-03 19:45               ` Stefan Monnier
2005-02-03 19:59                 ` Lennart Borgman
2005-02-03 20:34                   ` Stefan Monnier
2005-02-05  5:31                 ` Richard Stallman
2005-02-03 20:53               ` Drew Adams
2005-02-03 22:08                 ` Luc Teirlinck
2005-02-03 22:13                 ` Luc Teirlinck
2005-02-04  1:04                 ` Luc Teirlinck
2005-02-04  1:31                 ` Luc Teirlinck
2005-02-04  3:16                   ` Luc Teirlinck
2005-02-03 21:10               ` Robert J. Chassell
2005-02-03  6:39           ` Richard Stallman
2005-02-03  6:41       ` Richard Stallman
2005-02-03 14:42         ` Stefan Monnier
2005-02-03 15:23           ` Luc Teirlinck
2005-02-03 15:48           ` Luc Teirlinck
2005-02-01 15:41   ` Lennart Borgman
2005-02-02  7:40     ` Per Abrahamsen

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=200502012211.j11MBnj02899@raven.dms.auburn.edu \
    --to=teirllm@dms.auburn.edu \
    --cc=abraham@dina.kvl.dk \
    --cc=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    --cc=lennart.borgman.073@student.lu.se \
    --cc=monnier@iro.umontreal.ca \
    --cc=rms@gnu.org \
    /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).