From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peder Stray Subject: Patch to get clocktable to split on week boundraries Date: Mon, 4 Mar 2013 15:44:24 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=f46d04428eb6ac115204d71a6473 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:52638) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCWcx-0003Qd-3p for emacs-orgmode@gnu.org; Mon, 04 Mar 2013 09:44:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UCWcs-0002YP-EH for emacs-orgmode@gnu.org; Mon, 04 Mar 2013 09:44:31 -0500 Received: from mail-wi0-x229.google.com ([2a00:1450:400c:c05::229]:34052) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCWcs-0002Xz-8U for emacs-orgmode@gnu.org; Mon, 04 Mar 2013 09:44:26 -0500 Received: by mail-wi0-f169.google.com with SMTP id l13so2252925wie.2 for ; Mon, 04 Mar 2013 06:44:25 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --f46d04428eb6ac115204d71a6473 Content-Type: multipart/alternative; boundary=f46d04428eb6ac114d04d71a6471 --f46d04428eb6ac114d04d71a6471 Content-Type: text/plain; charset=UTF-8 When calling clocktable with :block *month and :step week it splits into block 7 days long starting from the first day in the month... that's not very useful I think, so here is a patch making it split the month into weeks starting on mondays. The first and last week will be clipped to only include the days in the selected month and as such will not contain the full 7 days of those weeks. -- Peder Stray --f46d04428eb6ac114d04d71a6471 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
When calling clocktable with :block *month and :step week = it splits into block 7 days long starting from the first day in the month..= . that's not very useful I think, so here is a patch making it split th= e month into weeks starting on mondays.=C2=A0 The first and last week will = be clipped to only include the days in the selected month and as such will = not contain the full 7 days of those weeks.

--
=C2=A0 Peder Stray
--f46d04428eb6ac114d04d71a6471-- --f46d04428eb6ac115204d71a6473 Content-Type: application/octet-stream; name="org-clock-clocktable-weekstart-2.patch" Content-Disposition: attachment; filename="org-clock-clocktable-weekstart-2.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_hdvqnqwx0 LS0tIG9yZy1jbG9jay5lbC53ZWVrCTIwMTMtMDItMjAgMTM6MzY6MDIuNDY1ODEzOTg2ICswMTAw CisrKyBvcmctY2xvY2suZWwJMjAxMy0wMy0wNCAwOToyODo0OS40MzYwODAyOTUgKzAxMDAKQEAg LTI1MTgsNyArMjUxOCw3IEBACiAJIChzdGVwIChjZHIgKGFzc29jIHN0ZXAwICcoKGRheSAuIDg2 NDAwKSAod2VlayAuIDYwNDgwMCkpKSkpCiAJIChzdGVwc2tpcDAgKHBsaXN0LWdldCBwMSA6c3Rl cHNraXAwKSkKIAkgKGJsb2NrIChwbGlzdC1nZXQgcDEgOmJsb2NrKSkKLQkgY2MgcmFuZ2UtdGV4 dCBzdGVwLXRpbWUpCisJIGNjIHJhbmdlLXRleHQgc3RlcC10aW1lIHRzYikKICAgICAod2hlbiBi bG9jawogICAgICAgKHNldHEgY2MgKG9yZy1jbG9jay1zcGVjaWFsLXJhbmdlIGJsb2NrIG5pbCB0 KQogCSAgICB0cyAoY2FyIGNjKSB0ZSAobnRoIDEgY2MpIHJhbmdlLXRleHQgKG50aCAyIGNjKSkp CkBAIC0yNTM4LDE3ICsyNTM4LDIxIEBACiAgICAgICh0ZQogICAgICAgKHNldHEgdGUgKG9yZy1m bG9hdC10aW1lCiAJCShhcHBseSAnZW5jb2RlLXRpbWUgKG9yZy1wYXJzZS10aW1lLXN0cmluZyB0 ZSkpKSkpKQorICAgIChzZXRxIHRzYiAKKwkgIChpZiAoZXEgc3RlcDAgJ3dlZWspIAorCSAgICAg ICg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