From mboxrd@z Thu Jan 1 00:00:00 1970
Return-Path:
Received: from mp2 ([2001:41d0:8:6d80::])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
by ms0.migadu.com with LMTPS
id sJOGMPsUhWG3egEAgWs5BA
(envelope-from )
for ; Fri, 05 Nov 2021 12:26:51 +0100
Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
by mp2 with LMTPS
id MNE2LPsUhWEdRQAAB5/wlQ
(envelope-from )
for ; Fri, 05 Nov 2021 11:26:51 +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 F15DEE7CA
for ; Fri, 5 Nov 2021 12:26:50 +0100 (CET)
Received: from localhost ([::1]:42650 helo=lists1p.gnu.org)
by lists.gnu.org with esmtp (Exim 4.90_1)
(envelope-from )
id 1mixMv-0006x0-6k
for larch@yhetil.org; Fri, 05 Nov 2021 07:26:49 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:39918)
by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from )
id 1mixMO-0006w9-EJ
for emacs-orgmode@gnu.org; Fri, 05 Nov 2021 07:26:16 -0400
Received: from mail-he1eur04olkn081a.outbound.protection.outlook.com
([2a01:111:f400:fe0d::81a]:47782
helo=EUR04-HE1-obe.outbound.protection.outlook.com)
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from )
id 1mixML-00052W-Kz
for emacs-orgmode@gnu.org; Fri, 05 Nov 2021 07:26:16 -0400
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
b=A5aMTx4uuWxoSilbrrkIsDt/9dmlXJgp6J6VVCztW+b/l69dQam6kIwtvgZOfWwBDMKbUCfbhWA8rvSKjzuBYyflpQKdSDjJapoNxw3PjoBPbCyW6ygE6LnG5t/dXM9BdfNDq0dbJXpPOveCP3Av1VvTb3ttJnUuVX+dDwo8D+oKsyietKu7B7SuxMj26teVG8lRc6ls2inJrMjmiA6FUYPFcnGP9OaptrbZv+QprBspC3cyizrNqQNKG30QjCqj4VoGEyy2TzGr9SxuT2PmAR+O/J4aI3XZT/Bm27oQJn4hThJolgDpPieLlv2P0l7riTyjRx8nJUSOmpnzzIvWqw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;
s=arcselector9901;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;
bh=f89n0a8APv5GK2q6D7P13VByEyMzHh85xxSpb00Y+Tk=;
b=NjaYmwxFinUm9eFkmEwisBqzAEuBC31CnWjTOvw49iAMor5KzMf52VgRUi2okl3L2Cyts4j40rRfRp/RYmjQT/lKnMSW3qMQLyiuEGoSXUY64meYvMxBDi7mLyCb7ftKYGB3dB6WWsmOru4+rY9eOjqNxvEO3wxGup7ZXcQlO17cXncFXCqKdsmsYyTlQuecAkge9mDDQl1tz5SzkxO0PxC9DvMVxpqAQrhUPjfBh5jrbzuihY4KRzOeJTpz8S2cZJE7UhKVAkCIcyk7Q8E4haM7S4LhvqtTozHe0JGCcah5v1/JUR53RR3nuomU+HDJftsWmA4IzsY9AOjmFSNMnQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none;
dkim=none; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com;
s=selector1;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
bh=f89n0a8APv5GK2q6D7P13VByEyMzHh85xxSpb00Y+Tk=;
b=DLYgazLZPOBZhgy0z03upE8nDyEwT0XfFdy2ie5RylRH82Jiu8NP15Wn0b8xvndpr/XD4vn9vRbp6/d+RWNb+Eu8W5XqlURjqv5VPigBL95owLgm+bEZmZtWZyPlmSKYLtQk4Zj/10veaHBnxXlnF/8uO4d5EfKI2G4jITWvBRI/kbSXsVNmBxLRIu6/yIxW5J0FG4dtXsN/dOrOjfqn3PBoBYKvekO933vKNPhPN8nz/sK1MZcTmuFiTKlOIvTABHMDL17JYqhtogeXSgu7GXbHLWFYcIPPZxvDceXAcLjhxEUYBaJQDQxTSqbMuMmvnWnpaJ6EM+rlNzQlD+3Z9Q==
Received: from PAXPR08MB6640.eurprd08.prod.outlook.com (2603:10a6:102:dd::5)
by PA4PR08MB6189.eurprd08.prod.outlook.com (2603:10a6:102:ef::8) with
Microsoft SMTP Server (version=TLS1_2,
cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.13; Fri, 5 Nov
2021 11:21:09 +0000
Received: from PAXPR08MB6640.eurprd08.prod.outlook.com
([fe80::90c1:4e36:aaac:49d0]) by PAXPR08MB6640.eurprd08.prod.outlook.com
([fe80::90c1:4e36:aaac:49d0%5]) with mapi id 15.20.4649.020; Fri, 5 Nov 2021
11:21:09 +0000
References:
User-agent: mu4e 1.7.0; emacs 28.0.60
From: "Christopher M. Miles"
To: Russell Adams
Subject: Re: [QUESTION] How to generate org-agenda view for clocked tasks
and logs etc which are sorted by timestamps?
Date: Fri, 05 Nov 2021 19:20:38 +0800
In-reply-to:
Message-ID:
Content-Type: multipart/mixed; boundary="=-=-="
X-TMN: [f7VfYh7By4ob8xybbkWBVrXMCesqhhAF]
X-ClientProxiedBy: HK0PR03CA0111.apcprd03.prod.outlook.com
(2603:1096:203:b0::27) To PAXPR08MB6640.eurprd08.prod.outlook.com
(2603:10a6:102:dd::5)
X-Microsoft-Original-Message-ID:
MIME-Version: 1.0
X-MS-Exchange-MessageSentRepresentingType: 2
Received: from Mac-mini.local (115.231.16.201) by
HK0PR03CA0111.apcprd03.prod.outlook.com (2603:1096:203:b0::27) with Microsoft
SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id
15.20.4669.11 via Frontend Transport; Fri, 5 Nov 2021 11:21:05 +0000
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: d7fea41a-eeae-4fc2-2943-08d9a04e5cb6
X-MS-TrafficTypeDiagnostic: PA4PR08MB6189:
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: kTxCK9c9MupXqicDegYIRZ97DuDL/2dNNWL7t51RDd/iXH42DZWkqUPLDsmIERRVOgFTAvEJvHbFjEu1pNOQwLi9VICUfy892322H+zM1TZRf+I+V4X7yfz6U+ePaq110Gv8WTCSlGnuovP7z8dBSBgu1A6g8Dt3ttdhs450aW67ye5UT1vrXsxNEoEogNDiNECAwZ8JLaoenNyLiYXdMsJEYIsYVhbqfrHeOFCdDkaN6DLDXkVDZ6wb6Jym1U+v+h1bVSLkirJgoicQJIrQYSGtvNivF/4LCH7vyuYpb1GYyjwMrof+V8RgqkdsvScoLE/YKvLWK7eFMt2z1Tof1f0ZwAlHdbe5F9BumesR68jtBcYSQtq3MSEVRY4tm13CQhzwXfhNzwyp+HfD5ZbPw95mxWYZZURSkzlGRgk+QsvvaLe6k9gxTDF0IO8+KqKJjbI8GJdpPQLr4MjS9xvzugMW4mPCV29Ct71qcY5lHvM28xkuRPS+spoQizFOG/FM65l5caddj730uWk2aHLK+GKK/xy/YQUZQ9P7GiTvzBqaf6kEKfn3gllo38/gSbS9kBDeG3MoWtM/zT/n6TvQzw==
X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1
X-MS-Exchange-AntiSpam-MessageData-0: NZxO8+FH08A+kU6eb1lftqYxCN+o+cmz7urqNQce8BDGxdKAlvLR6yA9ZYuv9bHObvOEbDEB778tyelvFnj3QWfq48HqpueTL4VSsBPDreHuWT/jKTk2eqRqet7g4WjvL1ajWFsMZsINbcrnUI6rn489Hd5rENxuAgEGeMGJNp/PSMp1Lk/xcuTcRk0USh86aWpUh06KE8wuQ1pwwcWEsa24lBjXLjeGit55rcdsQlUxtEo+Wlt1Pp5niDvrlmV53+BTspYQroHPfeUSqmJo6juqjTTITtuPcaNtfeLnpx3mN98DxFRL0QBd9rV2T9LDp/U7yuysPAqdfuldcqmzi/7xfImYClE7zdEneBJKFjNICl6G/Si1AORA273yxkhlaPNDl0KRBOeCf2NOsUWkx50CKoH6d6ENOzbPrEaFnvEQKUuZSxxZ2sgYgEDH/CPTSxSjMOj3ZqrkJJcJx1CYVWhmTlsHSW3HQ2HsNDzuUtbX2G9awkSFYO5pPilv5FhpMc9zPVPkVy76sdjIb1Eu2XWmBHKJK3hUhRK7AvFoxTC/Lcm+2plpKfIOO4uxdW38HAFNjL4UO5S4h66yLCBG3azhoQSQDsvEd0Ow8w+Del2+iryZiWptiBEbh8qiOR2wEttMwr+6meZo3gIqTU7o1H2FJP69ifI8ikXeRfUyIf95C0X+Rk2Os7+OI8+z+k97a1YBuyKw01YuFJxW59XPMg==
X-OriginatorOrg: outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: d7fea41a-eeae-4fc2-2943-08d9a04e5cb6
X-MS-Exchange-CrossTenant-AuthSource: PAXPR08MB6640.eurprd08.prod.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Nov 2021 11:21:09.0593 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000
X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR08MB6189
Received-SPF: pass client-ip=2a01:111:f400:fe0d::81a;
envelope-from=stardiviner@outlook.com;
helo=EUR04-HE1-obe.outbound.protection.outlook.com
X-Spam_score_int: 26
X-Spam_score: 2.6
X-Spam_bar: ++
X-Spam_report: (2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001,
DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FORGED_GMAIL_RCVD=1,
FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001,
HEADER_FROM_DIFFERENT_DOMAINS=0.249, HTML_FONT_LOW_CONTRAST=0.001,
HTML_MESSAGE=0.001, MANY_SPAN_IN_TEXT=2.197, MSGID_FROM_MTA_HEADER=0.001,
NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001,
T_KAM_HTML_FONT_INVALID=0.01 autolearn=no autolearn_force=no
X-Spam_action: no action
X-BeenThere: emacs-orgmode@gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "General discussions about Org-mode."
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Reply-To: numbchild@gmail.com
Cc: emacs-orgmode@gnu.org
Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org
Sender: "Emacs-orgmode"
X-Migadu-Flow: FLOW_IN
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org;
s=key1; t=1636111611;
h=from:from:sender:sender:reply-to: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:list-id:list-help:list-unsubscribe:
list-subscribe:list-post:dkim-signature;
bh=f89n0a8APv5GK2q6D7P13VByEyMzHh85xxSpb00Y+Tk=;
b=NbrTCyTnd7ZvRfl0gnf8Oe84bfiJt622UO7Kmxb0t14jCBiPA2ChbveR/Uj/zzkVrCSFcD
Fi9e4DtofkRFoPSR4ysFIiyxKwL82jn78JWaC7dPMUF0jX3/LyLZdO77i+gbyKFLtD6lkC
VguVfvniWXFArLAQ3EGIJEQAZjvaftT5ENnfzf36A2MDGcCJaZde9Ky0TbMjXpH+WJO6VX
ZXEc8CyHWAStvzwDqTbPFIM6KC/8dNKiRshdnX3y85uuVCpJYAITY3Q0jsWzCvl4ECyDdv
Z39Xp1DVZx/AiuI0a+/5VhWZ07QjDzPOgT1174SzgvE3FQQe98dlOhGWG8dmVg==
ARC-Seal: i=2; s=key1; d=yhetil.org; t=1636111611; a=rsa-sha256; cv=pass;
b=uKvRVNGJ+YCYnhGRTdfEfzKSJTBHtisfQapY8d4BDjX1GPvvxB9rb9G/WGJwgIjvuZCCJr
UWBdelKgAV8390+5m2H3vZwLgvFLhDXg1rng5l1EwBmyQtupAEybDY6pmP3BTtmxF2TWg9
2uL5k0uC+yCTyhE3H1fTCEvyT2ewoiOwKx1YA5uv3qNQ28lio9cm8JE+hqqHJqJ4W+zu5f
syrgdYsOh5C1NEAQxomQugDTLrA1QcMlCIzrDZXDr/FDjvR8IAt/3D46UbrY971cWC2jTa
XRmvoVwKyPuGu4BXVOwSD/iJFHT4A619/bwP4o6yVNsdMzh7gbhaUl0ZH5neXA==
ARC-Authentication-Results: i=2;
aspmx1.migadu.com;
dkim=pass header.d=outlook.com header.s=selector1 header.b=DLYgazLZ;
arc=pass ("microsoft.com:s=arcselector9901:i=1");
dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=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-Spam-Score: -1.16
Authentication-Results: aspmx1.migadu.com;
dkim=pass header.d=outlook.com header.s=selector1 header.b=DLYgazLZ;
arc=pass ("microsoft.com:s=arcselector9901:i=1");
dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=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: F15DEE7CA
X-Spam-Score: -1.16
X-Migadu-Scanner: scn0.migadu.com
X-TUID: +vJ6XIcu3Kxz
--=-=-=
Content-Type: multipart/alternative; boundary="==-=-="
--==-=-=
Content-Type: text/plain
Russell Adams writes:
> On Thu, Nov 04, 2021 at 12:16:19PM +0800, stardiviner wrote:
>> How to use elisp code to generate an org-agenda view for clocked tasks and
>> logs etc which are sorted by timestamps? I want to view my daily done tasks
>> and attach them as part of diary (maybe use org source block elisp code to
>> generate output?)
>>
>> So how to setup `org-agenda-custom-commands` to archive this purpose?
>
> I routinely export my agenda to HTML with logbook mode enabled and
> inactive timestamps. This shows a complete timeline of my actions. I
> save timestamps on changing TODO to DONE, use active timestamps for
> appointments, and I constantly add inactive timestamps while taking
> notes. I use this to justify billing to clients.
>
> I open the agenda, v m to make a monthly view, L for logbook, ] to
> enable inactive timestamps, and then C-x C-w to save. You may be able
> to just use elisp to trigger these actions.
>
> I don't do it often enough to automate it. I love being able to
> flatten my tree of notes into a timeline this way.
>
> ------------------------------------------------------------------
> Russell Adams RLAdams@AdamsInfoServ.com
>
> PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/
>
> Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3
Russell, Thanks for your hint.
I have a prototype code now, but still have problem.
#+begin_src emacs-lisp
(add-to-list
'org-agenda-custom-commands
'("c" "Tody [c]locked tasks."
((agenda ""
((org-agenda-ndays 1)
(org-agenda-span-1)
(org-agenda-use-time-grid t)
(org-agenda-include-diary nil)
(org-agenda-show-log (quote clockcheck))
(org-agenda-clockreport t))))))
#+end_src
#+begin_src emacs-lisp
(let* ((org-agenda-sticky t)
;; FIXME how to run it in background instead of switch to agenda buffer.
(_ (org-agenda nil "c"))
(origin-buffer (current-buffer))
(origin-buffer-point (point))
(agenda-buffer (with-current-buffer "*Org Agenda(c)*"
(buffer-substring (point-min) (point-max)))))
(switch-to-buffer origin-buffer)
(with-current-buffer origin-buffer
(goto-char origin-buffer-point)
(insert agenda-buffer)))
#+end_src
In the source code comment "FIXME" org-agenda always in frontend and popup buffer. I can't generate
org-agenda in background then get the buffer content.
Does anybody knows some tricky method for my code?
--==-=-=
Content-Type: text/html
Russell Adams <RLAdams@AdamsInfoServ.Com> writes:
On Thu, Nov 04, 2021 at 12:16:19PM +0800, stardiviner wrote:
How to use elisp code to generate an org-agenda view for clocked tasks and
logs etc which are sorted by timestamps? I want to view my daily done tasks
and attach them as part of diary (maybe use org source block elisp code to
generate output?)
So how to setup `org-agenda-custom-commands` to archive this purpose?
I routinely export my agenda to HTML with logbook mode enabled and
inactive timestamps. This shows a complete timeline of my actions. I
save timestamps on changing TODO to DONE, use active timestamps for
appointments, and I constantly add inactive timestamps while taking
notes. I use this to justify billing to clients.
I open the agenda, v m to make a monthly view, L for logbook, ] to
enable inactive timestamps, and then C-x C-w to save. You may be able
to just use elisp to trigger these actions.
I don't do it often enough to automate it. I love being able to
flatten my tree of notes into a timeline this way.
-------------------------------------------------------------–—
Russell Adams RLAdams@AdamsInfoServ.com
Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3
Russell, Thanks for your hint.
I have a prototype code now, but still have problem.
(add-to-list
'org-agenda-custom-commands
'("c" "Tody [c]locked tasks."
((agenda ""
((org-agenda-ndays 1)
(org-agenda-span-1)
(org-agenda-use-time-grid t)
(org-agenda-include-diary nil)
(org-agenda-show-log (quote clockcheck))
(org-agenda-clockreport t))))))
(let* ((org-agenda-sticky t)
;; FIXME how to run it in background instead of switch to agenda buffer.
(_ (org-agenda nil "c"))
(origin-buffer (current-buffer))
(origin-buffer-point (point))
(agenda-buffer (with-current-buffer "*Org Agenda(c)*"
(buffer-substring (point-min) (point-max)))))
(switch-to-buffer origin-buffer)
(with-current-buffer origin-buffer
(goto-char origin-buffer-point)
(insert agenda-buffer)))
In the source code comment "FIXME" org-agenda always in frontend and popup buffer. I can't generate
org-agenda in background then get the buffer content.
Does anybody knows some tricky method for my code?
--==-=-=--
--=-=-=
Content-Type: text/plain
<#secure method=pgpmime mode=sign>
--
[ stardiviner ]
I try to make every word tell the meaning that I want to express.
Blog: https://stardiviner.github.io/
IRC(freenode): stardiviner, Matrix: stardiviner
GPG: F09F650D7D674819892591401B5DF1C95AE89AC3
--=-=-=--