From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: POLL: the 40 variables project Date: Fri, 30 Jan 2009 09:38:51 +0100 Message-ID: <45E50DB7-E2E5-4DBB-AD44-3CC650ADD1C1@uva.nl> References: <3CA13AF2-AFF7-49D1-97B6-7AF5AF6C1301@uva.nl> <7ACEEBD0-B96A-4181-A729-2E226E8935D4@uva.nl> Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LSotu-0007MO-4G for emacs-orgmode@gnu.org; Fri, 30 Jan 2009 03:38:58 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LSots-0007LG-H8 for emacs-orgmode@gnu.org; Fri, 30 Jan 2009 03:38:56 -0500 Received: from [199.232.76.173] (port=59476 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LSots-0007LD-A1 for emacs-orgmode@gnu.org; Fri, 30 Jan 2009 03:38:56 -0500 Received: from mail-ew0-f20.google.com ([209.85.219.20]:48538) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LSotr-0006jL-Pw for emacs-orgmode@gnu.org; Fri, 30 Jan 2009 03:38:56 -0500 Received: by ewy13 with SMTP id 13so649912ewy.18 for ; Fri, 30 Jan 2009 00:38:54 -0800 (PST) In-Reply-To: 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: Manish Cc: emacs org-mode mailing list On Jan 30, 2009, at 9:29 AM, Manish wrote: > 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 You need to change $2 and $1 to the relevant columns in your table, maybe this is the problem? I made this formula on one of your extracted tables where the variable was in column one and I have created a new column 2 for the default values. also, the formula seems to return (nil) or (t) instead of nil or t, so it seems to add an additional pair of parenthesis. - Carsten >> > > 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