org.el (org-agenda-prepare-buffers): Avoid duplicates in `org-tag-alist-for-agenda...
authorBastien Guerry <bzg@altern.org>
Wed, 24 Apr 2013 13:43:33 +0000 (15:43 +0200)
committerBastien Guerry <bzg@altern.org>
Wed, 24 Apr 2013 13:43:33 +0000 (15:43 +0200)
* org.el (org-agenda-prepare-buffers): Avoid duplicates in
`org-tag-alist-for-agenda' correctly.

Thanks to Viktor Rosenfeld for debugging this.

lisp/org.el

index 5e5a07b..1c9e9df 100644 (file)
@@ -17984,9 +17984,8 @@ When a buffer is unmodified, it is just killed.  When modified, it is saved
                  (append org-todo-keyword-alist-for-agenda org-todo-key-alist))
            (setq org-drawers-for-agenda
                  (append org-drawers-for-agenda org-drawers))
-           (unless (equal org-tag-alist-for-agenda org-tag-alist)
-             (setq org-tag-alist-for-agenda
-                   (append org-tag-alist-for-agenda org-tag-alist)))
+           (setq org-tag-alist-for-agenda
+                 (org-uniquify (append org-tag-alist-for-agenda org-tag-alist)))
            (if org-group-tags
                (setq org-tag-groups-alist-for-agenda
                      (org-uniquify-alist