From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: Toggle 'closed' in org-agenda-log-mode-items Date: Thu, 30 Jul 2009 18:51:53 -0400 Message-ID: <87bpn1zsvq.fsf@gollum.intra.norang.ca> References: <211769420907301510l433cbed3kae0b5ec9a56f6315@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MWeTg-0005MN-N0 for emacs-orgmode@gnu.org; Thu, 30 Jul 2009 18:52:00 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MWeTd-0005GX-0F for emacs-orgmode@gnu.org; Thu, 30 Jul 2009 18:52:00 -0400 Received: from [199.232.76.173] (port=54317 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MWeTc-0005GO-Tk for emacs-orgmode@gnu.org; Thu, 30 Jul 2009 18:51:56 -0400 Received: from mho-02-ewr.mailhop.org ([204.13.248.72]:53897) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MWeTc-00038m-HT for emacs-orgmode@gnu.org; Thu, 30 Jul 2009 18:51:56 -0400 In-Reply-To: <211769420907301510l433cbed3kae0b5ec9a56f6315@mail.gmail.com> (Nathan Neff's message of "Thu\, 30 Jul 2009 17\:10\:15 -0500") 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: Nathan Neff Cc: emacs-orgmode@gnu.org 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 > remove 'closed' from org-agenda-log-mode-items > else > add 'closed' to org-agenda-log-mode-items > (refresh the agenda view) > ) > > (define-key org-mode-map (kbd "") 'org-toggle-agenda-show-closed-logs) l in the agenda shows clock times only with your setup. C-u l shows task state changes too. Is that what you are looking for or do you only want the closed states? -Bernt