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

Setting mode file local variable to polymode applies itself recursively infinitely until cancelled #321

Open
ilovecherries opened this issue Jun 30, 2022 · 0 comments

Comments

@ilovecherries
Copy link

When creating a polymode, let's say like poly-js-html-mode where there's HTML inside of a template string in the JavaScript, and I apply a file local variable to set the mode automatically such as:

// Local Variables:
// mode: poly-js-html
// End:

It seems to enter an infinite loop where it keeps applying the mode variable and keeps asking the kill the HTML buffer (I assume it uses a buffers to manage internal modes) over and over until I hit Ctrl-g.

In the debugger, it looks like maybe it's because it applies the polymode at the top level, loads javascript-mode again for the host, and then it keeps trying to reload the mode variable because it's not the polymode and gets stuck in this loop.

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