diff options
author | Bastien Guerry <bzg@altern.org> | 2013-01-06 09:14:54 +0100 |
---|---|---|
committer | Bastien Guerry <bzg@altern.org> | 2013-01-06 09:14:54 +0100 |
commit | cd00d36ca2872b746a8ee1e749658eda0aa8711a (patch) | |
tree | 45034ab391873def156ca8ebe7ae971d4dcaadde | |
parent | f1191b86e377538b58f94fba79075621b5858803 (diff) | |
download | org-mode-cd00d36ca2872b746a8ee1e749658eda0aa8711a.tar.gz |
org-agenda.el (org-agenda-finalize): Only try to draw the habit consistency graph when there is a habit in the buffer
* org-agenda.el (org-agenda-finalize): Only try to draw the
habit consistency graph when there is a habit in the buffer.
-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 a3bf996..a9e7a7a 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -3545,7 +3545,8 @@ generating a new one." (when org-agenda-entry-text-mode (org-agenda-entry-text-hide) (org-agenda-entry-text-show)) - (if (functionp 'org-habit-insert-consistency-graphs) + (if (and (functionp 'org-habit-insert-consistency-graphs) + (save-excursion (next-single-property-change (point-min) 'org-habit-p))) (org-habit-insert-consistency-graphs)) (let ((inhibit-read-only t)) (run-hooks 'org-agenda-finalize-hook)) |