diff options
author | Nicolas Goaziou <n.goaziou@gmail.com> | 2014-05-24 15:38:52 +0200 |
---|---|---|
committer | Nicolas Goaziou <n.goaziou@gmail.com> | 2014-05-25 23:33:17 +0200 |
commit | fdb40fbe018cd5b857dd1b22b8f21b1bdf7210df (patch) | |
tree | c3101cd7a1eebf08e608a84ba70b24ee4de2e0e8 | |
parent | abe931dca9c4c634fe9495eff7579ca952eb8b98 (diff) | |
download | org-mode-fdb40fbe018cd5b857dd1b22b8f21b1bdf7210df.tar.gz |
org-agenda: Tiny fix
* lisp/org-agenda.el (org-agenda-format-item): Check if string isn't
empty before searching for text properties.
-rw-r--r-- | lisp/org-agenda.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index 20ecb0c..8c39bc5 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 |