From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: byte compiling defcustom Date: Mon, 19 Nov 2007 07:48:43 -0800 Message-ID: References: <200711171647.lAHGlHqH024027@jane.dms.auburn.edu> <200711172032.lAHKWhgx025030@jane.dms.auburn.edu> <200711172041.lAHKf2SG025058@jane.dms.auburn.edu> <200711180413.lAI4DLF8025958@jane.dms.auburn.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1195487457 18758 80.91.229.12 (19 Nov 2007 15:50:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 19 Nov 2007 15:50:57 +0000 (UTC) Cc: teirllm@dms.auburn.edu, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 19 16:51:03 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Iu8tl-00055H-GO for ged-emacs-devel@m.gmane.org; Mon, 19 Nov 2007 16:50:57 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iu8tX-0005gL-Vw for ged-emacs-devel@m.gmane.org; Mon, 19 Nov 2007 10:50:44 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Iu8tD-0005GY-FP for emacs-devel@gnu.org; Mon, 19 Nov 2007 10:50:23 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Iu8tB-0005E2-4c for emacs-devel@gnu.org; Mon, 19 Nov 2007 10:50:22 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iu8tA-0005Dg-Rs for emacs-devel@gnu.org; Mon, 19 Nov 2007 10:50:20 -0500 Original-Received: from oogie-boogie.ics.uci.edu ([128.195.1.41]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Iu8t4-0001LO-Gh; Mon, 19 Nov 2007 10:50:14 -0500 Original-Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by oogie-boogie.ics.uci.edu (8.13.6/8.13.6) with ESMTP id lAJFmh7O023128; Mon, 19 Nov 2007 07:48:43 -0800 (PST) In-Reply-To: (Richard Stallman's message of "Mon, 19 Nov 2007 07:25:36 -0500") Original-Lines: 22 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@ics.uci.edu X-detected-kernel: by monty-python.gnu.org: Solaris 9 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:83660 Archived-At: Richard Stallman writes: > Here's one defcustom with a nontrivial default value form. > > (defcustom custom-raised-buttons (not (equal (face-valid-attribute-values :box) > '(("unspecified" . unspecified)))) Good example, it addresses the points I was trying to make: 1. Is there any value in this being a defcustom? IMO, absolutely not. Do users really care that much about the default raised buttons to change them to use the much uglier brackets? Very doubtful. 2. Doing (get 'custom-raised-buttons 'standard-value) will indeed show bytecodes in this case. But the default value: (not (equal (face-valid-attribute-values :box) '(("unspecified" . unspecified)))) is not much readable either if you don't know elisp and know some details about faces, in which case you can just do C-h v custom-raised-buttons RET and follow the link in the Help buffer to look at the source code.