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 nhsqBxTgGGChdgAA0tVLHw (envelope-from ) for ; Tue, 02 Feb 2021 05:16:04 +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 2PctAhTgGGCyAgAA1q6Kng (envelope-from ) for ; Tue, 02 Feb 2021 05:16:04 +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 7655A940481 for ; Tue, 2 Feb 2021 05:16:03 +0000 (UTC) Received: from localhost ([::1]:33860 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l6o2j-0004vU-Ot for larch@yhetil.org; Tue, 02 Feb 2021 00:16:01 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:54172) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l6o23-0004v9-Nk for emacs-orgmode@gnu.org; Tue, 02 Feb 2021 00:15:20 -0500 Received: from out1.migadu.com ([2001:41d0:2:863f::]:44525) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l6o1y-0000NI-V2 for emacs-orgmode@gnu.org; Tue, 02 Feb 2021 00:15:19 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kyleam.com; s=key1; t=1612242911; h=from:from: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; bh=4L0Mo9vI39UVZk7tlQdW4NmTkTXPZxtx0gmUFh4qKaw=; b=j9OTgrLYcYuqq7MfsPBl1+Ll3g9w1sQ72FMOQT8A/PrPd3uz4Blr0vMjVlKXARToQrRQIU 4j8YiJYnW73MWMJ2cWpLxznSZggsIKUrbnnVAykPEcLCs9dm+MlhfmorMBTW2fHtSc4iPz 1y20ZkSw7hG9ijfnRN3ZsEN6INA8q12QLJ1myRFFkSmLXElLZKW/E+3Fe9nYrov4dviurw yJld+m9kISLQmlRHVCluj36jaEDH8p0XHL1FVxCh/uLl1Cy27NJQnUGfl2AOYXpjJiOEYR /wxfoV8YJ/Nri+NT45+83GvDoBxZUN5ap+n9kj+DdHT1x/LoHNfm1FU6umOJLg== From: Kyle Meyer To: Christopher Causer Subject: Re: clock-table and hooking that into org-capture file+olp+datetree In-Reply-To: <1a9a61b4-a5f9-471b-80e5-1c52902b392d@www.fastmail.com> References: <79daebf0-5bda-473a-b289-392fd0c8df18@www.fastmail.com> <85e0ac65-f4b6-4212-95bf-2bc24671de06@www.fastmail.com> <87mtwqziuj.fsf@aquinas> <44e81542-882d-4c36-adcd-69ca90b23f48@www.fastmail.com> <87im7ez6zz.fsf@aquinas> <1a9a61b4-a5f9-471b-80e5-1c52902b392d@www.fastmail.com> Date: Tue, 02 Feb 2021 00:15:09 -0500 Message-ID: <87sg6fxd7m.fsf@kyleam.com> MIME-Version: 1.0 Content-Type: text/plain X-Migadu-Auth-User: kyle@kyleam.com Received-SPF: pass client-ip=2001:41d0:2:863f::; envelope-from=kyle@kyleam.com; helo=out1.migadu.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, 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: orgmode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.56 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=kyleam.com header.s=key1 header.b=j9OTgrLY; 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-Migadu-Queue-Id: 7655A940481 X-Spam-Score: -2.56 X-Migadu-Scanner: scn1.migadu.com X-TUID: 0zgtMoj5C1nb Christopher Causer writes: > One snag I hit that I feel I should mention is what I believe to be a > mistake in the documentation[1]. I was scratching my head as why > org-clocktable-defaults wasn't working, but it was only when I brought > up the inline documentation that I see that this probably is some > vestigial variableand it has since moved to > org-clock-clocktable-default-properties. Despite their confusingly similar names as well as org-clock-clocktable-default-properties not being documented in the manual, they serve distinct purposes as far as I understand. org-clock-clocktable-default-properties is about which properties are inserted as part of the BEGIN line, while org-clocktable-defaults is the set of defaults that are used when the value is not taken from the BEGIN line. For example, here's the result of calling org-dynamic-block-insert-dblock and selecting "clocktable" with the built-in values for both these options: * one :LOGBOOK: CLOCK: [2021-02-01 Mon 17:48]--[2021-02-01 Mon 19:48] => 2:00 #+BEGIN: clocktable :scope subtree :maxlevel 2 #+CAPTION: Clock summary at [2021-02-02 Tue 00:08] | Headline | Time | |--------------+--------| | *Total time* | *2:00* | |--------------+--------| | one | 2:00 | #+END: Redoing that after (setq org-clock-clocktable-default-properties '(:fileskip0 nil)) it looks like this * one :LOGBOOK: CLOCK: [2021-02-01 Mon 17:48]--[2021-02-01 Mon 19:48] => 2:00 #+BEGIN: clocktable :scope subtree :fileskip0 nil #+CAPTION: Clock summary at [2021-02-02 Tue 00:10] | Headline | Time | |--------------+--------| | *Total time* | *2:00* | |--------------+--------| | one | 2:00 | #+END: Notice the ":fileskip0 nil" in the BEGIN line. And redoing it once more with (setq org-clocktable-defaults (plist-put org-clocktable-defaults :link t)) on top * one :LOGBOOK: CLOCK: [2021-02-01 Mon 17:48]--[2021-02-01 Mon 19:48] => 2:00 #+BEGIN: clocktable :scope subtree :fileskip0 nil #+CAPTION: Clock summary at [2021-02-02 Tue 00:11] | Headline | Time | |--------------+--------| | *Total time* | *2:00* | |--------------+--------| | [[file:/tmp/scratch.org::*one][one]] | 2:00 | #+END: Notice that `:link t' has an effect, but it's not inserted in the BEGIN line.