Skip to content
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

counsel-org-tag fails with inherited tags: "Tag alignment failed" #1896

Closed
hpdeifel opened this issue Jan 18, 2019 · 2 comments

Comments

@hpdeifel
Copy link

commented Jan 18, 2019

Given the following org-mode file with org-use-tag-inheritance:

* Test1                                                                 :foo:
** Test2

Putting point on the Test2 headline and invoking counsel-org-tag, it shows "(foo)" as the previous tag for this headline. Trying to add a new tag subsequently fails with "Tag alignment failed", because counsel-org-change-tags doesn't find the regex for ":foo:" on the current line.

It works fine without inherited tags.

This is probably due to a change in Org mode version 9.2:

Function org-get-tags used to return local tags to the current headline. It now returns all the inherited tags in addition to the local tags. In order to get the old behaviour back, you can use:

(org-get-tags nil t)


counsel: Commit 201c5d7
Emacs: GNU Emacs 26.1
Org: Org mode version 9.2 (9.2-elpaplus @ /somewhere/elpa/org-plus-contrib-20181230/)

@abo-abo abo-abo closed this in 2b4605e Jan 22, 2019

@abo-abo

This comment has been minimized.

Copy link
Owner

commented Jan 22, 2019

Thanks, please test.

@hpdeifel

This comment has been minimized.

Copy link
Author

commented Jan 23, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.