From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: [lennart.borgman@gmail.com: How to set and save a defcustom] Date: Mon, 05 Mar 2007 16:11:22 -0500 Message-ID: <87tzwzwg3p.fsf@stupidchicken.com> References: <66a8b7a0703050121k1f4a57b8g89edef31023dfd11@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1173129121 7274 80.91.229.12 (5 Mar 2007 21:12:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 5 Mar 2007 21:12:01 +0000 (UTC) Cc: "Lennart Borgman \(gmail\)" , rms@gnu.org, Emacs Devel To: "Per Abrahamsen" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 05 22:11:53 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HOKTE-0003Cs-2X for ged-emacs-devel@m.gmane.org; Mon, 05 Mar 2007 22:11:48 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HOKTD-0001yo-KP for ged-emacs-devel@m.gmane.org; Mon, 05 Mar 2007 16:11:47 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HOKT0-0001yd-I0 for emacs-devel@gnu.org; Mon, 05 Mar 2007 16:11:34 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HOKT0-0001yO-5U for emacs-devel@gnu.org; Mon, 05 Mar 2007 16:11:34 -0500 Original-Received: from south-station-annex.mit.edu ([18.72.1.2]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1HOKSz-00084z-RA; Mon, 05 Mar 2007 16:11:33 -0500 Original-Received: from grand-central-station.mit.edu (GRAND-CENTRAL-STATION.MIT.EDU [18.7.21.82]) by south-station-annex.mit.edu (8.13.6/8.9.2) with ESMTP id l25LBVx8016247; Mon, 5 Mar 2007 16:11:31 -0500 (EST) Original-Received: from outgoing-legacy.mit.edu (OUTGOING-LEGACY.MIT.EDU [18.7.22.104]) by grand-central-station.mit.edu (8.13.6/8.9.2) with ESMTP id l25LBN5a011582; Mon, 5 Mar 2007 16:11:24 -0500 (EST) Original-Received: from localhost (MAIN-TWELVE-FIFTY-SIX.MIT.EDU [18.19.5.56]) ) by outgoing-legacy.mit.edu (8.13.6/8.12.4) with ESMTP id l25LBNGN014404; Mon, 5 Mar 2007 16:11:23 -0500 (EST) Original-Received: from cyd by localhost with local (Exim 3.36 #1 (Debian)) id 1HOKSo-0001LC-00; Mon, 05 Mar 2007 16:11:22 -0500 In-Reply-To: <66a8b7a0703050121k1f4a57b8g89edef31023dfd11@mail.gmail.com> (Per Abrahamsen's message of "Mon\, 5 Mar 2007 10\:21\:32 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.95 (gnu/linux) X-Scanned-By: MIMEDefang 2.42 X-Spam-Score: 0 X-detected-kernel: Solaris 9.1 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:67372 Archived-At: "Per Abrahamsen" writes: > This patch has not been tested: This solution is correct. I already installed a similar patch. > 2007-03-05 Per Abrahamsen > > * 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)