From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Robert J. Chassell" Newsgroups: gmane.emacs.devel Subject: Re: Further problem with recent changes to custom-magic-alist. Date: Wed, 23 Feb 2005 18:01:57 -0500 (EST) Message-ID: References: <200502150055.j1F0tRZ05963@raven.dms.auburn.edu> <200502221541.j1MFftW21404@raven.dms.auburn.edu> <200502230050.j1N0oDM27910@raven.dms.auburn.edu> Reply-To: bob@rattlesnake.com NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1109199838 11934 80.91.229.2 (23 Feb 2005 23:03:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 23 Feb 2005 23:03:58 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 24 00:03:58 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D45Xc-0005iR-4Y for ged-emacs-devel@m.gmane.org; Thu, 24 Feb 2005 00:03:36 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D45p3-0000DB-15 for ged-emacs-devel@m.gmane.org; Wed, 23 Feb 2005 18:21:37 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D45ol-0000Az-H3 for emacs-devel@gnu.org; Wed, 23 Feb 2005 18:21:19 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D45og-00007f-7i for emacs-devel@gnu.org; Wed, 23 Feb 2005 18:21:14 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D45of-00005Y-Kn for emacs-devel@gnu.org; Wed, 23 Feb 2005 18:21:13 -0500 Original-Received: from [69.168.108.225] (helo=rattlesnake.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1D45XD-0005Pd-ME for emacs-devel@gnu.org; Wed, 23 Feb 2005 18:03:11 -0500 Original-Received: by rattlesnake.com via sendmail from stdin id (Debian Smail3.2.0.115) Wed, 23 Feb 2005 18:01:57 -0500 (EST) Original-To: emacs-devel@gnu.org In-reply-to: <200502230050.j1N0oDM27910@raven.dms.auburn.edu> (message from Luc Teirlinck on Tue, 22 Feb 2005 18:50:13 -0600 (CST)) 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 X-MailScanner-To: ged-emacs-devel@m.gmane.org Xref: main.gmane.org gmane.emacs.devel:33769 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:33769 You have set this %c and saved it in your init file. _The_ most important thing one needs to know when trying to save a previously saved option to a new value or reset it to standard, is whether it was saved _by Custom_, because that affects whether trying to save a new value or resetting to standard is guaranteed to work. Hmmm ... I am confused. When I look at my .emacs file I see (custom-set-faces ;; ... '(Buffer-menu-buffer-face ((t (:weight normal)))) '(Info-title-1-face ((t (:background "DodgerBlue4" :foreground "white" :overline nil :underline nil :slant normal :weight normal :height 193 :width normal)))) ;; ... ) [[The poor pretty printing is not mine. The automatically written code should have incorporated a pretty printer with a fill column of 70. On looking at it, emacs/lisp/emacs-lisp/pp.el lacks a variable for `fill-column' with a default value of 70; its addition should go on the emacs/etc/TODO list.]] When I want to change the background color from "DodgerBlue4" to "mediumblue" (as I did once) I simply change the expression and re-evaluate it. If I like the new color (I didn't) I save it. If I do not like the new color I revert it and save. As far as I know, when you set and save a value, you get the "last value saved from customize" (to quote emacs/lisp/cus-edit.el). The other possible states do not really matter. What matters is that Emacs evaluates the `custom-set-faces expression and saves it. It is nice to know about the other possible states. It is good to read the source code; but many novices will not. But some of them will look at the message. Hence, it is a good message. -- Robert J. Chassell bob@rattlesnake.com GnuPG Key ID: 004B4AC8 http://www.rattlesnake.com http://www.teak.cc