emacs-wiki-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[emacs-wiki-discuss] Filtered diary entries Re: It works!


From: Sacha Chua
Subject: [emacs-wiki-discuss] Filtered diary entries Re: It works!
Date: Thu, 25 Mar 2004 18:51:33 +0800
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux)

dto sent this in. =)

David O'Toole <address@hidden> writes:

> Hey Sacha... I'm still having trouble posting to the list, but I
> thought you should see my successful experiment. Can you post this to
> emacs-wiki-discuss for me?
>
>
> from my ~/.emacs:
> -----------------
> (defun dto-planner-diary-include (my-diary &optional no-of-days)
>   "Include diary entries from MY-DIARY optionally for NO-OF-DAYS."
>   (let ((diary-file my-diary)
>       (diary-list-include-blanks nil)
>       (planner-diary-number-of-diary-entries (or no-of-days 1)))
>     (planner-diary-get-diary-entries (planner-filename-to-calendar-date 
> (planner-today)))))
> -----------------
>
>
>
> from my ~/diary:
> -----------------
> #include "diary.KenLevine"
> -----------------
>
>
>
> and from his Wiki page:
> -----------------
> * Appointments 
>
> <pre>
> <lisp>(dto-planner-diary-include "~/diary.KenLevine" 7)</lisp>
> </pre>
> -----------------
>
>
> This works. His HTML page has a week-at-a-glance of his appointments
> (but not mine!). My planner day pages include his appointments (I
> wonder if there is any way to display which file an appointment comes
> from?). 
>
> I called it "Appointments" because I don't want his planner page to
> have a Diary section (I use planner-diary-insinuate but don't want it
> to work like that here.) 
>
> I notice there is some trouble with emacs-wiki publishing of diary
> entries---even when using planner-diary-insinuate. They all run
> together on one line unless wrapped with <pre>. How would I go about
> improving this?
>
> But when you use multiple days (as in my <lisp> example above) the
> paragraphs are too far apart on the HTML page. it's putting <p> tags
> in there.
>
> I will keep working on it.
>
>
>
> -- 
> David O'Toole
> Office Manager, Irrational Games
> office 617.269.0424 x335
> mobile 617.335.0789
> address@hidden
>

-- 
Sacha Chua <address@hidden> - Ateneo CS faculty geekette
interests: emacs, gnu/linux, making computer science education fun
http://sacha.free.net.ph/ - PGP Key ID: BE2D08EC




reply via email to

[Prev in Thread] Current Thread [Next in Thread]