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 4DQEFDasXl/tIQAA0tVLHw (envelope-from ) for ; Sun, 13 Sep 2020 23:33:10 +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 CHNiDjasXl9uQgAAB5/wlQ (envelope-from ) for ; Sun, 13 Sep 2020 23:33:10 +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 BFB249404C3 for ; Sun, 13 Sep 2020 23:33:09 +0000 (UTC) Received: from localhost ([::1]:40488 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kHbUZ-0002Op-LW for larch@yhetil.org; Sun, 13 Sep 2020 19:33:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39776) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kHbUF-0002Oi-DD for emacs-orgmode@gnu.org; Sun, 13 Sep 2020 19:32:47 -0400 Received: from mail-pg1-f179.google.com ([209.85.215.179]:39703) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kHbUD-0000xc-RG for emacs-orgmode@gnu.org; Sun, 13 Sep 2020 19:32:47 -0400 Received: by mail-pg1-f179.google.com with SMTP id d13so1811432pgl.6 for ; Sun, 13 Sep 2020 16:32:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=H46saxbENjWYRRrJTKbciNrFRH7NfvTt5hnu1a6FZU8=; b=CbhrVJ7aBr3infG5Ykc+l21p0bRwSPHKRwSyeSCniXIkTGWLjEyQcBrvSO1x0mp2FL 0R2fif53tIESHqGy/q1I+kWPnk7xmiUpDJXStOQuHf1VyAHNp2z8vPawTjlU75E7JBxR QS1cxq7i/Sh8zEy+Yqes2Q5QVRrC71gzICl/U4moZPZKY6jnK31tWhdLndCew/HzcuIY EB2SmVY8LgkS+GimpGgV4TAPuq0VdS+liGtvFEeCOR8JZ9mAjoyUZ3J7P+6Gyg5Pc7LT JomJxKGtfEd+C4nogVzV/GEiyRfZ3V8t4d6AuXZaH0NH4AWTTPbt7K+PpMGThqioyx1S YYqQ== X-Gm-Message-State: AOAM531KXb9AoIhy3i2ry/k7XPy2Od3uGPyBIfso1SxD5fUDlMjsU7nh VjmqVgVsc85RNiXb6DKil5nOWQ5rJm4/9ZqrLVgjbij9 X-Google-Smtp-Source: ABdhPJz+fPO4Rr7IOEEzJzKHE/J2CMkBBqweT3vyYkR9hkuJDdWiCx+wc/DizJhX+GV+UuwE5iAdzF+Ci5gk8jgaJSo= X-Received: by 2002:a17:902:6941:b029:d0:cbe1:e76b with SMTP id k1-20020a1709026941b02900d0cbe1e76bmr11913858plt.18.1600039962855; Sun, 13 Sep 2020 16:32:42 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Phil Hudson Date: Mon, 14 Sep 2020 00:32:31 +0100 Message-ID: Subject: Re: RFE: Capture: property prompt: default completion To: emacs orgmode-mailinglist Content-Type: multipart/mixed; boundary="0000000000009cebbf05af3a55d2" Received-SPF: pass client-ip=209.85.215.179; envelope-from=philhudsonster@gmail.com; helo=mail-pg1-f179.google.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/13 19:32:43 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.248, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, 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-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=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-Spam-Score: 0.09 X-TUID: arm2pi3/5++9 --0000000000009cebbf05af3a55d2 Content-Type: text/plain; charset="UTF-8" On Sat, 12 Sep 2020 at 19:20, Phil Hudson wrote: > > I'd like us to add the ability to provide a default completion value > for a property prompt in a capture template, as already exists for a > non-property prompt. > > So where at the moment we can have: > > %^{prompt|default|completion2|completion3|...} > > I want, by analogy: > > %^{prop|default}p > > with the remaining completions provided by the #+prop_ALL in-buffer > setting, and with the implied constraint that "default" is a member of > that set. I'm going to take silence for consent, then. Patch attached. --0000000000009cebbf05af3a55d2 Content-Type: text/x-patch; charset="US-ASCII"; name="org-capture-default-for-property.patch" Content-Disposition: attachment; filename="org-capture-default-for-property.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_kf1qgww90 ZGlmZiAtLWdpdCBhL2RvYy9vcmctbWFudWFsLm9yZyBiL2RvYy9vcmctbWFudWFsLm9yZwppbmRl eCA0NjQ5OGJkMjIuLjY1OWUzZmZhZiAxMDA2NDQKLS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