From mboxrd@z Thu Jan 1 00:00:00 1970 From: Klarre N Subject: Bug: Org Capture with Concatenated filenames [9.0 (9.0-elpa @ .emacs.d/elpa/org-20161102/)] Date: Fri, 4 Nov 2016 23:17:30 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f403045c722a75ba950540810b80 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41018) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c2mo5-0008Uf-8J for emacs-orgmode@gnu.org; Fri, 04 Nov 2016 18:17:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c2mo4-000605-9b for emacs-orgmode@gnu.org; Fri, 04 Nov 2016 18:17:53 -0400 Received: from mail-yb0-x230.google.com ([2607:f8b0:4002:c09::230]:34937) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c2mo4-0005ym-1q for emacs-orgmode@gnu.org; Fri, 04 Nov 2016 18:17:52 -0400 Received: by mail-yb0-x230.google.com with SMTP id d128so37105222ybh.2 for ; Fri, 04 Nov 2016 15:17:52 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org --f403045c722a75ba950540810b80 Content-Type: text/plain; charset=UTF-8 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! --f403045c722a75ba950540810b80 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,
concatenated filenames for org= -capture templates no longer works (since 9.0).

=
ECM:
(setq org-default-notes-file "absolute-pa= th/default.org")
(defvar absolut= e "absolute-path/"
=C2=A0=C2=A0=C2=A0 "Path to Desired di= rectory.")
(setq org-capture-templates '(
=C2=A0 ("e&qu= ot; "Example" entry
=C2=A0=C2=A0 (file+headline (concat absolu= te "example.org") "Exampl= e")
=C2=A0=C2=A0 "* Capture"
=C2=A0=C2=A0 :empty-lines= 1)))

Expected result:
<= /span>
Add "* Capture" to absolu= te-path/example.org.

Result: &quo= t;* 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&quo= t;)
(setq org-capture-templates '(
=C2=A0 ("e" "Ex= ample" entry
=C2=A0=C2=A0 (file+headline "absolute-path/example.org" "Example")
=C2= =A0=C2=A0 "* Capture"
=C2=A0=C2=A0 :empty-lines 1)))



Thanks!
--f403045c722a75ba950540810b80--