org-agenda: convert category to string
* org-agenda.el (org-format-agenda-item): Convert category to a string if it is a symbol. This fixes the following call to org-agenda-get-category-icon which fails if category is not a string. Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
143292aab5
commit
3061c7083d
|
@ -5044,7 +5044,9 @@ Any match of REMOVE-RE will be removed from TXT."
|
||||||
org-agenda-show-inherited-tags
|
org-agenda-show-inherited-tags
|
||||||
org-agenda-hide-tags-regexp))
|
org-agenda-hide-tags-regexp))
|
||||||
(let* ((category (or category
|
(let* ((category (or category
|
||||||
org-category
|
(if (stringp org-category)
|
||||||
|
org-category
|
||||||
|
(symbol-name org-category))
|
||||||
(if buffer-file-name
|
(if buffer-file-name
|
||||||
(file-name-sans-extension
|
(file-name-sans-extension
|
||||||
(file-name-nondirectory buffer-file-name))
|
(file-name-nondirectory buffer-file-name))
|
||||||
|
|
Loading…
Reference in New Issue