[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[emacs-wiki-discuss] Link and date fields unset in task info
From: |
Andrew J. Korty |
Subject: |
[emacs-wiki-discuss] Link and date fields unset in task info |
Date: |
Sat, 27 Nov 2004 16:50:37 -0500 |
User-agent: |
Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (darwin) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
At some point (sorry for my Arch incompetence) the following change
was made to planner.el:
,----
| @@ -1277,7 +1448,9 @@
| (setq description (replace-match "" t t description)))
| ((string-match "\\s-+$" description)
| (setq description (replace-match "" t t description))))
| - (and link (setq link (planner-link-base link)))
| + (when link
| + (setq link (and (string-match emacs-wiki-name-regexp link-text)
| + (planner-link-base link-text))))
| (unless (planner-local-page-p link) (setq link nil))
| (if (string-match planner-date-regexp page-name)
| ;; We're on a date page, so the link page (if any) should be the
`----
When the link is just a date (which wouldn't match
emacs-wiki-name-regexp), this code seems to set link to nil. Hence,
later on, the date field also gets set to nil.
It could be fixed by making the string-match part of the when
conditional or by also doing a string-match against
planner-date-regexp. I'm not sure which is the best way.
- --
Andrew J. Korty, Principal Security Engineer, GCIA, GCFA
Office of the Vice President for Information Technology
Indiana University
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (Darwin)
iD8DBQFBqPax8gM8+Mr5peERArEPAKCEmLOTVgxIYTCYgr/1nAvbwPcUnQCgwymx
w3o4JovpNbGMtUasznkDoJc=
=Cunm
-----END PGP SIGNATURE-----
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [emacs-wiki-discuss] Link and date fields unset in task info,
Andrew J. Korty <=