emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 23.0.60; Feature request: eval-defun on defcustom :initialize / :set


From: Sam Steingold
Subject: Re: 23.0.60; Feature request: eval-defun on defcustom :initialize / :set
Date: Fri, 04 Apr 2008 11:28:12 -0400
User-agent: Thunderbird 2.0.0.0 (X11/20070326)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Reiner Steib wrote:
|
| I think `eval-defun' (C-M-x) on a defcustom which has should evaluate
| the :initialize or :set function.
|
| Real-life example: Changing the list of regexps in
| `smiley-regexp-alist' and doing `C-M-x' has no effect.  I modified and
| evaluated the defcustom several times until I noticed that I need to
| eval `(smiley-update-cache)' as well before my change does anything.

it is not obvious that this is correct.
defcustom is similar to defvar which does not set the the variable if it
is already defined.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFH9kkMPp1Qsf2qnMcRApnPAJ9fX7UhyrWmOBrNJlxlmp01EEBt0wCfbp1R
FB1CV3xsb8dOrQMgI+IPGHY=
=LvsH
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]