emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting more info on a variable in Customize buffers


From: Robert J. Chassell
Subject: Re: Getting more info on a variable in Customize buffers
Date: Tue, 4 Jan 2005 01:58:03 +0000 (UTC)

   Could you tell us why you want to know the face's name?

Yes, so I can check that a customize command did the right thing when
I look at the `custom-set-faces' expression in my .emacs file.  My
`user-init-file' is set to the actual name of my .emacs file, so the
command works on the correct file.

A customize command may write the file, but I do like checking it.
(Also, of course, we encourage non-hackers to do this sort of thing.)
And sometimes I modify the expression in my .emacs file.

   > Also, what is the equivalent command to `C-h v' (describe-variable)
   > for faces which are not variables?

   Huh?  Have you tried M-x describe-face?

That command does not offer an Emacs Lisp expression to put into my
`custom-set-faces' expression in my .emacs file.  It should provide a
name and an expression, somewhat like this:

    eshell-prompt-face 

    ((t (:foreground "Pink" :weight normal)))

(I.e., like setting `custom-unlispify-tag-names' to nil and then
pressing return when point is over the `State' button and then
selecting option #9, Show as Lisp expression.  Except that doing that
shows the previous value unless I `Set for Current Session' first; and
then `Reset' fails to take me back to the previous setting.....)

If the `describe-face' command did provide an Emacs Lisp expression
and were documented in the Customize buffer where a novice would find
it readily, then it could be useful.

(Incidentally, in addition to showing the lisp expression in a
appropriate field, the `Documentation:' field of the `describe-face'
command should tell one to use `custom-set-faces' rather than `setq'.
The `one' may be a novice or have forgot how to deal with faces.)

-- 
    Robert J. Chassell                         
    address@hidden                         GnuPG Key ID: 004B4AC8
    http://www.rattlesnake.com                  http://www.teak.cc




reply via email to

[Prev in Thread] Current Thread [Next in Thread]