org.el (org-agenda-prepare-buffers): Avoid duplicates in `org-tag-alist-for-agenda' correctly

* org.el (org-agenda-prepare-buffers): Avoid duplicates in
`org-tag-alist-for-agenda' correctly.

Thanks to Viktor Rosenfeld for debugging this.
This commit is contained in:
Bastien Guerry 2013-04-24 15:43:33 +02:00
parent 253b65c091
commit 778c812535
1 changed files with 2 additions and 3 deletions

View 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