emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Patch org-capure-fill-template


From: Nicolas Goaziou
Subject: Re: [O] Patch org-capure-fill-template
Date: Sun, 02 Nov 2014 10:44:22 +0100

Roberto Huelga <address@hidden> writes:

> Suppose you want to write the parent directory name in your capture so write a
> template like
>
> "* %(file-name-nondirectory (directory-file-name (file-name-directory 
> \"%F\")))"
>
> Without the patch, file-name-directory get the useless string "%F"
> instead of a string
> with the full path name of the file.
>
> The orgmode manual template expansion page describe
>
>      %(sexp)     Evaluate Elisp sexp and replace with the result.
>                        For convenience, %:keyword (see below) placeholders
>                        within the expression will be expanded prior to this.
>                        The sexp must return a string.
>
> But without the patch is not true, first is expanded %(sexp) and after
> that the %OneLetter and later the %:keyword

Understood. Applied, thank you.

Regards,



reply via email to

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