Re: [O] Capture template 'C': nil

2017-06-30 Thread Alan Schmitt
"MM" == Mario Martelli  writes:

MM> I tried your template once again. And it turned out that the file must be 
existent.

MM> ("c" "capture CWN through org protocol" item (file 
"~/org/notes.org")
MM> "- %?%:description\n  %:link\n\n")

MM> Does work for me. So giving a path to file might help.

Thank you for testing. There is another thread where someone has the
same problem. It seems that for item templates one has to give the full
path.

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7
Monthly Athmospheric CO₂, Mauna Loa Obs. 2017-05: 409.65, 2016-05: 407.70


signature.asc
Description: PGP signature


Re: [O] Capture template 'C': nil

2017-06-30 Thread Mario Martelli

> MM> Try to use ‘entry’ instead of ‘item’
> 
> Unfortunately I need an item. It used to work, unfortunately it no
> longer does.

I was probably to quick by changing ‘item’ to ‘entry’.

I tried your template once again. And it turned out that the file must be 
existent.

("c" "capture CWN through org protocol" item (file 
"~/org/notes.org")
"- %?%:description\n  %:link\n\n")

Does work for me. So giving a path to file might help.

> Greedy org-protocol handler.  Killing client.
> No server editing buffers exist
> Capture template ‘C’: nil

That was caused by using “C”, wasn’t it?

Kind regards
Mario
— 



Re: [O] Capture template 'C': nil

2017-06-30 Thread Alan Schmitt
"MM" == Mario Martelli  writes:

MM> Try to use ‘entry’ instead of ‘item’

Unfortunately I need an item. It used to work, unfortunately it no
longer does.

MM> “C” is usually bound to “Customise org-capture-templates”. Probably
MM> it’s better to choose another key.

Thank you for the suggestion. I changed it and it did not fix it.

Best,

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7
Monthly Athmospheric CO₂, Mauna Loa Obs. 2017-05: 409.65, 2016-05: 407.70


signature.asc
Description: PGP signature


Re: [O] Capture template 'C': nil

2017-06-30 Thread Mario Martelli
Hi,

> Here is the template
> 
>  ("C" "capture CWN through org protocol" item (file "next-cwn.org")
>   "- %?%:description\n  %:link\n\n")
> 
> When I use it on a page, it directly adds the entry to the file, without
> going through the capture interface, and it adds an extra %? in the
> text.

Try to use ‘entry’ instead of ‘item’

 ("C" "capture CWN through org protocol" entry (file "next-cwn.org")
  "- %?%:description\n  %:link\n\n")

“C” is usually bound to “Customise org-capture-templates”. Probably it’s better 
to choose another key.

In the next step you will probably get an error:  org-capture: Capture template 
‘i’: Template is not a valid Org entry or tree

To avoid that make the entry a tree:

 (“c" "capture CWN through org protocol" entry (file "next-cwn.org")
  “* %?%:description\n  %:link\n\n")

rgrds
Mario
— 




smime.p7s
Description: S/MIME cryptographic signature