From mboxrd@z Thu Jan 1 00:00:00 1970 From: Manish Subject: Re: POLL: the 40 variables project Date: Fri, 30 Jan 2009 13:59:01 +0530 Message-ID: References: <3CA13AF2-AFF7-49D1-97B6-7AF5AF6C1301@uva.nl> <7ACEEBD0-B96A-4181-A729-2E226E8935D4@uva.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LSokM-0004QL-8p for emacs-orgmode@gnu.org; Fri, 30 Jan 2009 03:29:06 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LSokJ-0004Pw-VA for emacs-orgmode@gnu.org; Fri, 30 Jan 2009 03:29:05 -0500 Received: from [199.232.76.173] (port=39740 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LSokJ-0004Pt-Q4 for emacs-orgmode@gnu.org; Fri, 30 Jan 2009 03:29:03 -0500 Received: from ti-out-0910.google.com ([209.85.142.188]:31620) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LSokJ-0005zS-Av for emacs-orgmode@gnu.org; Fri, 30 Jan 2009 03:29:03 -0500 Received: by ti-out-0910.google.com with SMTP id u5so86130tia.10 for ; Fri, 30 Jan 2009 00:29:01 -0800 (PST) In-Reply-To: <7ACEEBD0-B96A-4181-A729-2E226E8935D4@uva.nl> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: emacs org-mode mailing list On Fri, Jan 30, 2009 at 1:48 PM, Carsten Dominik wrote: > Hi Manish, > > what can I say, awesome! Thanks. > > To get the default values, you could do > > (get 'org-some-variable 'standard-value) Nice. Thanks. > > and evaluate this. You can do this with a formula in the table, > I have successfully tried this: > > #+TBLFM: $2='(let ((x (prin1-to-string (get '$1 'standard-value)))) > (org-require-autoloaded-modules) (if (or (string-match "\n" x) (> (length x) > 40)) "complex" x));L The formula seems to work but I am getting nil for /all/ variables. That does not seem right. There would be some variable with non-nil standard value, no? -- Manish