From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id eCYSLNuWTmYLVwAAqHPOHw:P1 (envelope-from ) for ; Thu, 23 May 2024 03:07:39 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id eCYSLNuWTmYLVwAAqHPOHw (envelope-from ) for ; Thu, 23 May 2024 03:07:39 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=Iuu5JUeo; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1716426459; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=WssmYU8DXUujwpX2Aobyv4Sq+qYDpNSik0DKbDn//2g=; b=XvVWk5lkn45it0IYGMI86+zUyIyLf3eRcqN1xFWNY5RF9bmubG3qFzdnBsSkrWj3q4Yi4m uciJkJfMoaJI+CrcwNjIXKynY1AH+DfmucMiuBnrHH48q/BqicLRPwpmRYLxZImQmOmmAe vTVM/BEpcCcysG0BJE24uk0aXHL3sBEl0QDO0E23Gd2nbn4te1/A4ohaee4iPk86PRC3PJ K3y0ovgVnV1csk4DlV5d4CvS5mGdbY9/yykl2Bco974dovX4sc4a7gLtatxuFMcbn5hu9p fiVRg1iQ+Ed39t2N+PBSnKi3OnRIcvBxdHkXqDpa+pMgu/qQkRsYpVR1G+rTNQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=Iuu5JUeo; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1716426459; a=rsa-sha256; cv=none; b=p8YRkZd8HeopuPRjTLfDx+F3IXKeqCSh84h8d8xtZtWk3qizoVyfhqsOHw+y4hyopG8aAO MF+c9j/Kt2+gKYMc58W9KUmLw43jrph68z5Bu6c+XsyncgSRFOZZh3ULbSntZKsQIT/bEc fVP8rFFyFLN/6wB3u5sobZFb6cmnc8IjIawwqHswV9lYln6AT3tn8t5LG5yuGE4iLyPP1E UoeMLZvu9bQLX+IjDvLJwylOM8h542mz+z9i0hcoGhb/LhY+nWrOYOYG5v+vCM6YhVyTF6 JbAxk03eANMzNMVixhCdsQIp7x+lDiT96X7YqeC8TrbeTgSy8wcPRGF3TFDz7A== 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 55E0F638E0 for ; Thu, 23 May 2024 03:07:39 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s9wut-00047f-SH; Wed, 22 May 2024 21:06:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s9wus-000479-9D for emacs-orgmode@gnu.org; Wed, 22 May 2024 21:06:46 -0400 Received: from mail-pl1-x631.google.com ([2607:f8b0:4864:20::631]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s9wuq-0002xU-Or for emacs-orgmode@gnu.org; Wed, 22 May 2024 21:06:46 -0400 Received: by mail-pl1-x631.google.com with SMTP id d9443c01a7336-1f332528c1aso6580435ad.2 for ; Wed, 22 May 2024 18:06:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716426402; x=1717031202; darn=gnu.org; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=WssmYU8DXUujwpX2Aobyv4Sq+qYDpNSik0DKbDn//2g=; b=Iuu5JUeo+bCwpwGEAtx9CJSYDPzdswgCYX7ZMT9DNhDwNZbznUMH8B0hGmIwSHdd9c S26VfsxCf31y6Qldnb5fslI5C/RAkKsP6Dh6fAT/vN3SI0R4LQxN47a/ooL28ntPt+z8 ZJc5EPjZQP/jCeia8fKGpJwmlD5zjy9MAUuESiuY0BJUg1I2qGPciiSCYjLUDCPb+UB6 p2My3RrvJW5Ts3UmFIHifZXfei6x/6AxgUfCQh9KpCBBAp/U0B3VrELME9gMsCg8AfBe wUnke5MA9PUvpVIeIMZSWhKB4aK338h1Jb9EKKacJwt1a8HgOmpM57v7b432Cl6Yavhg ROVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716426402; x=1717031202; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=WssmYU8DXUujwpX2Aobyv4Sq+qYDpNSik0DKbDn//2g=; b=X+nGJVfsdd1hy6xWeCtw3pHdvwaYZr5pdEdTy/wC5wX7ThC5QLjyzp7GgBhrYMNSka PwGSlsjtBHdVNBn/3trK2iX0wEPblaOPcXIp7G+cG3w+qfnMQD5MyWukYFabjxGL3f4P +1OcdJWVdgXlcGIFR9EWbpL/lL9nOdh514sWwU5p24mOAxaKarEG3Sly4XxDEI73WA3/ aesbRzkYKsGl22+jCRMTbz7ckeuEpTm9lxBjFJaHH5iI7KtLueR0sZXr+IwxLi8BtfOM oEBYqjmrAp1Mqwt8/Aoz2j7TSKTNSrr6ttgslNL5TTIKKBcLs4aaAnat/DF9l//UVAVr KMPQ== X-Gm-Message-State: AOJu0YzSvOc2NgYjWAaaRd1lo+6k87abiJY2n0gne3XV3yTnZDigyf2F Xlxg5XxIYMdiBUcPEsYpVuv0yOot3PYlLRJLGPvQzSmcFyAoCx3BzN837w== X-Google-Smtp-Source: AGHT+IFg4Q0MhtC7pB69MydOzIdscUHpjmFB9A8axPBKtgcu5PtYN4U0byFYY7ZZ78hFpIFEIhNNcA== X-Received: by 2002:a17:902:db08:b0:1f2:f26f:268f with SMTP id d9443c01a7336-1f31c97adcdmr42136475ad.20.1716426402230; Wed, 22 May 2024 18:06:42 -0700 (PDT) Received: from storimasta ([2804:14c:5bb1:5200::3186]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f32d91cd9asm13392345ad.267.2024.05.22.18.06.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 18:06:41 -0700 (PDT) From: Bruno Cardoso To: emacs-orgmode@gnu.org Subject: [BUG] org-capture: %\N template expansion Date: Wed, 22 May 2024 22:06:28 -0300 Message-ID: <87o78xz697.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::631; envelope-from=cardoso.bc@gmail.com; helo=mail-pl1-x631.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.29 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -9.17 X-Spam-Score: -9.17 X-Migadu-Queue-Id: 55E0F638E0 X-Migadu-Scanner: mx13.migadu.com X-TUID: q41ZluYhUQTN Hi all, I'm having trouble expanding the '%\N' template in org-capture. For example, with the following template: (add-to-list 'org-capture-templates '("t" "TEST" entry (file+headline "~/org/test.org" "TEST") "** TODO %? :PROPERTIES: :TITLE: %^{TITLE} :AUTHOR: %^{AUTHOR}p :END: %\1 %\2")) The properties are read correctly, but "%\1 %\2" expands to "%^A %^B". Either escaping the backslashes ("%\\1 %\\2") or reading the template above from a file throws an error: : org-capture: Capture abort: Wrong type argument: stringp, nil Org mode version 9.7-pre (release_9.6.29-1474-g1c5492) Best, Bruno.