From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:1008:1e59::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id UC2bFMw4T2b+PwAAA41jLg (envelope-from ) for ; Thu, 23 May 2024 14:38:36 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id 6IAjD8w4T2YfXQEA62LTzQ (envelope-from ) for ; Thu, 23 May 2024 14:38:36 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=QJ0VPmLg; 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=1716467916; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=f70SigRhppvka0rPVBmyTJhujJvK221oauGShUrZK9o=; b=XgWummODCV1mMcI7a3SNFMqDvQRJ3fHtx43Lbcv4DGy7phNIHCnWkV1HjIuM+EvIogeLyA ZzS24rid4/4MvELqUYE0hYeNAmHUr4l4AdfH3W0ip2Ax81Q/Fn6zo5tSta/HVe6h0aJn7H 5VTGoE+7X0xJfhn3G7QtjvCdOb7BK6151d/oGiN9LrTWSGFVpSXMEi09OIV4iSlxGK/pm4 /woc+NFdHz0gdA3K11cDRW74OBUvQAqA+ekjkgd972VCub82XsjNKex8mk2EqdadPp4OCc Y25qR3DhuBYD/9MpK3c2YLHh2me/0VwwGTsCOsC3uj5aRiHYwwAgC9ZX+NysUg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=QJ0VPmLg; 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=1716467916; a=rsa-sha256; cv=none; b=msEfqNdp6kN1IG6mzau5e4Yt9ZMurxs7XKScel2eOIx6htAEoWTIBqHb6Cs2B+RmQQQR17 FblZocz/ElifSRGRVDjb2UgTBase2SlziB3R6butPAtvW7cpGq8dElkkW5I8yz5YDDDz+B It1YmooPO6o57FpW4PhGCXSzUv3NxPb0FEYCqbJI5qi9UEqlfmC2jD9yrfgFOpJDz/fh94 0xCUbJm4kNqPPPU0e5F6yKSwRlxL+ftqUEMtfoP7oAPvwDy08RS6XrWT1CxMIdymzo3NpP c/AaSv83Ypd5Jf/fHGO08LSMH74FgYZGQOBHzPm/13XqXh0t0l+mghAw/5w2OQ== 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 C8EAD874F for ; Thu, 23 May 2024 14:38:35 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sA7hU-00040a-Ta; Thu, 23 May 2024 08:37:42 -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 1sA7hN-0003zP-6M for emacs-orgmode@gnu.org; Thu, 23 May 2024 08:37:34 -0400 Received: from mail-pf1-x436.google.com ([2607:f8b0:4864:20::436]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sA7hK-0000pR-MD for emacs-orgmode@gnu.org; Thu, 23 May 2024 08:37:32 -0400 Received: by mail-pf1-x436.google.com with SMTP id d2e1a72fcca58-6f44bcbaae7so3465125b3a.2 for ; Thu, 23 May 2024 05:37:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716467848; x=1717072648; darn=gnu.org; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=f70SigRhppvka0rPVBmyTJhujJvK221oauGShUrZK9o=; b=QJ0VPmLgLVN3/mmLqwqiY6o0TpQ+LmciZrijjqwTeBd8FZaa0gj2tr5MSo1zxAIr6C I7gXnNgnUvWFsPM1zNVFpX8L3n9KXgjHDMnNWmYXLvB4WtbMlMyqyQSyq6mSfyVQhMBg o8oN0/TG5s5844WsbssbP5RrAXr78Dhs01WuYKcv0talxkAeiazYM1tFFPIvEEN6ibGb +LylIhnQnUjSAWheBOCmWpZKvKvzAXsMt9FUTWFLz0+HTP3ct3SAm/gCpVAAjvpHyHWT 3x5x+v6YHS5/+CerVl/np4rcgUa5QD8qUHKqipjw71HFJDjAbGoEjup6p2Uwkh+H8X+3 BmBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716467848; x=1717072648; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=f70SigRhppvka0rPVBmyTJhujJvK221oauGShUrZK9o=; b=siLhB7ZcXdZGXCPcKtzLh5ybGWj9n2ymLVBRDF8IBvdFmM5PfbzjBP3tbIDaiBy4iw GOPJRyWn4Bfbg2WecJteE/rxXhm/0EyIMsUQnLLfkVrSyLwZ/RCTiuo5Gj9SUCcRgB9b PzdwGjca+b5RuRdx6sobmnDSObnAAUUWAxn61x4ZtNclSQfrtHu+i5qnt4dgrUQgKFQa n4JIl9vFn72MQPoCU8CWary+bxs95q4TiGwIBeEUYuLY0mjb0zRWVihfV30i0dzo+UAk M39A+TVDKmpM+EPDj4sW4FXpElLm/vwMeP+nJ/HFipqp/JCh2yZznYgnTCFVYf18zQZh lPxw== X-Gm-Message-State: AOJu0YxHLAxgtdXXBmShdCH5kCk7HApg13LHFdnh2J+emfJCDNrvQxeu HgvbpoXSjpeKr0UbrrYW5mfjb4Y3SWWybe6l74yW7OmgZD7mIPNlnHmEzA== X-Google-Smtp-Source: AGHT+IH/tqaGUD9iiwoPVsrMnJ40DLkjBdDD9Gwosouu9soIKO4yIrMItfOwOhhkiIVTmVyKI7pClw== X-Received: by 2002:a17:903:230a:b0:1f3:4714:3d3a with SMTP id d9443c01a7336-1f347143d77mr8666195ad.47.1716467848205; Thu, 23 May 2024 05:37:28 -0700 (PDT) Received: from storimasta ([2804:14c:5bb1:5200::3186]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f3356bf498sm16744295ad.191.2024.05.23.05.37.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 05:37:27 -0700 (PDT) From: Bruno Cardoso To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] org-capture: %\N template expansion In-Reply-To: <87msogye59.fsf@localhost> References: <87o78xz697.fsf@gmail.com> <87msogye59.fsf@localhost> Date: Thu, 23 May 2024 09:37:12 -0300 Message-ID: <87le40puvb.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::436; envelope-from=cardoso.bc@gmail.com; helo=mail-pf1-x436.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-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -9.68 X-Migadu-Queue-Id: C8EAD874F X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -9.68 X-TUID: +C7jmTYkowQ8 On 2024-05-23, 11:13 +0000, Ihor Radchenko wrote: > That's because you can only use %\N placeholder for %^{prompt} but not > for %^{prompt}X. > ... > We can probably improve the error and the docstring to clarify this. Thanks for the explanation, Ihor. I expected it to work in both cases, as the property prompt with value completion is very useful. I feel the error and the docstring can be confusing in this regard. > We may also make %^{prompt}X expansions to work with %\N, but it can > break the existing templates that are tuned to the current behaviour. I see. Would it make sense to have another placeholder for '%^{prompt}X'?