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

Rename global var to remove shadowing warnings #206

Merged
merged 4 commits into from
Jul 17, 2022

Conversation

matsl
Copy link
Collaborator

@matsl matsl commented Jul 12, 2022

What

Rename global var to remove shadowing warnings.

Why

By renaming the global variable to kview-label-sep-len the functionality is kept intact. The shadowing warnings are by this removed. It remains to analyze if there is any code that relies on dynamic binding.

Note that this PR should not make the situation worse or even change. It just makes it clear where the global variable is used. With lexical scoping the value passed in to functions will not affect functions using the global variable.

@matsl matsl requested a review from rswgnu July 12, 2022 18:14
@matsl matsl force-pushed the remove_free_var_label-sep-len_warnings branch from 2eb1f30 to 107f56b Compare July 12, 2022 18:15
@matsl matsl force-pushed the remove_free_var_label-sep-len_warnings branch from 107f56b to 952b6f2 Compare July 16, 2022 20:33
@rswgnu
Copy link
Owner

rswgnu commented Jul 16, 2022

Let's talk about this one tomorrow. I think it should be resolved the opposite way with the function parameters renamed and the global staying the same since that is the one that people might set by name in their own Lisp files.

@matsl
Copy link
Collaborator Author

matsl commented Jul 17, 2022

For the discussion marked label-sep-len as obsolete and replaced local occurrences with lbl-sep-len.

@rswgnu rswgnu merged commit 6450d91 into master Jul 17, 2022
@rswgnu rswgnu deleted the remove_free_var_label-sep-len_warnings branch July 17, 2022 13:51
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.

None yet

2 participants