From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ken Mankoff Subject: Re: Hide empty custom agenda sections Date: Thu, 27 Jun 2013 11:18:39 -0400 Message-ID: References: <87fvw3oarm.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e0111be76e89a7404e0244607 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34755) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UsDy6-00046T-Ie for emacs-orgmode@gnu.org; Thu, 27 Jun 2013 11:18:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UsDy5-0006N5-0Z for emacs-orgmode@gnu.org; Thu, 27 Jun 2013 11:18:42 -0400 In-Reply-To: <87fvw3oarm.fsf@bzg.ath.cx> 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: Bastien Cc: Org-mode --089e0111be76e89a7404e0244607 Content-Type: text/plain; charset=ISO-8859-1 Hi Bastien, Here is my custom agenda section. I'd like to have the DEADLINE and the REFILE only show up if items exist in those sections, not when they are empty. Actually, I guess I'd like this for all sections. (setq org-agenda-custom-commands '(("c" "My Custom Agenda" ( (tags "REFILE" ((org-agenda-overriding-header "REFILE"))) (tags-todo "+DEADLINE<=\"<+3d>\"" ( (org-agenda-overriding-header "Deadline <= 3 Days") )) (tags-todo "+SCHEDULED<\"\"" ( (org-agenda-overriding-header "Scheduled Today") )) (todo "INPROGRESS" ((org-agenda-overriding-header "In Progress"))) (todo "WAITING|VERIFY" ((org-agenda-overriding-header "Waiting or Verify"))) (agenda "" ( (org-agenda-overriding-header "Scheduled") (org-deadline-warning-days 0) )) (todo "SOMEDAY" ((org-agenda-overriding-header "Someday"))) (tags "REFILE" ((org-agenda-overriding-header "REFILE"))) ) nil ("org.txt" "org.html" "org.ics")))) On Thu, Jun 27, 2013 at 10:44 AM, Bastien wrote: > Hi Ken, > > Ken Mankoff writes: > > > Right now I have this at the bottom of my custom agenda, and it is > > therefore often off-screen. I would like to have it at the top, but > > only appear when there are items under this section. Most of the time > > it is there and three lines are wasting space (header separator ==== > > =, header "REFILE", and a blank line). > > So you are using agenda blocks, right? > > Please post the skeleton of your custom agendas so that we can better > understand. > > Thanks, > > -- > Bastien > --089e0111be76e89a7404e0244607 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi Bastien,

Here is my custom age= nda section. I'd like to have the DEADLINE and the REFILE only show up = if items exist in those sections, not when they are empty. Actually, I gues= s I'd like this for all sections.

(setq org-agenda-custom-commands
=
=A0 =A0 =A0 '(("c" "My Custom Agenda"
=A0 =A0 =A0 =A0 =A0(
=A0 (tags "REFILE" ((org-agenda-overriding-header "= REFILE")))
=A0(tags-todo &quo= t;+DEADLINE<=3D\"<+3d>\""=A0
=A0 =A0 (
=A0 =A0 =A0(org-agenda-overriding= -header "Deadline <=3D 3 Days")
=A0 =A0 =A0))
=A0(tags-todo &q= uot;+SCHEDULED<\"<tomorrow>\""=A0
=A0 =A0 (
=A0 =A0 =A0(org-a= genda-overriding-header "Scheduled Today")
=A0 =A0 =A0))
=A0 = =A0 =A0 =A0 =A0 (todo "INPROGRESS" ((org-agenda-overriding-header= "In Progress")))
=A0 =A0 =A0 =A0 =A0 (todo "WAITING|VERIFY" ((org-agenda-over= riding-header "Waiting or Verify")))
=A0(agenda "" (
<= span class=3D"" style=3D"white-space:pre"> =A0 =A0 =A0(org-agenda-= overriding-header "Scheduled")
=A0 =A0 =A0(org-d= eadline-warning-days 0)
=A0 =A0 =A0))
=A0 =A0 =A0 =A0 =A0 (todo "SOM= EDAY" ((org-agenda-overriding-header "Someday")))
=A0(tags "REF= ILE" ((org-agenda-overriding-header "REFILE"))) =A0=A0
=A0) nil ("org.txt" "org.h= tml" "org.ics"))))



On Thu, Jun 27, 2013 at 10:44 AM, Bastien &= lt;bzg@gnu.org> wrote:
Hi Ken,

Ken Mankoff <mankoff@gmail.com&= gt; writes:

> Right now I have this at the bottom of my custom agenda, and it is
> therefore often off-screen. I would like to have it at the top, but > only appear when there are items under this section. Most of the time<= br> > it is there and three lines are wasting space (header separator =3D=3D= =3D=3D
> =3D, header "REFILE", and a blank line).

So you are using agenda blocks, right?

Please post the skeleton of your custom agendas so that we can better
understand.

Thanks,

--
=A0Bastien

--089e0111be76e89a7404e0244607--