From fdb40fbe018cd5b857dd1b22b8f21b1bdf7210df Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Sat, 24 May 2014 15:38:52 +0200 Subject: [PATCH] org-agenda: Tiny fix * lisp/org-agenda.el (org-agenda-format-item): Check if string isn't empty before searching for text properties. --- lisp/org-agenda.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index 20ecb0c3e..8c39bc54a 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -6443,7 +6443,8 @@ Any match of REMOVE-RE will be removed from TXT." (category-icon (if category-icon (propertize " " 'display category-icon) "")) - (effort (get-text-property 1 'effort txt)) + (effort (and (not (string= txt "")) + (get-text-property 1 'effort txt))) ;; time, tag, effort are needed for the eval of the prefix format (tag (if tags (nth (1- (length tags)) tags) "")) time