emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] [PATCH] org-agenda: convert category to string


From: Julien Danjou
Subject: [Orgmode] [PATCH] org-agenda: convert category to string
Date: Wed, 24 Nov 2010 21:02:12 +0100

* 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 <address@hidden>
---
 lisp/org-agenda.el |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index a248068..638629d 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -5044,7 +5044,9 @@ Any match of REMOVE-RE will be removed from TXT."
               org-agenda-show-inherited-tags
               org-agenda-hide-tags-regexp))
     (let* ((category (or category
-                        org-category
+                        (if (stringp org-category)
+                            org-category
+                          (symbol-name org-category))
                         (if buffer-file-name
                             (file-name-sans-extension
                              (file-name-nondirectory buffer-file-name))
-- 
1.7.2.3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]