From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer Stengele Subject: Re: org-agenda-clockreport-mode does not include archived entries? How to? Date: Tue, 21 Feb 2012 10:41:36 +0100 Message-ID: <4F4366D0.4000109@online.de> References: <4F4206C2.3070006@online.de> <4F424265.3000406@online.de> <4F42708D.6010300@online.de> <11607.1329755565@alphaville> <4F427A46.9010905@online.de> <12538.1329768188@alphaville> <13835.1329770292@alphaville> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:55293) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RzmEE-0007jc-Uu for emacs-orgmode@gnu.org; Tue, 21 Feb 2012 04:41:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RzmE9-0002HK-4O for emacs-orgmode@gnu.org; Tue, 21 Feb 2012 04:41:46 -0500 Received: from ns.diplan.de ([212.34.188.4]:47050 helo=mail.diplan.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RzmE8-0002H6-Pb for emacs-orgmode@gnu.org; Tue, 21 Feb 2012 04:41:41 -0500 In-Reply-To: <13835.1329770292@alphaville> 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: nicholas.dokos@hp.com Cc: emacs-orgmode@gnu.org Am 20.02.2012 21:38, schrieb Nick Dokos: > Nick Dokos wrote: > >> Adding >> >> ... >> (org-agenda-start-day (ndk/org-first-of-month)) >> (org-agenda-span 'month) >> ... >> >> to your custom agenda command, with >> >> (defun ndk/org-first-of-month () >> (let ((d (calendar-current-date))) >> (calendar-absolute-from-gregorian (list (car d) 1 (caddr d))))) >> >> should do it. >> > > Same thing but somewhat more readable: > > --8<---------------cut here---------------start------------->8--- > (defun ndk/org-first-of-month () > (let* ((d (calendar-current-date)) > (m (calendar-extract-month d)) > (y (calendar-extract-year d))) > (calendar-absolute-from-gregorian (list m 1 y)))) > --8<---------------cut here---------------end--------------->8--- > > Nick > > Hi Nick, thanks for helping! I now see the current whole month. Is there a variable which includes the current starting date of the agenda instead of the "calendar-current-date"? Using that I could start my month-overview for the month I see in my agenda. Configuring "(org-agenda-archives-mode 'trees)" also show the archived trees. What I cannot achieve is starting the log with clockcheck mode. "(org-agenda-show-log 'clockcheck)" does not work. Any ideas? - Rainer My current config is here: .. ("0m" "agenda + no todos - whole month - log-mode - ARCHIVE included - clock report" agenda "" ( (org-agenda-sorting-strategy '(time-up priority-down)) (org-agenda-span 'month) (org-agenda-start-with-log-mode t) (org-agenda-archives-mode 'trees) (org-agenda-start-day (ndk/org-first-of-month)) (org-agenda-start-with-clockreport-mode t) (org-agenda-show-log 'clockcheck) )) ..