From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arun Persaud Subject: feature request for empty blocks in customized agenda Date: Sat, 13 Jun 2015 13:11:57 -0700 Message-ID: <557C8E8D.9020400@lbl.gov> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44318) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z3rmg-0007mx-9N for emacs-orgmode@gnu.org; Sat, 13 Jun 2015 16:12:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z3rmd-0002WH-36 for emacs-orgmode@gnu.org; Sat, 13 Jun 2015 16:12:06 -0400 Received: from fe1.lbl.gov ([128.3.41.133]:37441) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z3rmc-0002VP-Td for emacs-orgmode@gnu.org; Sat, 13 Jun 2015 16:12:03 -0400 Received: by pdjm12 with SMTP id m12so44810418pdj.3 for ; Sat, 13 Jun 2015 13:12:00 -0700 (PDT) Received: from ?IPv6:2602:306:bd9b:d540:be5f:f4ff:fe1c:eade? ([2602:306:bd9b:d540:be5f:f4ff:fe1c:eade]) by mx.google.com with ESMTPSA id wa4sm7473579pab.17.2015.06.13.13.11.58 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 13 Jun 2015 13:11:59 -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 Hi I just started using a customized agenda with many blocks and some of my blocks are often empty. However, org-mode still insert the header and the separator between blocks. Is there a way to skip empty blocks completely? I had a quick look at org-agenda.el and it seems that it directly inserts text, e.g. the header, into the buffer, before it even knows how many items it added. I guess one could remember point at the beginning, count the items inserted and if that's 0, delete backwards to the saved point? My elisp knowledge is probably not good enough to add this though and it also seems one would have to add it at different location (org-agenda-list, org-agenda-todo, etc). I also checked org-agenda-compact-blocks, but that removes the separator from all blocks, which is not what I want. Any chance to get something like this added? Thanks Arun