From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id aMyCJYw7+GA95AAAgWs5BA (envelope-from ) for ; Wed, 21 Jul 2021 17:21:48 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id WPIlIYw7+GC9WQAAB5/wlQ (envelope-from ) for ; Wed, 21 Jul 2021 15:21:48 +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 E404A285C2 for ; Wed, 21 Jul 2021 17:21:47 +0200 (CEST) Received: from localhost ([::1]:34126 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m6E2c-00080U-O1 for larch@yhetil.org; Wed, 21 Jul 2021 11:21:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58640) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m6E2E-00080L-0C for emacs-orgmode@gnu.org; Wed, 21 Jul 2021 11:21:22 -0400 Received: from ciao.gmane.io ([116.202.254.214]:39492) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m6E2C-0000HY-Jp for emacs-orgmode@gnu.org; Wed, 21 Jul 2021 11:21:21 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1m6E29-000AXl-PP for emacs-orgmode@gnu.org; Wed, 21 Jul 2021 17:21:17 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Nick Dokos Subject: Re: what would cause failure in template for org capture? Date: Wed, 21 Jul 2021 11:21:08 -0400 Message-ID: <87eebrvgkb.fsf@alphaville.usersys.redhat.com> References: <87im13zynj.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cancel-Lock: sha1:wY3o08ofIebd/v82pM5FhG3aSns= Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 5 X-Spam_score: 0.5 X-Spam_bar: / X-Spam_report: (0.5 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FORGED_FROMDOMAIN=0.248, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.248, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1626880907; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=1P543wYhfZD8Y9YsY28khuiqnAgQ0hzO4c1+Zakf5pg=; b=olPtQ3zyfYaCjzAQPk22yn8icxFkWDn3QqT4P5HsUyhqMmeElJDpQQXO2Py6u7/3z6LBlw X2STG/i5IPLfYHT414wWMnAdzO10KVB9/ua8Hbiy/nPm3/YQ0+CCLTbE3Gaz6O+JJJTSna /XcnTSixRFGNH0eyo7JALSXQLeTJbnSphoFNkSzJTTZUCaJ6E+4jd7+wI3/hBHifNcEyow HBk1lI+4oLSXbqZwwfoSSlVkb8PXDAOk9/UZWK0xMcliH4ohEKd4rtDMCKcNX6+wejzY1s sieiiCRLIzVdlZHsGiK+zXU8etlCSeo7GxAMJfD8RpR8Xau+WBO0o6MLcIh17A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1626880907; a=rsa-sha256; cv=none; b=EyFQ5BPFeEPcSHV8337nWL3DfxWFGdf1ee0gyggo3k6Guk4SlEBhX6oJFgBspImyRMwExM obv5faL41lpm0uowNroM1BBJBTIcZDBljm5B6TDQeI8I+lFHBtKX26WJgjE7WMzDh+rHcG Pm55ogG/QYmWNAmPN5dB8unx8emsEE8+Q5iNAY+W6l5IUobQ5bB2qb81o2zaW4eHqa67LC 9MGPxQ+unpi/P+m0cV6tGBeC25LbWSDGKeGvnLbTkwYTLPZNc+50oQ1WKvgSq8YDCRIdLk k/SgrJJw9/XSgpoHWv8mpIksm0Yy4BfgV6cFbi+OHD9ExYW8APYiB7X4fJ7suA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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-Migadu-Spam-Score: 0.69 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); 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-Migadu-Queue-Id: E404A285C2 X-Spam-Score: 0.69 X-Migadu-Scanner: scn0.migadu.com X-TUID: TIWK26urcL7q Eric S Fraga writes: > Hello all, > > I am getting this error message: > > org-capture: Capture abort: Unknown template placeholder: "%^G" > > when attempting to capture a task using this template: > > #+begin_src emacs-lisp > (add-to-list 'org-capture-templates > '("t" > "todo" > entry (file+headline "~/s/notes/todo.org" "refile") > "* %^{Task} %^G\n%i%?\n%U\n")) > #+end_src > > The error happens after having entered the information for the Task in > the template so next would be the tags. > > This was working until recently. Both Emacs and org are up to date > relative to their git repositories. The only change done recently in my > configuration is a move from ivy to selectrum for completion. FWIW, it's working for me. There was a change on July 8 having to do with tags completion (using completing-read-multiple), but I'm running with that change and I don't see a problem. OTOH, I'm not using selectrum (or ivy for that matter), so the change may be interacting badly with it. I would probably edebug `org-capture-fille-template` and check that the code around l.1733 in `org-capture.el' behaves as expected. -- Nick "There are only two hard problems in computer science: cache invalidation, naming things, and off-by-one errors." -Martin Fowler