org-agenda: Fix category string for agenda
commit2ac751a6cb5db00167cd3b0d100b0dfa2ba048da
authorMatt Lundin <mdl@imapmail.org>
Fri, 3 Dec 2010 00:37:54 +0000 (3 00:37 +0000)
committerCarsten Dominik <carsten.dominik@gmail.com>
Fri, 3 Dec 2010 08:13:11 +0000 (3 09:13 +0100)
tree5d3f649e134e1e2c653816a5ac90423a32b9ee4d
parentcfd7d07adc28198c73a10bf8d4c71e1d6d0e9bb8
org-agenda: Fix category string for agenda

* lisp/org-agenda.el: (org-format-agenda-item) The value of
org-category is not converted to a string unless it is defined.

This fixes commit 3061c7083d8caa849cf2d3f2f53b8b71d45dd6de, which
resulted in org-format-agenda-item always returning the symbol-name for
org-category even if it was not defined. I.e., in some instances,
org-format-agenda-item returned the string "nil", thus bypassing the
buffer-file-name method of deriving the category.
lisp/org-agenda.el