all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Robert J. Chassell" <bob@rattlesnake.com>
Subject: Re: Further problem with recent changes to custom-magic-alist.
Date: Wed, 23 Feb 2005 18:01:57 -0500 (EST)	[thread overview]
Message-ID: <m1D45W1-0004QlC@rattlesnake.com> (raw)
In-Reply-To: <200502230050.j1N0oDM27910@raven.dms.auburn.edu> (message from Luc Teirlinck on Tue, 22 Feb 2005 18:50:13 -0600 (CST))

         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

  parent reply	other threads:[~2005-02-23 23:01 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-15  0:55 Further problem with recent changes to custom-magic-alist Luc Teirlinck
2005-02-22  8:42 ` Richard Stallman
2005-02-22 15:41   ` Luc Teirlinck
2005-02-22 23:10     ` Robert J. Chassell
2005-02-23  0:50       ` Luc Teirlinck
2005-02-23  1:26         ` Luc Teirlinck
2005-02-23 23:01         ` Robert J. Chassell [this message]
2005-02-23 20:37     ` Richard Stallman
2005-02-23 22:09       ` Lennart Borgman
2005-02-24 23:15         ` Luc Teirlinck
2005-02-24 23:28           ` Luc Teirlinck
2005-02-27  0:33           ` Richard Stallman
2005-02-27  2:23             ` Luc Teirlinck
2005-02-27 20:41               ` Richard Stallman
2005-02-27 21:47                 ` Luc Teirlinck
2005-02-24  3:51       ` Luc Teirlinck

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=m1D45W1-0004QlC@rattlesnake.com \
    --to=bob@rattlesnake.com \
    /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.