Timothy <tecos...@gmail.com> writes:
Ah, right — that looks sensible. I think we should probably note
that in a
comment somewhere,
Yes, a comment is warranted.
I'll address minor issues like this once a solution is agreed
upon.
or perhaps construct the regexp with `rx' so it’s actually using
`org-tag-re'?
Unfortunately I don't think it's that simple.
They are very similar regexps, but I don't think we can just plug
`org-tag-re'
into an rx form and have it work. A direct comparison:
org-tag-re => "[[:alnum:]_@#%]+"
org-tag-crm-separator => "[^[:alnum:]_@#%]"
This is brittle, but we could define `org-tag-crm-separator' in
terms of `org-tag-re' like so:
(defvar org-tag-crm-separator (concat "[^" (substring org-tag-re 1
-1))))