From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ken Mankoff Subject: Hide empty custom agenda sections Date: Mon, 17 Jun 2013 06:17:35 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e012952ecc362ba04df56e799 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35483) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UoWVK-0003Uo-GN for emacs-orgmode@gnu.org; Mon, 17 Jun 2013 06:17:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UoWVE-0001HR-EC for emacs-orgmode@gnu.org; Mon, 17 Jun 2013 06:17:42 -0400 Received: from mail-ob0-x22f.google.com ([2607:f8b0:4003:c01::22f]:53976) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UoWVE-0001HL-8v for emacs-orgmode@gnu.org; Mon, 17 Jun 2013 06:17:36 -0400 Received: by mail-ob0-f175.google.com with SMTP id xn12so2897598obc.6 for ; Mon, 17 Jun 2013 03:17:35 -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: Org-mode --089e012952ecc362ba04df56e799 Content-Type: text/plain; charset=ISO-8859-1 Hi, I have a section of my custom agenda that shows items synced through mobile-org. My mobile.org file has #+FILETAGS: REFILE Which means a custom agenda command of (tags "REFILE" ((org-agenda-overriding-header "REFILE"))) shows all items from that file. 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). I haven't seen this feature. Does a command exist that already supports this, or do I need to develop this myself? Thanks, -k. --089e012952ecc362ba04df56e799 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi,

I have a section of my custom agend= a that shows items synced through mobile-org. My mobile.org file has

#+FI= LETAGS: REFILE

Which means a custom agenda command of

(tags "REFILE" ((org-agenda-overriding-header "REFI= LE")))

shows all items from that fi= le.

Right now I have this at the bottom of my c= ustom 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= =3D=3D=3D=3D=3D, header "REFILE", and a blank line).

I haven't seen this feature. Does a com= mand exist that already supports this, or do I need to develop this myself?=

Thanks,

=A0 =A0-k.
--089e012952ecc362ba04df56e799-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Hide empty custom agenda sections Date: Thu, 27 Jun 2013 16:44:50 +0200 Message-ID: <87fvw3oarm.fsf@bzg.ath.cx> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58985) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UsDkR-0008QY-Gq for emacs-orgmode@gnu.org; Thu, 27 Jun 2013 11:04:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UsDkP-00023o-Fk for emacs-orgmode@gnu.org; Thu, 27 Jun 2013 11:04:35 -0400 Received: from mail-wi0-x236.google.com ([2a00:1450:400c:c05::236]:64570) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UsDkP-00023Y-9L for emacs-orgmode@gnu.org; Thu, 27 Jun 2013 11:04:33 -0400 Received: by mail-wi0-f182.google.com with SMTP id m6so733088wiv.3 for ; Thu, 27 Jun 2013 08:04:32 -0700 (PDT) In-Reply-To: (Ken Mankoff's message of "Mon, 17 Jun 2013 06:17:35 -0400") 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: Ken Mankoff Cc: Org-mode 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 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-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ken Mankoff Subject: Re: Hide empty custom agenda sections Date: Fri, 28 Jun 2013 12:34:58 -0400 Message-ID: References: <87fvw3oarm.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e0115e8e8a8263b04e03975cb Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54209) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UsbdU-0003H2-Rp for emacs-orgmode@gnu.org; Fri, 28 Jun 2013 12:35:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UsbdT-0001Kf-JJ for emacs-orgmode@gnu.org; Fri, 28 Jun 2013 12:35:00 -0400 Received: from mail-ob0-x22e.google.com ([2607:f8b0:4003:c01::22e]:44941) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UsbdT-0001KZ-Cb for emacs-orgmode@gnu.org; Fri, 28 Jun 2013 12:34:59 -0400 Received: by mail-ob0-f174.google.com with SMTP id wd20so2162718obb.33 for ; Fri, 28 Jun 2013 09:34:58 -0700 (PDT) In-Reply-To: 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: Org-mode --089e0115e8e8a8263b04e03975cb Content-Type: text/plain; charset=ISO-8859-1 So I tried adding a "(nil)" in the custom agenda section. If this were allowed (presumably ignored), I could write a function that returns nil unless there were items tagged REFILE, in which case it would return (tags "REFILE" ((org-agenda-overriding-header "REFILE"))) But having (nil) caused an error. I guess I could make the entire "My Custom Agenda" section be the output of a function, but that seems overly complex. -k. On Thu, Jun 27, 2013 at 11:18 AM, Ken Mankoff wrote: > 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 >> > > --089e0115e8e8a8263b04e03975cb Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
So I tried adding a "(nil)" in the custom agenda= section. If this were allowed (presumably ignored), I could write a functi= on that returns nil unless there were items tagged REFILE, in which case it= would return=A0

=A0 (tags "RE= FILE" ((org-agenda-overriding-header "REFILE")))
=

But having (nil) caused an error. I guess I could make= the entire "My Custom Agenda" section be the output of a functio= n, but that seems overly complex.=A0

=A0 -k.


On Thu, Jun 27, 2013 at 11:18 AM, Ken Mankoff <<= a href=3D"mailto:mankoff@gmail.com" target=3D"_blank">mankoff@gmail.com= > wrote:
Hi Bastien,

<= div>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 ar= e empty. Actually, I guess 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 "+SCHEDUL= ED<\"<tomorrow>\""=A0
=A0 =A0 (
=A0 =A0 =A0(org-agenda-= overriding-header "Scheduled Today")
=A0 =A0 =A0))
=A0 =A0 =A0 =A0 = =A0 (todo "INPROGRESS" ((org-agenda-overriding-header "In Pr= ogress")))
=A0 =A0 =A0 =A0 =A0 (todo "WAITING|VERIFY" ((org-agenda-over= riding-header "Waiting or Verify")))
=A0(agenda "" (
=A0 =A0 =A0(org-agenda-overriding-h= eader "Scheduled")
=A0 =A0 =A0(org-deadlin= e-warning-days 0)
= =A0 =A0 =A0))
=A0 =A0 =A0 =A0 =A0 (todo "SOMEDAY" (= (org-agenda-overriding-header "Someday")))
=A0(tags "REFILE&qu= ot; ((org-agenda-overriding-header "REFILE"))) =A0=A0
=A0) nil ("org.txt" "org.html" &quo= t;org.ics"))))



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

Ken Mankoff <mank= off@gmail.com> 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


--089e0115e8e8a8263b04e03975cb-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Hide empty custom agenda sections Date: Mon, 01 Jul 2013 15:38:58 +0200 Message-ID: <87d2r2flhp.fsf@bzg.ath.cx> References: <87fvw3oarm.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33110) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UteJr-00031c-Vx for emacs-orgmode@gnu.org; Mon, 01 Jul 2013 09:39:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UteJq-0006x2-BK for emacs-orgmode@gnu.org; Mon, 01 Jul 2013 09:39:03 -0400 Received: from mail-wg0-x229.google.com ([2a00:1450:400c:c00::229]:63408) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UteJq-0006wl-6g for emacs-orgmode@gnu.org; Mon, 01 Jul 2013 09:39:02 -0400 Received: by mail-wg0-f41.google.com with SMTP id y10so3601058wgg.0 for ; Mon, 01 Jul 2013 06:39:01 -0700 (PDT) In-Reply-To: (Ken Mankoff's message of "Thu, 27 Jun 2013 11:18:39 -0400") 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: Ken Mankoff Cc: Org-mode Hi Ken, Ken Mankoff writes: > 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. I gave another quick look but this would be too complex to implement, even if I agree this would be nice to have. -- Bastien From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ken Mankoff Subject: Re: Hide empty custom agenda sections Date: Mon, 1 Jul 2013 10:38:19 -0400 Message-ID: References: <87fvw3oarm.fsf@bzg.ath.cx> <87d2r2flhp.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e015381bcfd535604e0742da6 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52851) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UtfFG-0007L0-8H for emacs-orgmode@gnu.org; Mon, 01 Jul 2013 10:38:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UtfFE-00051I-ER for emacs-orgmode@gnu.org; Mon, 01 Jul 2013 10:38:22 -0400 In-Reply-To: <87d2r2flhp.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 --089e015381bcfd535604e0742da6 Content-Type: text/plain; charset=ISO-8859-1 On Mon, Jul 1, 2013 at 9:38 AM, Bastien wrote: > > > I gave another quick look but this would be too complex to implement, > even if I agree this would be nice to have. > > Ok. Oh well. Thank you for considering and replying. -k. --089e015381bcfd535604e0742da6 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable



On Mon, Jul 1, 2013 at 9:38 AM, Bastien <bzg@gnu.org> wrot= e:

I gave another quick look but this would be too= complex to implement,
even if I agree this would be nice to have.


Ok. Oh well. Thank you for considering and rep= lying.=A0

=A0 =A0-k.=A0
--089e015381bcfd535604e0742da6--