[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[emacs-wiki-discuss] Re: Schedule, Diary and Planner
From: |
Edgar Gonçalves |
Subject: |
[emacs-wiki-discuss] Re: Schedule, Diary and Planner |
Date: |
Tue, 07 Jun 2005 03:55:18 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 |
Yesterday evening, Michael Olson wrote:
> address@hidden (Edgar Gonçalves) writes:
>
>> I'm sorry if this is topic is already discussed, but could anyone tell me
>> what's the proper (intended) usage of a diary and/or schedule section in a
>> planner page?
>
> It's mostly used for viewing your diary quickly from within a Planner buffer.
> The diary section doesn't publish well by default.
That's what I thought. Though things were messy in my mind because of my
appointments. But all is fine, now that I know if planner-appt.el :) I love it!
>
>> In my schedule, I have planner-diary to put my entry for a few days, like
>> Wednesday, June 8, 2005 ----------------------- 09:30-11:00 PPADNI (T) FA3
>> (LeicIst) 15:00-15:40 Pool (LeicIst)
>> but this ends up with an horrible html formatting, withouth linebreaks, etc,
>> etc. Could anyone point me to some info on this matter?
>
> Try adding something like the following to your planner settings file (.emacs
> or
> whatever).
>
> (defun planner-diary-insert-diary (&optional force) "Insert the fancy diary
> for
> the day into the day plan file. If FORCE is non-nil, insert a diary section
> even if there is no `planner-diary-string' in the buffer." (interactive "P")
> ;;
> sanity check (let ((date (planner-diary-get-name))) (unless (string-match
> planner-date-regexp date) (error "Cannot insert diary in this buffer"))
> (planner-diary-update-section date ; file planner-diary-string ; title (concat
> "<example>\n" (planner-diary-get-diary-entries ; text
> (planner-filename-to-calendar-date ; date date) planner-diary-number-of-days
> planner-diary-file) "\n</example>") force)))
>
> This is nearly the same as the version of `planner-diary-insert-diary' that is
> found in planner-diary.el, with the exception that it surrounds the diary text
> with "<example>" and "</example>". This should cause the newlines to be
> preserved during publishing and make the columns line up.
>
> Hopefully this helps; I haven't tested it myself.
This was similar to the solution I came across a couple of hours ago, but I'm
not fully happy with it. Despite doing what I want, it fills my planner-config
file with redefined functions, wich must be checked on every planner update...
It'll do, for now. But I think the diary and the wiki publishing are too
entangled, I have to think of a way to make my calendar/plan-day-pages
integration smooth, as well as my plan-publishing/private-schedule...
Thanks anyway!
--
Edgar Gonçalves
Software Engineering Group @ INESC-ID
Portugal
- [emacs-wiki-discuss] Schedule, Diary and Planner, Edgar Gonçalves, 2005/06/06
- Re: [emacs-wiki-discuss] Schedule, Diary and Planner, Chris McMahan, 2005/06/06
- Re: [emacs-wiki-discuss] Schedule, Diary and Planner, Chris McMahan, 2005/06/06
- [emacs-wiki-discuss] Re: Schedule, Diary and Planner, Michael Olson, 2005/06/06
- [emacs-wiki-discuss] Re: Schedule, Diary and Planner,
Edgar Gonçalves <=
- [emacs-wiki-discuss] Re: Schedule, Diary and Planner, Sacha Chua, 2005/06/07