org.el: Ensure `org-drawers' doesn't contain duplicates.

* org.el (org-set-regexps-and-options): Ensure `org-drawers'
doesn't contain duplicates.

Thanks to Achim Gratz for spotting this problem.
This commit is contained in:
Bastien Guerry 2012-01-29 10:47:16 +01:00
parent 1c8eb5cc96
commit 9706566dbd
1 changed files with 1 additions and 1 deletions

View File

@ -4547,7 +4547,7 @@ but the stars and the body are.")
(mapcar (lambda (x) (org-split-string x ":"))
(org-split-string value)))))))
((equal key "DRAWERS")
(setq drawers (append org-drawers (org-split-string value splitre))))
(setq drawers (delete-dups (append org-drawers (org-split-string value splitre)))))
((equal key "CONSTANTS")
(setq const (append const (org-split-string value splitre))))
((equal key "STARTUP")