From d31eb4cce9f80b95aeff7a7ac766f266f2cc0e66 Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Tue, 6 Jan 2009 16:31:30 +0100 Subject: [PATCH] Agenda: Fix bug with column view Column view could fail when the agenda contains entries from the Diary which start with a *. This commit fixes this problems by making `org-entry-properties' check for an org-mode buffer. --- lisp/org.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index 3edf5d4c2..478d7b38f 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -10291,7 +10291,9 @@ If WHICH is nil or `all', get all properties. If WHICH is (excluded '("TODO" "TAGS" "ALLTAGS" "PRIORITY")) beg end range props sum-props key value string clocksum) (save-excursion - (when (condition-case nil (org-back-to-heading t) (error nil)) + (when (condition-case nil + (and (org-mode-p) (org-back-to-heading t)) + (error nil)) (setq beg (point)) (setq sum-props (get-text-property (point) 'org-summaries)) (setq clocksum (get-text-property (point) :org-clock-minutes))