emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Klarre N <klarre@gmail.com>
To: emacs-orgmode@gnu.org
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	[thread overview]
Message-ID: <CALwm17WLXvZ-PvDJndrOjxwTTtW9d0AKhr-E_4c1Ak0=iZeY6A@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 793 bytes --]

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!

[-- Attachment #2: Type: text/html, Size: 2039 bytes --]

             reply	other threads:[~2016-11-04 22:17 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-04 22:17 Klarre N [this message]
2016-11-04 22:36 ` Bug: Org Capture with Concatenated filenames [9.0 (9.0-elpa @ .emacs.d/elpa/org-20161102/)] Kaushal Modi
2016-11-04 22:45   ` Klarre N
2016-11-05  0:03     ` Kaushal Modi
2016-11-05 20:33       ` Klarre N

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CALwm17WLXvZ-PvDJndrOjxwTTtW9d0AKhr-E_4c1Ak0=iZeY6A@mail.gmail.com' \
    --to=klarre@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).