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



_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to