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

Properly make variables local #32

Merged
merged 1 commit into from
Oct 14, 2013
Merged

Properly make variables local #32

merged 1 commit into from
Oct 14, 2013

Conversation

mbunkus
Copy link
Contributor

@mbunkus mbunkus commented Oct 12, 2013

The function make-variable-buffer-local is used for declaring (at the
top level) that a certain variable should always be made buffer-local
if it is ever changed in any way. For explicitly making a variable
buffer-local, especially within a (set ...), one should use
make-local-variable, which makes a variable buffer-local for the
current buffer.

Emacs warns about this during byte-compilation.

The function make-variable-buffer-local is used for declaring (at the
top level) that a certain variable should always be made buffer-local
if it is ever changed in any way. For explicitly making a variable
buffer-local, especially within a (set ...), one should use
make-local-variable, which makes a variable buffer-local for the
current buffer.

Emacs warns about this during byte-compilation.
antifuchs added a commit that referenced this pull request Oct 14, 2013
@antifuchs antifuchs merged commit 6be8515 into elixir-editors:master Oct 14, 2013
@antifuchs
Copy link
Contributor

Good catch, thanks!

J3RN pushed a commit to J3RN/emacs-elixir that referenced this pull request Apr 24, 2021
Add debugger configuration options "env", "startApps", and "excludeMo…
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.

2 participants