>> With commit fbe56f89f75a8979e0ba48001a822518df2c66fe, the function >> org-get-tags incorrectly removes uninherited tags from the list of tags >> it returns, *even if* they are local tags. >> >> Expected behavior: org-get-tags should always return local tags, >> regardless of whether they are excluded from inheritance. The variable >> org-tags-exclude-from-inheritance should only apply to tags in parent >> heading or to file tags. >> >> Actual behavior: if a local tag is in org-tags-exclude-from-inheritance, >> org-get-tags will not return it. >> >> I've attached a patch that fixes the issue. > > You're right. Thank you. > > Could you add a regression test for this and push the change? > Hi Nicolas, Sorry for the delay. I finally had time to improve this fix (my first fix caused another regression) and add a regression test. At the moment, I don't have push rights to the Org Mode repo, so I'm attaching the patch here. Best, Matt