From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joe Corneli Subject: processing lines before display to agenda Date: Tue, 29 Jul 2014 16:13:08 +0100 Message-ID: References: <1EF5BE263F0F4353B8F3941A8A349AC6@hassandar.com> <87k36we1cz.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47065) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XC95Z-00072A-7Q for emacs-orgmode@gnu.org; Tue, 29 Jul 2014 11:13:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XC95T-0002ZB-Oy for emacs-orgmode@gnu.org; Tue, 29 Jul 2014 11:13:17 -0400 Received: from mail-we0-x230.google.com ([2a00:1450:400c:c03::230]:39516) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XC95T-0002Z6-Ii for emacs-orgmode@gnu.org; Tue, 29 Jul 2014 11:13:11 -0400 Received: by mail-we0-f176.google.com with SMTP id q58so9270676wes.35 for ; Tue, 29 Jul 2014 08:13:09 -0700 (PDT) Received: from Tempest.local (cpc20-flit3-2-0-cust95.9-1.cable.virginm.net. [81.111.147.96]) by mx.google.com with ESMTPSA id hp6sm44337574wib.23.2014.07.29.08.13.08 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 Jul 2014 08:13:09 -0700 (PDT) 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 I would find it quite useful to have a variable similar to `org-agenda-prefix-format' that would apply changes to the *contents*, rather than to the *prefix* of agenda items. The nice thing about `org-agenda-prefix-format' is that it allows different formatting for different agenda buffers. Similarly, it would be useful to be able to supply different functions to alter the agenda items themselves, depending on the context. I was thinking that in theory this could be done by advising `org-agenda-format-item', but I'm not sure how to get the advice to apply in a conditional way depending on the agenda. There was a similar discussion related to the specific case of removing TODO keywords from certain agendas, https://lists.gnu.org/archive/html/emacs-orgmode/2010-09/msg00810.html So, for example: to hide TODO keywords from the agenda: (setq org-agenda-custom-commands '(("a" agenda "" ((org-agenda-todo-keyword-format ""))))) But what if, for example, I would like to remove priorities cookies as well?