From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 8D5fF1s67V+zMQAA0tVLHw (envelope-from ) for ; Thu, 31 Dec 2020 02:41:31 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id eDIpE1s67V8SMwAA1q6Kng (envelope-from ) for ; Thu, 31 Dec 2020 02:41:31 +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 D4CE59401CD for ; Thu, 31 Dec 2020 02:41:30 +0000 (UTC) Received: from localhost ([::1]:38922 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kunu4-0006PG-2p for larch@yhetil.org; Wed, 30 Dec 2020 21:41:28 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:36692) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kunss-0006P2-Kn for emacs-orgmode@gnu.org; Wed, 30 Dec 2020 21:40:15 -0500 Received: from mail-qk1-x732.google.com ([2607:f8b0:4864:20::732]:38569) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kunsn-000600-0T for emacs-orgmode@gnu.org; Wed, 30 Dec 2020 21:40:14 -0500 Received: by mail-qk1-x732.google.com with SMTP id w79so15515259qkb.5 for ; Wed, 30 Dec 2020 18:40:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=user-agent:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=nwoxojfwqK0D3tIZG2W+RWVS/rLtW+6VWrcI4ksTiy8=; b=qKI4lmReC8uqthzsE+QTRnSV7iXu6MLQlKD2c9dT94rBMakMhnIJS43B5WIEZ4AXVZ lIWNhBLIQICu91rQQ43f3fyR2OLjm0MBWsrX0P2AXFnNHWwg0sl2MSV9dFHcfbSnyOLD 8JGwkbHV77tPDcTdajIkrw1icCa/o8QnW00EtbsbKuKJo3aePc9WaPBLz+vp7LCMT/Fv AEJwxSJNg5IUKm1uaVw3iS9NRltGHkczHlzbhBtNrC0ptojKXFMg/wUQzhFEQk2BtxaA xE8BcMz1sxTA1kZ7zXlDwckC3tNO4Vxv1/uZMssaEgDvdq4fpow46oLFdh9gdfX7zEQd J6TA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:user-agent:from:to:subject:date:message-id :mime-version:content-transfer-encoding; bh=nwoxojfwqK0D3tIZG2W+RWVS/rLtW+6VWrcI4ksTiy8=; b=VFzPiLskPF3fgXVWESSaZ8UkreUe8dmd4U13mTAMnNkEGNdqHwHQ1ayIQKyzArQGUE FdSVfjUsYLkDoW3FKz2WJ0J7HKFvr2qxVYgTrWhrC/xVmXTsZOoMG99NKoRSkIJJ9+FC FPc5/WRnYNbk22uErdbWUu7e1qT6pH0pvRYrkdw/Jvujf1h6/7RmYlgfx57DA4tI9nCy qwfyE0YVQWnRaefL9p/5lZ45cdVUglu5C1WQ0O9tp/H46Bj5lQWc5UMzFkvN8/cfsTQG 6y1w/9vkjK1lbLwZS0aVHI/RA0DaxkJDZWh7/QZvXXcHKN+8yvf+oU7yJRzEEUMxCE1t yTEg== X-Gm-Message-State: AOAM530Jq3TneYGqbxyz5HBCe5zjEKNLvna2qeC03to7PRMeoeerFcWP hs5KhND0nDQIotP1WjaTzZhJ8ro3uQE= X-Google-Smtp-Source: ABdhPJz9RKKMbTUdOzY4Q7z8HgwjomCPTzDimrMc84DgjM+1qMv3DL+mW8+giqJGyMQ3QAw49vgRVA== X-Received: by 2002:a05:620a:40c7:: with SMTP id g7mr55597762qko.401.1609382406250; Wed, 30 Dec 2020 18:40:06 -0800 (PST) Received: from arch ([2601:8b:c300:1024:1266:d0ff:1635:f964]) by smtp.gmail.com with ESMTPSA id s19sm24903791qta.35.2020.12.30.18.40.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Dec 2020 18:40:05 -0800 (PST) User-agent: mu4e 1.5.7; emacs 28.0.50 From: No Wayman To: emacs-orgmode@gnu.org Subject: [feature] capture: defcustom for item/checkitem to skip LOGBOOK [9.4.4 (release_9.4.4-159-g9140a7 @ /home/n/.emacs.d/straight/build/org/)] Date: Wed, 30 Dec 2020 21:23:51 -0500 Message-ID: <87eej6bsvu.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::732; envelope-from=iarchivedmywholelife@gmail.com; helo=mail-qk1-x732.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.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-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -3.03 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=qKI4lmRe; 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-Migadu-Queue-Id: D4CE59401CD X-Spam-Score: -3.03 X-Migadu-Scanner: scn1.migadu.com X-TUID: UQg1E/EFKBkw Consider the following file named "/tmp/capture-item-logbook.org": ---- start capture-item-logbook.org --- * TODO TASK SCHEDULED: <2020-12-30 Wed 21:30 ++1d> :PROPERTIES: :STYLE: habit :END: :LOGBOOK: - State "DONE" from "TODO" [2020-12-29 Tue 21:30] :END: :+begin_src emacs-lisp :lexical t (let ((org-capture-templates '(("x" "TASK ITEM" item (file+headline "/tmp/capture-item-logbook.org"=20 "TASK"))))) (org-capture nil "x")) #+end_src ---- end capture-item-logbook.org --- Executing the src block places the capture item in the LOGBOOK=20 drawer if the entry type is 'item or 'checkitem. Technically this is the correct behavior according to=20 `org-capture-templates' docstring: item a plain list item, will be placed in the first plain list at the target location. Its default template is: "- %?" The documentation on LOGBOOK drawers also mentions: "You can also arrange for state change notes and clock times to=20 be stored in a =E2=80=98LOGBOOK=E2=80=99 drawer. If you want to store a quick note there, in a similar way to state=20 changes, use..."=20 Is it worth having an option for org-capture's item/checkitem=20 templates to skip targeting drawers? capture is flexible enough where user's can implement their own=20 point-placing function, but I wonder if skipping drawers is the common case. Thoughts?