[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
defcustom standard-value (was: Re: BASE_PURESIZE)
From: |
Dan Nicolaescu |
Subject: |
defcustom standard-value (was: Re: BASE_PURESIZE) |
Date: |
Thu, 29 Oct 2009 18:17:18 -0700 (PDT) |
Dan Nicolaescu <address@hidden> writes:
> Another issue that I hit:
>
> Changing (in files.el)
>
> From:
> (defcustom directory-free-space-program "df"
> to:
> (defcustom directory-free-space-program (purecopy "df")
>
> does not get rid of the "df" string in GC memory. The reason is
>
> ELISP> (get 'directory-free-space-program 'standard-value)
> ((purecopy "df"))
>
> BTW, this is not a problem for autoloaded defcustoms, they get
> transformed into defvars in loaddefs.el.
Is this patch TRTD?
Index: lisp/custom.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/custom.el,v
retrieving revision 1.149
diff -u -3 -p -r1.149 custom.el
--- lisp/custom.el 15 Sep 2009 04:08:04 -0000 1.149
+++ lisp/custom.el 29 Oct 2009 07:50:00 -0000
@@ -131,7 +131,7 @@ not the default value itself.
DEFAULT is stored as SYMBOL's standard value, 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."
- (put symbol 'standard-value (list default))
+ (put symbol 'standard-value (purecopy (list default)))
;; Maybe this option was rogue in an earlier version. It no longer is.
(when (get symbol 'force-value)
(put symbol 'force-value nil))
- Re: BASE_PURESIZE, (continued)
- Re: BASE_PURESIZE, Eli Zaretskii, 2009/10/24
- Re: BASE_PURESIZE, Andreas Schwab, 2009/10/24
- Re: BASE_PURESIZE, Eli Zaretskii, 2009/10/24
- Re: BASE_PURESIZE, Dan Nicolaescu, 2009/10/24
- Re: BASE_PURESIZE, Stefan Monnier, 2009/10/24
- Re: BASE_PURESIZE, Dan Nicolaescu, 2009/10/25
- defcustom standard-value (was: Re: BASE_PURESIZE),
Dan Nicolaescu <=
- Re: BASE_PURESIZE, Chong Yidong, 2009/10/24
- Re: BASE_PURESIZE, Dan Nicolaescu, 2009/10/24
Re: BASE_PURESIZE, Dan Nicolaescu, 2009/10/23
Re: BASE_PURESIZE, Juanma Barranquero, 2009/10/23