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

promoting/demoting orgmode header doesn't update imenu-list #46

Open
VladimirAlexiev opened this issue Feb 23, 2019 · 3 comments
Open
Labels

Comments

@VladimirAlexiev
Copy link

The following actions on orgmode headers are reflected in ilist immediately:

  • add/delete heading
  • move heading up/down

But the following is not reflected:

  • promote/demote heading (i.e. move heading left/right)

imenu-list ;; Version: 0.8

@VladimirAlexiev
Copy link
Author

@bmag thanks for this package that is immensely useful for large files or docs! How did I not know about it until now?

@bmag
Copy link
Owner

bmag commented Mar 5, 2019

Thanks for the report, I can confirm the bug.

imenu-list tries to update the index only if the cursor has moved since the last update (see imenu-list-update), but for some reason in the scenario of promoting/demoting a heading imenu-list thinks that the cursor didn't move (location and imenu-list--last-location are equal). I'm not sure when I'll have time to debug and fix this, so I'm leaving it as a known issue for now.

@bmag bmag added the bug label Mar 5, 2019
@VladimirAlexiev
Copy link
Author

VladimirAlexiev commented Mar 7, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants