Re: [O] Capture templates - using result from %^g twice?

2016-11-18 Thread Rainer M Krug
Aaron Ecay  writes:

> Hi Rainer,
>
> 2016ko azaroak 18an, Rainer M Krug-ek idatzi zuen:
>> 
>
>>> :SHEET: %(mapconcat #'identity (org-get-tags-at nil t) ":")
>> 
>> Thanks - this looks good to me, but the ="= causes problems and ends the
>> template early. I tried to replace =":"= with =':'= but this did =not
>> work either (invalid-read-syntax).
>> 
>> How can I get this to work?
>
> You need to escape the quotes with a single backslash.

I did it like this:

:SHEET:  %(mapconcat #'identity (org-get-tags-at nil t) \":\")

But it still does not work as, my guess, nothing is returned - the
"field" is empty

Rainer

-- 
Rainer M. Krug
email: Rainerkrugsde
PGP: 0x0F52F982


signature.asc
Description: PGP signature


Re: [O] Capture templates - using result from %^g twice?

2016-11-18 Thread Aaron Ecay
Hi Rainer,

2016ko azaroak 18an, Rainer M Krug-ek idatzi zuen:
> 

>> :SHEET: %(mapconcat #'identity (org-get-tags-at nil t) ":")
> 
> Thanks - this looks good to me, but the ="= causes problems and ends the
> template early. I tried to replace =":"= with =':'= but this did =not
> work either (invalid-read-syntax).
> 
> How can I get this to work?

You need to escape the quotes with a single backslash.

-- 
Aaron Ecay



Re: [O] Capture templates - using result from %^g twice?

2016-11-18 Thread Rainer M Krug
Nicolas Goaziou  writes:

> Hello,
>
> Rainer M Krug  writes:
>
>> Hm - I seem to ask strange questions here. Any ideas?
>
> %\2 is not working because it is used to repeat %^{prompt} placeholders,
> not %^g or %^G, per documentation.

Ok - thanks for the clarification.

>
> You could try (untested)
>
>   :SHEET: %(mapconcat #'identity (org-get-tags-at nil t) ":")

Thanks - this looks good to me, but the ="= causes problems and ends the
template early. I tried to replace =":"= with =':'= but this did =not
work either (invalid-read-syntax).

How can I get this to work?

Rainer.

>
>
> Regards,

-- 
Rainer M. Krug
email: Rainerkrugsde
PGP: 0x0F52F982


signature.asc
Description: PGP signature


Re: [O] Capture templates - using result from %^g twice?

2016-11-18 Thread Nicolas Goaziou
Hello,

Rainer M Krug  writes:

> Hm - I seem to ask strange questions here. Any ideas?

%\2 is not working because it is used to repeat %^{prompt} placeholders,
not %^g or %^G, per documentation.

You could try (untested)

  :SHEET: %(mapconcat #'identity (org-get-tags-at nil t) ":")


Regards,

-- 
Nicolas Goaziou



Re: [O] Capture templates - using result from %^g twice?

2016-11-16 Thread Rainer M Krug
Hm - I seem to ask strange questions here. Any ideas?

Rainer

Rainer M Krug  writes:

> Hi
> I have the following capture template and would like to re-use the tag
> entered by %^g . I try to use %\2 but this is not working.
>
> Is there a way that I can re-use the tag entered by %^g and add it as a 
> property?
>
> Thanks,
>
> Rainer
>
> ,
> | ("s"  "Change logged in buffer - for spreadsheet changes"
> |  entry   (file+headline (lambda() (buffer-file-name)) "CHANGES")  
> |  "* %^{Header of CHANGES item} :%^g:
> | :PROPERTIES:
> | :SHEET: %\2
> | :AUTHOR:  Rainer M Krug, rai...@krugs.de
> | :DATE: %T
> | :END:
> | %?")
> `

-- 
Rainer M. Krug
email: Rainerkrugsde
PGP: 0x0F52F982


signature.asc
Description: PGP signature


[O] Capture templates - using result from %^g twice?

2016-11-14 Thread Rainer M Krug
Hi
I have the following capture template and would like to re-use the tag
entered by %^g . I try to use %\2 but this is not working.

Is there a way that I can re-use the tag entered by %^g and add it as a 
property?

Thanks,

Rainer

,
| ("s"  "Change logged in buffer - for spreadsheet changes"
|  entry   (file+headline (lambda() (buffer-file-name)) "CHANGES")  
|  "* %^{Header of CHANGES item} :%^g:
| :PROPERTIES:
| :SHEET: %\2
| :AUTHOR:  Rainer M Krug, rai...@krugs.de
| :DATE: %T
| :END:
| %?")
`


-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug

PGP: 0x0F52F982


signature.asc
Description: PGP signature