planner-timeclock-summary-proj bug & fix

Marko Schütz <[email protected]> Thu, 17 Aug 2006 12:12:09 +1200
Newsgroups gmane.emacs.wiki.general
Message-ID <874pwc8bl2.wl%[email protected]>
--===============0279145656==
Content-Type: multipart/signed;
	boundary="pgp-sign-Multipart_Thu_Aug_17_12:12:09_2006-1";
	micalg=pgp-sha1; protocol="application/pgp-signature"
Content-Transfer-Encoding: 7bit

--pgp-sign-Multipart_Thu_Aug_17_12:12:09_2006-1
Content-Type: text/plain; charset=US-ASCII

Dear All,

I noticed a tiny bug in planner-timeclock-summary-proj.el where
a string-match failed if timeclock entries had no 'ProjectName:'.

I suggest the following fix:

*** /usr/pkg/share/emacs/site-lisp/planner/planner-timeclock-summary-proj.el    Thu Apr 27 17:28:24 2006
--- /home/marko/tmp/planner-timeclock-summary-proj.el   Thu Aug 17 11:53:10 2006
***************
*** 192,198 ****
        (while entry-list
          (let* ((proj (car entry-list))
                 (proj-entry-name (car proj)))
!           (if (and proj-name
                     (string-match (concat "^\\[\\[" proj-name "\\]\\]")
                                   proj-entry-name))
                (if projects
--- 192,198 ----
        (while entry-list
          (let* ((proj (car entry-list))
                 (proj-entry-name (car proj)))
!           (if (and proj-name proj-entry-name
                     (string-match (concat "^\\[\\[" proj-name "\\]\\]")
                                   proj-entry-name))
                (if projects

Best regards,

Marko
--pgp-sign-Multipart_Thu_Aug_17_12:12:09_2006-1
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (NetBSD)

iD8DBQBE47RZD04PgKGR9CoRAtSTAJ9NdhuMmAIGxvFDkyyuLWF8gcbWKACeIFYe
tpDYY2fBWWtUNNbOSqEPSbA=
=+RTo
-----END PGP SIGNATURE-----

--pgp-sign-Multipart_Thu_Aug_17_12:12:09_2006-1--



--===============0279145656==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
emacs-wiki-discuss mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/emacs-wiki-discuss

--===============0279145656==--