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

Use variable watcher with lsp-defcustom to support local variables. #4349

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

brownts
Copy link
Contributor

@brownts brownts commented Feb 27, 2024

When custom variables are set locally using hack-local-variables, a custom variable's registered setter is not invoked. To address this, a variable watcher is used instead to cause the setter to be invoked when the variable is updated.

Fixes #4337.

When custom variables are set locally using `hack-local-variables`, a
custom variable's registered setter is not invoked.  To address this,
a variable watcher is used instead to cause the setter to be invoked
when the variable is updated.
@brownts
Copy link
Contributor Author

brownts commented Apr 6, 2024

Ping @yyoncho

@brownts
Copy link
Contributor Author

brownts commented May 11, 2024

@yyoncho or @jcs090218, is there any reason this can't be merged?

This causes problems for Ada when trying to specify the project file in a directory local variable as described in the linked issue.

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

Successfully merging this pull request may close these issues.

lsp-defcustom not compatible with setting local variables
2 participants