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: Getting more info on a variable in Customize buffers Date: Tue, 4 Jan 2005 01:58:03 +0000 (UTC) Message-ID: References: Reply-To: bob@rattlesnake.com NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1104803978 23141 80.91.229.6 (4 Jan 2005 01:59:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 4 Jan 2005 01:59:38 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 04 02:59:29 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Cldyo-0000Xk-00 for ; Tue, 04 Jan 2005 02:59:26 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Cle9y-0007P8-Or for ged-emacs-devel@m.gmane.org; Mon, 03 Jan 2005 21:10:58 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Cle9b-0007Hp-F9 for emacs-devel@gnu.org; Mon, 03 Jan 2005 21:10:35 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Cle9a-0007HP-Ly for emacs-devel@gnu.org; Mon, 03 Jan 2005 21:10:34 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Cle9a-0007HM-Gl for emacs-devel@gnu.org; Mon, 03 Jan 2005 21:10:34 -0500 Original-Received: from [69.168.110.189] (helo=rattlesnake.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Cldxj-0002op-0B for emacs-devel@gnu.org; Mon, 03 Jan 2005 20:58:19 -0500 Original-Received: by rattlesnake.com via sendmail from stdin id (Debian Smail3.2.0.115) Tue, 4 Jan 2005 01:58:03 +0000 (UTC) Original-To: emacs-devel@gnu.org In-reply-to: (message from Stefan Monnier on Mon, 03 Jan 2005 15:39:10 -0500) 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: main.gmane.org gmane.emacs.devel:31779 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 bob@rattlesnake.com GnuPG Key ID: 004B4AC8 http://www.rattlesnake.com http://www.teak.cc