"Christopher M. Miles" <[email protected]> writes: >> So, what steps did you take to reproduce? > > Reproduce steps: > 1. cd path/to/org-mode/ > 2. make vanilla > 3. open Org file > > #+begin_src org > #+TAGS: demo1 demo2 > > * headline 1 :test1: > > ** headline 2 :test2: > > *** headline 3 > > #+begin_src elisp :eval yes > (org-get-buffer-tags) > #+end_src > > #+RESULTS: > | test2 | > | test1 | > #+end_src > > 4. put point on "headline 3", press [C-c C-q], Emacs only shows "demo1, > demo2". But not including tags "test1, test2".
What you report is expected. We have discussed this earlier in this thread, where I pointed that non-empty #+TAGS: line in Org file intentionally limits completion to those tags. >From https://list.orgmode.org/orgmode/87ttjuq2oy.fsf@localhost/ >>>>> 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: -- Ihor Radchenko // yantar92, Org mode maintainer, 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>
