diff options
author | Bastien Guerry <bzg@altern.org> | 2013-01-06 09:20:30 +0100 |
---|---|---|
committer | Bastien Guerry <bzg@altern.org> | 2013-01-06 09:20:30 +0100 |
commit | 806a141f1e39b4f8523cdfa0b0cebccc30491552 (patch) | |
tree | ec6b5894e461699507d8ff5f283bfcb1b570d910 | |
parent | cd00d36ca2872b746a8ee1e749658eda0aa8711a (diff) | |
download | org-mode-806a141f1e39b4f8523cdfa0b0cebccc30491552.tar.gz |
org-agenda.el (org-agenda-finalize): Don't try to align tags when there are no tags
* org-agenda.el (org-agenda-finalize): Don't try to align tags
when there are no tags.
-rw-r--r-- | 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 a9e7a7a..2468a9b 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -3522,7 +3522,9 @@ generating a new one." (while (org-activate-plain-links (point-max)) (add-text-properties (match-beginning 0) (match-end 0) '(face org-link)))) - (org-agenda-align-tags) + (when (cadr (assoc 'org-prefix-has-tag + (car org-prefix-format-compiled))) + (org-agenda-align-tags)) (unless org-agenda-with-colors (remove-text-properties (point-min) (point-max) '(face nil)))) (if (and (boundp 'org-agenda-overriding-columns-format) |