Factorize tags parsing
commit74d3bd484fc0c79fd51302922c0eee8c3042fe14
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Sun, 17 Apr 2016 15:00:14 +0000 (17 17:00 +0200)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Mon, 18 Apr 2016 15:40:15 +0000 (18 17:40 +0200)
tree29a755cc04cb6a793ba2dc4d7572b4998fd0b3f1
parentd87158ba2a568758856638540f61394763d2e9c9
Factorize tags parsing

* lisp/org.el (org-tag-string-to-alist):
(org-tag-alist-to-string):
(org-tag-alist-to-groups): New functions.
(org-set-regexps-and-options): Use new functions.

(org--setup-process-tags): Remove function.

(org--setup-collect-keywords): Return tag groups as a string instead of
a list so as to be compatible with new functions.

* lisp/org-mobile.el (org-mobile-create-index-file): Use new functions.

* lisp/org-pcomplete.el (pcomplete/org-mode/file-option/tags): Use new
  functions.
(pcomplete/org-mode/tag): Small refactoring.

* testing/lisp/test-org.el (test-org/tag-string-to-alist):
(test-org/tag-alist-to-string):
(test-org/tag-alist-to-groups): New tests.
lisp/org-mobile.el
lisp/org-pcomplete.el
lisp/org.el
testing/lisp/test-org.el