-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#+FILETAGS are ignored by tags-inherited #55
Comments
Thanks for reporting this. When I wrote the new tags code, I neglected to consider file tags (I hardly use them myself). It shouldn't take too much work to support them. |
Honestly I am using them very rarely too, I have only one file with only one file tag, so it took some time before I noticed something strange. I think I just need to find a proper regexp string for filetags and add them to tags-inhereted, and that is all. There is also caching system, I am not sure is there are anything I should about it? Anyway, if you don't mind, I can prepare a patch for this. It is a nice opportunity for me to learn a bit more about emacs lisp. :-) But I can't promise any ETA. |
I would start with this:
|
Fixes #55. Closes #57. Thanks to Mikhail Skorzhinskiy (@mskorzhinskiy).
@mskorzhinskiy Please test this commit and ensure it fixes the problem for you: 1330fff. The tests seem to indicate that it does, but I'd like confirmation from you to be sure. When you confirm, I'll merge to As you can see, I used a different approach in the code: simply, when at a top-level heading, return Most of the changes in the branch are to the test infrastructure to allow testing of file tags without invalidating existing tests or including file tags in their results. Thanks for your help with this issue. |
I've tried to run it on my data set and I didn't see any regressions. |
Don't worry about running the test suite. I'd just like to confirm that file tags are correctly inherited for you now. Can you test that manually? |
Eh, sorry. What I really meant by saying I didn't see any regressions is that I just tried to run it manually on my data set and with your patch everything works as I would expect. |
Great, thank you. |
Fixes #55. Closes #57. Thanks to Mikhail Skorzhinskiy (@mskorzhinskiy).
I've tried several styles to specify filetags, unfortunately none of them are working. Example file:
Inheritance from headline works OK:
And none of the filetags are matched:
The text was updated successfully, but these errors were encountered: