From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id cPF7HSWAJF8ePgAA0tVLHw (envelope-from ) for ; Fri, 31 Jul 2020 20:33:41 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 2PtJGSWAJF8FIAAAbx9fmQ (envelope-from ) for ; Fri, 31 Jul 2020 20:33:41 +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 D0D2994051F for ; Fri, 31 Jul 2020 20:33:40 +0000 (UTC) Received: from localhost ([::1]:57962 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k1bil-0002u1-9h for larch@yhetil.org; Fri, 31 Jul 2020 16:33:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58044) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k1biI-0002sg-Cf for emacs-orgmode@gnu.org; Fri, 31 Jul 2020 16:33:10 -0400 Received: from mail-qk1-x731.google.com ([2607:f8b0:4864:20::731]:35958) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k1biG-00053U-Pz for emacs-orgmode@gnu.org; Fri, 31 Jul 2020 16:33:10 -0400 Received: by mail-qk1-x731.google.com with SMTP id g26so30063931qka.3 for ; Fri, 31 Jul 2020 13:33:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version; bh=wcYD62DawP2Ln0byWA7yO0JQWIuv/GSP/QHUdnevy/s=; b=tnMufao1HP2v40yzDTs6O/aom/1KaTyC8Dobrdmj+aVySL6WovZwW7tmVco8MIytc4 kezVESdDsfWjzFN4710Y9HXBHM3jKOiOyeVKiSO38jou4ImGgWl/6sDxiMf+Wx+GMh+c 5oCIXlqWmA12bl4jSTCfbNXiyDMJhL15WZx9ThSURUNC4WE61soL35Ei1w+NUqqrJ+cH f11i401FM5Y21cFPATF5UfjhTqaIaNuCp19zu9q+ZI+/XKGGsT+DKQdXm1frJejUSikp kGe3tm/KHufqCqNUVQd3EcIE7uparLqwkH1Q9nEKyazOnA+WiKYK0nunzf94b0fYX2WO H9QA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version; bh=wcYD62DawP2Ln0byWA7yO0JQWIuv/GSP/QHUdnevy/s=; b=GTCMooBVT/GtMS5O7X3Vy7FGWSKjpZALIOa5PiAYBVAjT4ZzE0mYO6MTYOd1LzJLVj 7WgTpsqDnqGapmuComU0P8EeyAWLxglfPUrNS92QfPevAPELKDixr4K7oS2DSA4sylTb 4YT/ThiXL5FgxBOSNLM2FxP5cxHc3hLkp3lZPoWvUKbrIyZcklP9jWChyxgkXMMxuRk6 sHm1NAgriHrnuHffQV9jkjIE11QzuGkjjAAZbaKwzmakEcR1cynpC4YGsdhoi2RQ2RMs 4S7DqsmtlhCmIlUNKZXTWHPkTxTnv5AjAqkim5ZH5hvhZGGPP9CR7oH/aGcnmKBe39iy cjEQ== X-Gm-Message-State: AOAM531YdhTUvOdM7qNORRWSRTY2Ecit/zCc72ouz9QLDZ00z6gjhPTB HeThaeeqNLQ7A6M+5qGxXHM= X-Google-Smtp-Source: ABdhPJx0mV+xMoC+rTRpYEzQO2Ul6PHjBmGSMBh2tTb1Pc4WZsUTGyE+kNFMk0Yfeg5AcvbFBaoDHw== X-Received: by 2002:a37:56c6:: with SMTP id k189mr5410009qkb.241.1596227586896; Fri, 31 Jul 2020 13:33:06 -0700 (PDT) Received: from arch ([2601:8b:c300:1024:1266:d0ff:1635:f964]) by smtp.gmail.com with ESMTPSA id m203sm8837515qke.114.2020.07.31.13.33.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Jul 2020 13:33:05 -0700 (PDT) References: <87wo5rwu60.fsf@gmail.com> <87tv0vwrwe.fsf@gmail.com> <87mu6n375l.fsf@nicolasgoaziou.fr> User-agent: mu4e 1.5.5; emacs 28.0.50 From: No Wayman To: Nicolas Goaziou Subject: Re: [Patch] Document org-capture-templates entry type default strings In-reply-to: <87mu6n375l.fsf@nicolasgoaziou.fr> Date: Fri, 31 Jul 2020 16:33:04 -0400 Message-ID: <87mu3f2znj.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2607:f8b0:4864:20::731; envelope-from=iarchivedmywholelife@gmail.com; helo=mail-qk1-x731.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org, No Wayman Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=tnMufao1; dmarc=pass (policy=none) header.from=gmail.com; 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.21 X-TUID: hx5NlC6HcHsJ --=-=-= Content-Type: text/plain; format=flowed Nicolas Goaziou writes: > Could you send it again with a commit message more in line with > our > habits (variable modified, etc), and two spaces at the end of > sentences? Sorry for the delay. I've reformatted the patch. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-capture-Document-defualt-template-strings.patch Content-Description: document default template strings >From cf52a18e4f2ca3c5138975c790fb6baec08d5c87 Mon Sep 17 00:00:00 2001 From: Nicholas Vollmer Date: Tue, 31 Mar 2020 17:39:51 -0400 Subject: [PATCH] capture: Document defualt template strings * lisp/org-capture.el (org-capture-templates): Document default entry type template strings. --- lisp/org-capture.el | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/lisp/org-capture.el b/lisp/org-capture.el index 2cc1ce394..0ca75c772 100644 --- a/lisp/org-capture.el +++ b/lisp/org-capture.el @@ -159,14 +159,20 @@ description A short string describing the template, will be shown during type The type of entry. Valid types are: entry an Org node, with a headline. Will be filed as the child of the target entry or as a - top-level entry. + top-level entry. Its default template is: + \"* %?\n %a\" item a plain list item, will be placed in the - first plain list at the target - location. + first plain list at the target location. + Its default template is: + \"- %?\" checkitem a checkbox item. This differs from the plain list item only in so far as it uses a - different default template. + different default template. Its default + template is: + \"- [ ] %?\" table-line a new line in the first table at target location. + Its default template is: + \"| %? |\" plain text to be inserted as it is. target Specification of where the captured item should be placed. @@ -214,9 +220,10 @@ target Specification of where the captured item should be placed. Most general way: write your own function which both visits the file and moves point to the right location -template The template for creating the capture item. If you leave this - empty, an appropriate default template will be used. See below - for more details. Instead of a string, this may also be one of +template The template for creating the capture item. + If it is an empty string or nil, a default template based on + the entry type will be used (see the \"type\" section above). + Instead of a string, this may also be one of: (file \"/path/to/template-file\") (function function-returning-the-template) -- 2.27.0 --=-=-=--