|
From: | Klarre N |
Subject: | Re: [O] Bug: Org Capture with Concatenated filenames [9.0 (9.0-elpa @ .emacs.d/elpa/org-20161102/)] |
Date: | Fri, 4 Nov 2016 23:45:11 +0100 |
Hi Klarre,The org 9.0 release had deprecated use of S-exps in org-capture-templates. That, though, went undocumented. So for now, that deprecation is reverted on the main branch and moved to the master/dev branch.So when org stable next updates on Elpa (probably on Monday?), that will have this reverted commit in it. But going forward, when org 9.1 is released, the use of S-exp will once again be deprecated. So it would be best to replace that S-exp with a function wrapper.On Fri, Nov 4, 2016 at 6:19 PM Klarre N <address@hidden> wrote:Hi,
concatenated filenames for org-capture templates no longer works (since 9.0).ECM:
(setq org-default-notes-file "absolute-path/default.org")
(defvar absolute "absolute-path/"
"Path to Desired directory.")
(setq org-capture-templates '(
("e" "Example" entry
(file+headline (concat absolute "example.org") "Example")
"* Capture"
:empty-lines 1)))Expected result:Add "* Capture" to absolute-path/example.org.
Result: "* Capture" is added to "absolute-path/default.org".
This provides the desired result, but unable to use variable filenames (very useful):
(setq org-default-notes-file "absolute-path/default.org")
(setq org-capture-templates '(
("e" "Example" entry
(file+headline "absolute-path/example.org" "Example")
"* Capture"
:empty-lines 1)))Thanks!--Kaushal Modi
[Prev in Thread] | Current Thread | [Next in Thread] |