emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: James Harkins <jamshark70@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Year or Month Agenda view without empty days
Date: Sun, 15 Jul 2012 16:10:50 -0400	[thread overview]
Message-ID: <87vcho6b05.wl%jamshark70@dewdrop-world.net> (raw)
In-Reply-To: <87y5ml56ac.wl%jamshark70@dewdrop-world.net>

At Sun, 15 Jul 2012 12:38:03 -0400,
James Harkins wrote:
> So I would like to have this agenda view include only days with items in them:
> 
> Month-agenda (W28-W33):
> Thursday   19 July 2012
>   agenda_main:12:00...... Scheduled:  Sushi then Blueberry fest       :Trip2012::

Idea: I guess I can use org-finalize-agenda-hook.

The function would be something like (pseudocode):

(if (the buffer's first word is "month" or "year")
   (do a regexp-replace changing

^\(\(Sun\|Mond\|Tue\|Wed\|Thu\|Fri\|Sat\).*
\)*\(Sun\|Mond\|Tue\|Wed\|Thu\|Fri\|Sat\)

to

\3

))

Maybe I'm barking up the wrong tree -- if so, somebody stop me :) -- but it seems pretty straightforward, apart from learning enough emacs-lisp functions to do this. That shouldn't be too much time, but not today (other problems to beat my head against).

I'll write back if I get stuck.

James


--
James Harkins /// dewdrop world
jamshark70@dewdrop-world.net
http://www.dewdrop-world.net

"Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal."  -- Whitman

blog: http://www.dewdrop-world.net/words
audio clips: http://www.dewdrop-world.net/audio
more audio: http://soundcloud.com/dewdrop_world/tracks

  reply	other threads:[~2012-07-15 20:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-15 16:38 Year or Month Agenda view without empty days James Harkins
2012-07-15 20:10 ` James Harkins [this message]
2012-07-16  9:31 ` François Allisson

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=87vcho6b05.wl%jamshark70@dewdrop-world.net \
    --to=jamshark70@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).