unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Lute Kamstra <Lute.Kamstra.lists@xs4all.nl>
Subject: unload-feature and defcustom.
Date: Fri, 29 Apr 2005 15:51:41 +0200	[thread overview]
Message-ID: <87ll71y9le.fsf@xs4all.nl> (raw)

unload-feature does not completely reverse the effects of defcustom.

Consider this file:

,----[ a.el ]
| (defcustom a-cus-var 'a-value 
|   "The documentation of `a-cus-var'.")
| (provide 'a)
`----

and do:

(require 'a)
(unload-feature 'a)

Now a-cus-var is not bound, but when I do M-x customize-option, I can
still select (with completion) a-cus-var and that gives me this
customization buffer:

,----[ *Customize Option: A Cus Var* ]
| This is a customization buffer.
| `Raised' buttons show active fields; type RET or click mouse-1
| on an active field to invoke its action.  Editing an option value
| changes only the text in the buffer.  Invoke the State button to set or
| save the option value.  Saving an option normally edits your init file.
| Invoke Custom file for information on how to save in a different file.
| Invoke Help for general information.
| 
| Operate on everything in this buffer:
|  Set for Current Session Save for Future Sessions
|  Reset Reset to Saved Erase Customization   Finish
| 
| A Cus Var: Hide Value "nil"
|    State: CHANGED outside Customize; operating on it here may be unreliable.
| 
| The documentation of `a-cus-var'.
| Parent groups: Nil
`----

I think this is undesirable.  Could this be easily fixed?  (Maybe by
letting customize ignore unbound vars.)  Or is better to put this on
the post-release todo list?

Lute.

             reply	other threads:[~2005-04-29 13:51 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-29 13:51 Lute Kamstra [this message]
2005-04-29 19:02 ` HAVE_SYS_SELECT of sysselect.h Nozomu Ando
2005-05-01 22:43   ` Thien-Thi Nguyen
2005-05-01 23:15     ` Thien-Thi Nguyen
2005-05-02  0:21       ` Nozomu Ando
2005-05-02  1:47         ` Thien-Thi Nguyen
2005-05-02  1:53   ` YAMAMOTO Mitsuharu
2005-05-02  2:44     ` Nozomu Ando
2005-05-04  5:45     ` Harald Maier
2005-04-30  8:13 ` unload-feature and defcustom David Kastrup
2005-05-01 12:06 ` Richard Stallman

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=87ll71y9le.fsf@xs4all.nl \
    --to=lute.kamstra.lists@xs4all.nl \
    /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).