emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] POLL: the 40 variables project


From: Carsten Dominik
Subject: Re: [Orgmode] POLL: the 40 variables project
Date: Fri, 30 Jan 2009 09:38:51 +0100


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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]