From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Lennart Borgman" Newsgroups: gmane.emacs.devel Subject: Re: Getting more info on a variable in Customize buffers Date: Mon, 3 Jan 2005 19:16:39 +0100 Message-ID: <002d01c4f1c0$64ac12f0$0200a8c0@sedrcw11488> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1104776354 21755 80.91.229.6 (3 Jan 2005 18:19:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 3 Jan 2005 18:19:14 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 03 19:19:04 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 1ClWnH-0003WD-00 for ; Mon, 03 Jan 2005 19:19:03 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1ClWyR-0004eJ-OC for ged-emacs-devel@m.gmane.org; Mon, 03 Jan 2005 13:30:35 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1ClWxY-0003xN-1F for emacs-devel@gnu.org; Mon, 03 Jan 2005 13:29:40 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1ClWxV-0003tn-I1 for emacs-devel@gnu.org; Mon, 03 Jan 2005 13:29:38 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1ClWxV-0003sS-4b for emacs-devel@gnu.org; Mon, 03 Jan 2005 13:29:37 -0500 Original-Received: from [81.228.11.107] (helo=av1-1-sn1.fre.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1ClWlP-0001ZD-4r for emacs-devel@gnu.org; Mon, 03 Jan 2005 13:17:07 -0500 Original-Received: by av1-1-sn1.fre.skanova.net (Postfix, from userid 502) id 6E9DB37EBC; Mon, 3 Jan 2005 19:17:05 +0100 (CET) Original-Received: from smtp3-1-sn1.fre.skanova.net (smtp3-1-sn1.fre.skanova.net [81.228.11.163]) by av1-1-sn1.fre.skanova.net (Postfix) with ESMTP id 610B437E5E; Mon, 3 Jan 2005 19:17:05 +0100 (CET) Original-Received: from sedrcw11488 (t3o58p110.telia.com [195.252.56.110]) by smtp3-1-sn1.fre.skanova.net (Postfix) with SMTP id D11B437E48; Mon, 3 Jan 2005 19:17:02 +0100 (CET) Original-To: "drkm" , "Emacs Devel" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1409 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 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:31751 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:31751 Maybe you could use (custom-set-variables ...) Though you have to know how the values look when written. But should not that "do the right thing"? But there is more to it of course, controlling what to save etc. When looking at the code in custom I got the feeling that there are needed some break up of the code so it is easy to do handle the variables from code. For example I just copied some code to find out whether it would be possible to customize a variable. - Lennart ----- Original Message ----- From: "drkm" ... > If it is, I don't know any standard way to do that directly in > ELisp, if I don't want to use Customize. I think about something > like : > > (defmacro set-custom (custom value lib) > (if (boundp custom) > `(set-variable ',custom ,value) > `(eval-after-load ,lib > '(set-variable ',custom ,value)))) > > But for using it, I have to know CUSTOM to be defined as a custom, ..