From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nathan Neff Subject: Re: Toggle 'closed' in org-agenda-log-mode-items Date: Fri, 31 Jul 2009 08:52:58 -0500 Message-ID: <211769420907310652j5b378f4fi4c0be8d7910dddf4@mail.gmail.com> References: <211769420907301510l433cbed3kae0b5ec9a56f6315@mail.gmail.com> <87bpn1zsvq.fsf@gollum.intra.norang.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MWsXc-0004fW-J3 for emacs-orgmode@gnu.org; Fri, 31 Jul 2009 09:53:00 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MWsXc-0004eK-0P for emacs-orgmode@gnu.org; Fri, 31 Jul 2009 09:53:00 -0400 Received: from [199.232.76.173] (port=50060 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MWsXb-0004eF-Qs for emacs-orgmode@gnu.org; Fri, 31 Jul 2009 09:52:59 -0400 Received: from qw-out-1920.google.com ([74.125.92.146]:45963) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MWsXb-0004r2-GA for emacs-orgmode@gnu.org; Fri, 31 Jul 2009 09:52:59 -0400 Received: by qw-out-1920.google.com with SMTP id 5so1383588qwf.24 for ; Fri, 31 Jul 2009 06:52:58 -0700 (PDT) In-Reply-To: <87bpn1zsvq.fsf@gollum.intra.norang.ca> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bernt Hansen Cc: emacs-orgmode@gnu.org On Thu, Jul 30, 2009 at 5:51 PM, Bernt Hansen wrote: > Nathan Neff writes: > >> I know that I can set this variable or define a custom agenda view >> if I only want to see clocked items in the agenda: >> >> (setq org-agenda-log-mode-items (quote (clock))) >> >> But, I like the way that the 'l' and 'R' keys work in the agenda, >> where they show/hide >> the log and the clock report. >> >> Is there a way to define something similar for the showing/hiding of >> Closed log items in the agenda? >> >> I'm not very good at lisp, so something like this pseudo-code: >> >> (defun org-toggle-agenda-show-closed-logs () >> ;; pseudo code ------ >> if org-agenda-log-mode-items contains 'closed' then >> =A0 =A0 remove 'closed' from org-agenda-log-mode-items >> else >> =A0 =A0add 'closed' to org-agenda-log-mode-items >> (refresh the agenda view) >> ) >> >> (define-key org-mode-map (kbd "") 'org-toggle-agenda-show-closed-log= s) > > l in the agenda shows clock times only with your setup. > > C-u l shows task state changes too. =A0Is that what you are looking for o= r > do you only want the closed states? > I would like to be able to press some key and toggle between these two thin= gs: 1) Show Clocked tasks only 2) Show Clocked tasks and Closed items Thanks for any ideas, --Nate