all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Per Abrahamsen" <per.abrahamsen@gmail.com>
To: rms@gnu.org
Cc: "Lennart Borgman \(gmail\)" <lennart.borgman@gmail.com>,
	Emacs Devel <emacs-devel@gnu.org>
Subject: Re: [lennart.borgman@gmail.com: How to set and save a defcustom]
Date: Mon, 5 Mar 2007 10:21:32 +0100	[thread overview]
Message-ID: <66a8b7a0703050121k1f4a57b8g89edef31023dfd11@mail.gmail.com> (raw)
In-Reply-To: <E1HMJE0-0003jT-5h@fencepost.gnu.org>

This patch has not been tested:

2007-03-05  Per Abrahamsen  <per.abrahamsen@gmail.com>

	* 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 <rms@gnu.org> 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)" <lennart.borgman@gmail.com>
> MIME-Version: 1.0
> To: Emacs Devel <emacs-devel@gnu.org>
> 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
> Emacs-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-devel
> ------- End of forwarded message -------
>
>
>

       reply	other threads:[~2007-03-05  9:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1HMJE0-0003jT-5h@fencepost.gnu.org>
2007-03-05  9:21 ` Per Abrahamsen [this message]
2007-03-05 21:11   ` [lennart.borgman@gmail.com: How to set and save a defcustom] Chong Yidong
2007-03-05  2:54 Richard Stallman
2007-03-05 15:16 ` Chong Yidong

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=66a8b7a0703050121k1f4a57b8g89edef31023dfd11@mail.gmail.com \
    --to=per.abrahamsen@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=lennart.borgman@gmail.com \
    --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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.