emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Problems with capture in tables


From: Thomas Holst
Subject: Re: [O] Problems with capture in tables
Date: Thu, 5 May 2011 10:09:29 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (windows-nt)

Hi Aankhen,

thanks for your answer.
· Aankhen <address@hidden> wrote:

> Hi,
>
> On Wed, May 4, 2011 at 12:55, Thomas Holst <address@hidden> wrote:
>> I am trying to put a line into a table via org capture.
>>
>> My org file looks like this:
>> [snip]
>>
>> My capture template looks like this:
>> #+begin_src emacs-lisp
>> (setq org-capture-templates
>>      '(("x" "Testing" table-line
>>       (file+headline "c:/temp/TestCaptTbl.org" "Heading 1")
>>           "| # | %t | %^{weight} | |" :table-line-pos II-1)))
>> #+end_src
>>
>> When I invoke capture I get the following error (backtrace):
>>
>> [snip]
>>
>> Now if I leave `:table-line-pos II-1' out of the template it works fine
>> but the line is appended at the end. That's obviously not what I want.
>>
>> [snip]
>
> As far as I can tell, the value of ‘:table-line-pos’ is supposed to be
> a string.  This seems to work for me:
>
> ,----
> | (setq org-capture-templates
> |       '(("x" "Testing" table-line
> |          (file+headline "Z:/temp/TestCaptTbl.org" "Heading 1")
> |          "| # | %t | %^{weight} | |" :table-line-pos "II-1")))
> `----
>
> Hope this helps.
> Aankhen

That did the trick - works like a charm! I was shure I tried the string,
but I assume there was a typing error.

Thanks again.

-- 
Mit freundlichen Grüßen / Best regards 

Thomas Holst 



reply via email to

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