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: Bug, probably related to Custom Themes. Date: Wed, 21 Dec 2005 16:19:59 -0500 Message-ID: <87d5jqrvuo.fsf@stupidchicken.com> References: <200512210254.jBL2sj814876@raven.dms.auburn.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1135200179 20445 80.91.229.2 (21 Dec 2005 21:22:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 21 Dec 2005 21:22:59 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 21 22:22:57 2005 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EpBQF-0003HV-7h for ged-emacs-devel@m.gmane.org; Wed, 21 Dec 2005 22:22:55 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EpBRD-0002k5-17 for ged-emacs-devel@m.gmane.org; Wed, 21 Dec 2005 16:23:55 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EpBOI-0001uT-J5 for emacs-devel@gnu.org; Wed, 21 Dec 2005 16:20:54 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EpBOH-0001u0-Lq for emacs-devel@gnu.org; Wed, 21 Dec 2005 16:20:53 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EpBOH-0001tw-Fd for emacs-devel@gnu.org; Wed, 21 Dec 2005 16:20:53 -0500 Original-Received: from [18.19.6.82] (helo=localhost.localdomain) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EpBRd-0002z2-PT for emacs-devel@gnu.org; Wed, 21 Dec 2005 16:24:21 -0500 Original-Received: by localhost.localdomain (Postfix, from userid 1000) id 53F961208DB; Wed, 21 Dec 2005 16:19:59 -0500 (EST) Original-To: Luc Teirlinck In-Reply-To: <200512210254.jBL2sj814876@raven.dms.auburn.edu> (Luc Teirlinck's message of "Tue, 20 Dec 2005 20:54:45 -0600 (CST)") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:48179 Archived-At: This completely untested patch may do what you want. *** emacs/lisp/cus-edit.el.~1.250.~ 2005-12-21 16:18:52.000000000 -0500 --- emacs/lisp/cus-edit.el 2005-12-21 16:19:18.000000000 -0500 *************** *** 2745,2752 **** ;; save resets to standard when no theme set the value. (if (null (cdr (get symbol 'theme-value))) (put symbol 'theme-value nil)) ! (put symbol 'saved-variable-comment nil) ! (custom-save-all)) (widget-put widget :custom-state 'unknown) ;; This call will possibly make the comment invisible (custom-redraw widget))) --- 2745,2751 ---- ;; save resets to standard when no theme set the value. (if (null (cdr (get symbol 'theme-value))) (put symbol 'theme-value nil)) ! (put symbol 'saved-variable-comment nil)) (widget-put widget :custom-state 'unknown) ;; This call will possibly make the comment invisible (custom-redraw widget))) *************** *** 3406,3413 **** ;; Do not explictly save resets to standards without themes. (if (null (cdr (get symbol 'theme-face))) (put symbol 'theme-face nil)) ! (put symbol 'saved-face-comment nil) ! (custom-save-all)) (face-spec-set symbol value) (put symbol 'face-comment nil) (widget-value-set child value) --- 3405,3411 ---- ;; Do not explictly save resets to standards without themes. (if (null (cdr (get symbol 'theme-face))) (put symbol 'theme-face nil)) ! (put symbol 'saved-face-comment nil)) (face-spec-set symbol value) (put symbol 'face-comment nil) (widget-value-set child value)