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

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

[emacs-wiki-discuss] Re: Planner Dates in ISO8601 format


From: Sacha Chua
Subject: [emacs-wiki-discuss] Re: Planner Dates in ISO8601 format
Date: Sat, 28 May 2005 20:56:17 +0800
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux)

Trent Buck <address@hidden> writes:

> I'd like to have planner dates in 8601 format.  That is, "2005-05-28" instead
> of "2005.05.28".

Theoretically this shouldn't be too difficult to do, although the
changes are pretty extensive. Hmmm. Does anyone want to gain good
karma and better understanding of the planner source code?

This is a perfect opportunity to try out tla. You can tag the current
tree, modify planner.el, and ask questions if you get stuck. It would
be a very fun exercise for even a Lisp newbie, and a great way to
experiment with Planner to see how you can modify it to suit your
behavior. (Not recommended for people with homework.)

Here's how you can gradually switch it over:

- Fix planner-name-regexp and planner-date-regexp.
  Check if the new dates properly highlight.
  
- Get planner-filename-to-calendar-date and planner-date-to-filename to do the 
right thing.
  You can test this with M-:.
  
- Get planner-expand-name to do the right thing. Currently it expands
  partial dates of the form mm.dd, which is why there's a really odd
  regular expression in there. Look for \\. and replace it with \\-
  wherever it makes sense. Again, you can test this with M-:.

Tada! That fixes basic planner.el functionality. Then you just need to
check the modules you use to see if they have a hard-coded date
regular expression.

Plus points if you make it backward-compatible!

(Sorry about the delay!)

-- 
Sacha Chua <address@hidden> - open source geekette
http://sacha.free.net.ph/ - PGP Key ID: 0xE7FDF77C
interests: emacs, gnu/linux, personal information management, CS ed
sachac on irc.freenode.net#emacs . YM: sachachua83




reply via email to

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