emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] %( in capture template


From: Nicolas Goaziou
Subject: Re: [O] %( in capture template
Date: Sun, 19 Feb 2017 10:07:11 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)

Hello,

Samuel Wales <address@hidden> writes:

> with the new org maint code, i still occasionally get the literal string.
>
> it occurs when the region spans a blank line.

I cannot reproduce your issue.

> like
>
>   %(concat
> "http://whatever.whatever/building-a-mold-free-house/whatever";
> "Building a mold free house" "

I have trouble understanding the double quote above. Do you mean the
text below is inserted within the %(concat ...) or are these your
templates? In this case, which one produces the error?

> these remplates [don't know if first does anything]
>
>   (add-to-list 'org-capture-templates
>                `("L" "Protocol L for link" entry
>                  (file+headline ,org-default-notes-file "xyzzy-remember")
>                  ;; fixme perhaps i do not need the %i, if it is for no text
>                  "%(concat \"%:link\"
> \"%:description\" \"%i\") L"
>                  :prepend t :immediate-finish t :jump-to-captured t))
>   ;; this seems to get called by org capture whether selection or not
>   (add-to-list 'org-capture-templates
>                `("p" "Protocol p" entry
>                  (file+headline ,org-default-notes-file "xyzzy-remember")
>                  "%(concat \"%:link\"
> \"%:description\" \"%i\")"
>                  :prepend t :immediate-finish t :jump-to-captured t))

Regards,

-- 
Nicolas Goaziou



reply via email to

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