"Christopher M. Miles" <[email protected]> writes:

> I tried your steps to reproduce the issue three times, confirmed can't
> see buffer local tags in completions.
>
> Here is my steps:
>
> ...
> #+begin_src org :tangle "/tmp/bug.org"
> ,* headline 1 :tag1:workflow:
>
> ,* headline 2 :tag2:name:
>
> ,* headline 3
>
> #+end_src
>
> 4. switch to "bug.org" buffer, then press [C-c C-q] to set tags. Can't see 
> the buffer local tags.

This is actually expected.
If you read 6.2 Setting Tags section of the manual, you will see that
#+TAGS and org-tag-alist/org-tag-persistent-alist override dynamic tag
completion:

       Org supports tag insertion based on a _list of tags_.  By default
    this list is constructed dynamically, containing all tags currently used
    in the buffer(1).  You may also globally specify a hard list of tags
    with the variable ‘org-tag-alist’.  Finally you can set the default tags
    for a given file using the ‘TAGS’ keyword, like
    
         #+TAGS: @work @home @tennisclub
         #+TAGS: laptop car pc sailboat
    
       If you have globally defined your preferred set of tags using the
    variable ‘org-tag-alist’, but would like to use a dynamic tag list in a
    specific file, add an empty ‘TAGS’ keyword to that file:
    
         #+TAGS:

I suspect that the main purpose of such override is fast selection
interface, but I am not sure.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>

Reply via email to