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 2J3yN/4nX1/vKAAA0tVLHw (envelope-from ) for ; Mon, 14 Sep 2020 08:21:18 +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 EJ83Mv4nX1/kQAAAB5/wlQ (envelope-from ) for ; Mon, 14 Sep 2020 08:21:18 +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 4CE75940668 for ; Mon, 14 Sep 2020 08:21:18 +0000 (UTC) Received: from localhost ([::1]:51588 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kHjjh-0008B9-5L for larch@yhetil.org; Mon, 14 Sep 2020 04:21:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34510) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kHjjE-00089w-6x for emacs-orgmode@gnu.org; Mon, 14 Sep 2020 04:20:48 -0400 Received: from mail-pj1-f47.google.com ([209.85.216.47]:53661) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kHjjB-0001Qa-Oq for emacs-orgmode@gnu.org; Mon, 14 Sep 2020 04:20:47 -0400 Received: by mail-pj1-f47.google.com with SMTP id t7so5092995pjd.3 for ; Mon, 14 Sep 2020 01:20:45 -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=rDFidAxyPhGw3zdw042Qn9w0hKoY9Dvg7OAblVkVUz0=; b=L26HgOHVplLaQx4JEoXZ5A1vWcmiXFxAiaefGusfFceGz3xS8zgSqd5BfMgdEBmRMm Game10xvmhqUJUaY3ny2o0KMHV+8+UMDfBwMAuAnDjcgUrPpQjE6xNh/MwJnGduqD6bI 1/nG58Emi+QITp7mu7Zc15OnzqQvEJUvpTzZBS9GZaSCve2FmwINLd4bvgSE/g7kwfYq ONDrDGUnDJIx5X9czL35JelhTWGy1ATfrzmOa6AVhOZ7MTshQsRkSDeOrIEBLl2mNub6 dZS3GnzG2iKDBkYo1yPr/WuEKmC/5MCxLX5KDHP5nvMwOpuSpRh9K60fkc19RIEMNNXy ELfA== X-Gm-Message-State: AOAM530ALZJ9gYV5q2y+yfhzMervJWDkA8kPrzw56YlUem5ew8JQoqIa YAVrpJcVINaF90SFohoik/n5sgWdmSXx2tZyxD36i1JV X-Google-Smtp-Source: ABdhPJz6VtQcuOE+dZpC81s++Jgj9u6uqMlnRe04RiFMNsLIdv2yjhVTxxQRp7IfCcU4gQhMZRVNIXFQoDYU/tVtKqk= X-Received: by 2002:a17:90b:1b03:: with SMTP id nu3mr12890978pjb.148.1600071643406; Mon, 14 Sep 2020 01:20:43 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Phil Hudson Date: Mon, 14 Sep 2020 09:20:31 +0100 Message-ID: Subject: [PATCH] Re: RFE: Capture: property prompt: default completion To: emacs orgmode-mailinglist Content-Type: multipart/mixed; boundary="000000000000ebbe7b05af41b560" Received-SPF: pass client-ip=209.85.216.47; envelope-from=philhudsonster@gmail.com; helo=mail-pj1-f47.google.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/14 04:20:44 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: F5cQ+VAhlIKz --000000000000ebbe7b05af41b560 Content-Type: text/plain; charset="UTF-8" Sorry, should have changed the subject. Re-sending patch (no alterations). On Mon, 14 Sep 2020 at 00:32, Phil Hudson wrote: > > 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. --000000000000ebbe7b05af41b560 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_kf29c1pm0 ZGlmZiAtLWdpdCBhL2RvYy9vcmctbWFudWFsLm9yZyBiL2RvYy9vcmctbWFudWFsLm9yZwppbmRl eCA0NjQ5OGJkMjIuLjY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