From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anupam Sengupta Subject: Any way to identify a DEADLINE or SCHEDULED item via org-agenda-prefix-format? Date: Thu, 28 Apr 2011 20:42:54 +0530 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([140.186.70.92]:55520) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QFSu6-0005la-S0 for emacs-orgmode@gnu.org; Thu, 28 Apr 2011 11:13:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QFSu5-0005LP-Tt for emacs-orgmode@gnu.org; Thu, 28 Apr 2011 11:13:18 -0400 Received: from mail-pw0-f41.google.com ([209.85.160.41]:33912) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QFSu5-0005L2-Mf for emacs-orgmode@gnu.org; Thu, 28 Apr 2011 11:13:17 -0400 Received: by pwi10 with SMTP id 10so1904133pwi.0 for ; Thu, 28 Apr 2011 08:13:15 -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 Hello, In my custom agenda block, I wanted to distinguish between SCHEDULED and DEADLINE items using a small character flag. The docstring for `org-agenda-prefix-format' mentions %s as the one to use for the scheduled/deadline string (as is used in the default agenda) - however, this string does not seem to be working for me (orgmode 7.5). As an example of a custom agenda block: (tags-todo "+TODO=\"TODO\"+SCHEDULED>=\"\"+SCHEDULED<\"\"|+TODO=\"TODO\"+DEADLINE>=\"\"+DEADLINE<\"\"|+TODO=\"TODO\"+TIMESTAMP>=\"\"+TIMESTAMP<\"\"" ((org-agenda-overriding-header "\nToday's Action Items\n====================") (org-agenda-prefix-format " [ ] %12:c%?-12t % s"))) Note the % s in the `org-agenda-prefix-format' setting. All other settings are showing up fine, but the schedule information is missing in the display. As an aside, %s is not exactly what I need, as I was looking for a way to display a single character flag (S or D for scheduled or deadline), but this is also fine. Regards, -- Anupam