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

tuareg-current-fun-name returns inaccurate results, breaking which-function-mode #306

Open
catern opened this issue Jun 2, 2023 · 0 comments

Comments

@catern
Copy link

catern commented Jun 2, 2023

tuareg-current-fun-name is buggy:

let f = 1

gives me f.f.f

let f = 1

let g = 1

gives me f.f.g

There are various other bugs.

Since add-log-current-defun-function is set to tuareg-current-fun-name, which-function-mode displays ugly, wrong results.

As a result, I'm using the following configuration to disable the use of tuareg-current-fun-name:

(setq-local add-log-current-defun-function nil)
(setq-local add-log-current-defun-header-regexp (rx unmatchable))

which causes which-function-mode to fall back to using imenu, which for me is populated by merlin, and is much more accurate and nice.

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

No branches or pull requests

1 participant