emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Matt Lundin <mdl@imapmail.org>
To: Anupam Sengupta <anupamsg@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Any way to identify a DEADLINE or SCHEDULED item via org-agenda-prefix-format?
Date: Fri, 06 May 2011 09:00:49 -0400	[thread overview]
Message-ID: <87y62knfum.fsf@fastmail.fm> (raw)
In-Reply-To: <m2y62u1kax.fsf@gmail.com> (Anupam Sengupta's message of "Thu, 28 Apr 2011 20:42:54 +0530")

Anupam Sengupta <anupamsg@gmail.com> writes:

> 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>=\"<today>\"+SCHEDULED<\"<tomorrow>\"|+TODO=\"TODO\"+DEADLINE>=\"<today>\"+DEADLINE<\"<tomorrow>\"|+TODO=\"TODO\"+TIMESTAMP>=\"<today>\"+TIMESTAMP<\"<tomorrow>\""
>               ((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.

AFAIK, scheduling information is not included when constructing tags or
todo views.

> 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.

You can control the display of scheduled and deadline information with
org-agenda-scheduled-leaders and org-agenda-deadline-leaders, but I
believe this only applies to the agenda view.

Best,
Matt

      reply	other threads:[~2011-05-06 13:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-28 15:12 Any way to identify a DEADLINE or SCHEDULED item via org-agenda-prefix-format? Anupam Sengupta
2011-05-06 13:00 ` Matt Lundin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y62knfum.fsf@fastmail.fm \
    --to=mdl@imapmail.org \
    --cc=anupamsg@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).