emacs-devel
[Top][All Lists]
Advanced

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

Re: address@hidden: How to set and save a defcustom]


From: Per Abrahamsen
Subject: Re: address@hidden: How to set and save a defcustom]
Date: Mon, 5 Mar 2007 10:21:32 +0100

This patch has not been tested:

2007-03-05  Per Abrahamsen  <address@hidden>

        * cus-edit.el (customize-save-variable): Removed customized value.

*** cus-edit.el.~1.196.~        2004-12-02 15:15:59.000000000 +0100
--- cus-edit.el 2007-03-05 10:17:13.000000000 +0100
***************
*** 816,821 ****
--- 816,822 ----
                                       current-prefix-arg))
   (funcall (or (get variable 'custom-set) 'set-default) variable value)
   (put variable 'saved-value (list (custom-quote value)))
+   (put variable 'customized-value nil)
   (custom-push-theme 'theme-value variable 'user 'set (list
(custom-quote value)))
   (cond ((string= comment "")
         (put variable 'variable-comment nil)


On 2/28/07, Richard Stallman <address@hidden> wrote:
Can you please help us fix this?

------- Start of forwarded message -------
Date: Tue, 27 Feb 2007 22:18:16 +0100
From: "Lennart Borgman (gmail)" <address@hidden>
MIME-Version: 1.0
To: Emacs Devel <address@hidden>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Subject: How to set and save a defcustom
X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=failed
        version=3.0.4

If I do something like this

   (customize-set-value 'xmlpe-css-hrefs hrefs)
   (customize-set-variable 'xmlpe-css-hrefs hrefs)
   (customize-save-variable 'xmlpe-css-hrefs hrefs)

and then

   M-x customize-option RET xmlpe-css-hrefs RET

then Custom says that the value is just "Set for current session only".
It is actually saved. What is wrong here?


_______________________________________________
Emacs-devel mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-devel
------- End of forwarded message -------







reply via email to

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