Townk / org-ol-tree

An Org mode outline window that does not use indirect buffers
MIT License
80 stars 4 forks source link

error: failed to define function org-ol-tree/display-sections #11

Closed mediapathic closed 3 years ago

mediapathic commented 3 years ago

Since the latest-but-one update, whenever I try to run org-ol-tree I get

apply: Autoloading file /Users/mediapathic/.emacs.d/.local/straight/build-27.1/org-ol-tree/org-ol-tree.elc failed to define function org-ol-tree/display-sections

And nothing else happens.

I just ran an update (2021-03-31) and still have the issue.

I'm assuming this is a local configuration issue, but have no idea how to proceed.

Townk commented 3 years ago

Remove the compiled files for org-ol-tree:

$ rm -f ~/.config/emacs/.local/straight/build-*/org-ol-tree/org-ol-tree.elc

or if your config is on your home folder:

$ rm -f ~/.emacs.d/.local/straight/build-*/org-ol-tree/org-ol-tree.elc

And change your mapping to call org-ol-tree instead of org-ol-tree/display-sections.

I removed the later for a better standardization.

Let me know if these steps fixed your problem.

mediapathic commented 3 years ago

Sorry for the delay -- yes, the update fixed this. And thanks for the heads up on the mapping as well.