all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Arun Persaud <apersaud@lbl.gov>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: feature request for empty blocks in customized agenda
Date: Sat, 13 Jun 2015 13:11:57 -0700	[thread overview]
Message-ID: <557C8E8D.9020400@lbl.gov> (raw)

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

             reply	other threads:[~2015-06-13 20:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-13 20:11 Arun Persaud [this message]
2015-06-13 23:00 ` feature request for empty blocks in customized agenda Kyle Meyer
2015-06-13 23:57   ` Arun Persaud

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

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

  git send-email \
    --in-reply-to=557C8E8D.9020400@lbl.gov \
    --to=apersaud@lbl.gov \
    --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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.