logo       

Link and date fields unset in task info: msg#00150

emacs.wiki.general

Subject: Link and date fields unset in task info

-----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>
Google Custom Search

News | FAQ | advertise