From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id WBauM9C8tl9zDQAA0tVLHw (envelope-from ) for ; Thu, 19 Nov 2020 18:43:28 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id QBhzL9C8tl+RFgAAB5/wlQ (envelope-from ) for ; Thu, 19 Nov 2020 18:43:28 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 83AF99403A8 for ; Thu, 19 Nov 2020 18:43:28 +0000 (UTC) Received: from localhost ([::1]:59426 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kfotz-0008KM-Gh for larch@yhetil.org; Thu, 19 Nov 2020 13:43:27 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:34902) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kfosd-0008I3-Ew for emacs-orgmode@gnu.org; Thu, 19 Nov 2020 13:42:04 -0500 Received: from mail-pf1-x42f.google.com ([2607:f8b0:4864:20::42f]:41973) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kfosY-0000os-Qr for emacs-orgmode@gnu.org; Thu, 19 Nov 2020 13:42:03 -0500 Received: by mail-pf1-x42f.google.com with SMTP id t8so5319057pfg.8 for ; Thu, 19 Nov 2020 10:41:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=user-agent:from:to:subject:message-id:date:mime-version; bh=msxgQICKH36aMX29HOgOdkTF7NbkAwwXjiYHhTC2yIs=; b=MtMjccdpf6hSxZpkHrr9ZzhHslJKbwUqIskSBcKFZsH5m7MQe+ZuHRVLnb5NCLzRe/ PKfCjtpJCDKq4dng9Y238sQa7a5Y8zlJEMYbJ51RljLLQR9QALRI2zCAfO2gfEGHWAat C3Q1cSV6bJsejj9OKMdrHXZbyJQwW3KRhgvvCt4lGdXlCa4liB0yDOSfcZoYdvAEqz59 OjdCrdFw4f/qEF1Y1axihsYfNumI5mCW7PjcwGSbgeln84EF0zaEyaVFp7Z9VNlZNpFA pqaG0y38StfWFGBAnr9qvTqoKU1qgSMAGmd7KSvmmvvL0B7LZMZkrkAjWvxz0PjOgkAY kuGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:user-agent:from:to:subject:message-id:date :mime-version; bh=msxgQICKH36aMX29HOgOdkTF7NbkAwwXjiYHhTC2yIs=; b=iAR2KPSVkqV/Gn+tCFhxJSFCtf+f1KgSo84eOhdDVin6tQcf1pgOfv6rIVk9V/Psg6 c46sR7frY5q7n5MZPs57EKG4nNZdMFq4R390f6NLKRqgCAmHvM5wgdHV2dRyn7ejbrDD NiMZOmPWEXj8vMAdfCooriUYLKEfBncjJtmnquMhRggaIdiHG+9V5WgpEIOCGtE25Uls NiPdA1B9BAdRTlccQosjQInFZMjfCnPTnmBrBF8zqzT1wA3HCD/h6NdUAkP8D3DTQTlh /7VxoEAABGAgTr/ZuP7PtmRkWjCmPRe4xASHde9rr3snOuBhNnm9j49A8HKB8XdS0A10 SQ4w== X-Gm-Message-State: AOAM532qHiUPcn0RY/LZAKEjlktiyCHcG1M2W+H5q+HEkgXyjfM6f13Y ACM8mH9Tyel+M9rIhzbRCfD0IFKgkE5R9g== X-Google-Smtp-Source: ABdhPJxyFgq8o9EynwQKukhgHEavFXKhKGd+L6rXxqnmO4NHFVFXVT5DH0n3djOTPiK+BpHh8jd9Hg== X-Received: by 2002:a17:90a:1b41:: with SMTP id q59mr5800114pjq.17.1605811314033; Thu, 19 Nov 2020 10:41:54 -0800 (PST) Received: from tim-desktop (220-235-10-131.dyn.iinet.net.au. [220.235.10.131]) by smtp.gmail.com with ESMTPSA id z8sm495118pfn.181.2020.11.19.10.41.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Nov 2020 10:41:52 -0800 (PST) User-agent: mu4e 1.5.7; emacs 28.0.50 From: Tim Cross To: Org-mode Subject: [HELP} Capture Template Message-ID: <875z61qjde.fsf@gmail.com> Date: Fri, 20 Nov 2020 05:41:49 +1100 MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::42f; envelope-from=theophilusx@gmail.com; helo=mail-pf1-x42f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=MtMjccdp; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -1.71 X-TUID: laEV3Q9FQQEi I'm trying to get a capture template to work, but without luck. Not sure what I'm doing wrong, but figured someone on this list could help by pointing out my probably obvious error. The template is ("e" "expense" entry (file+headline "~/Documents/org-data/refile.org" "Expenses") "* Expense: %^{Description} :EXPENSE:\n\n | Date | %u |\n | Description | %\1 |\n | Amount | %^{Amount} |\n" :empty-line-after 1) The problem is with the %\1 expansion. According to the docs, the %\N expansion is replaced with the Nth %^{PROMPT} input. i.e. %\1 should be the data from the 1st %^{PROMPT} expansion (in this case %^{Description}. The problem is, it isn't. Instead, I get %^A as the result instead of the text I enter with the first %^{Description} expansion. The rest of the template works fine. Anyone got any ideas? Tim -- Tim Cross