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

The Emacs mode doesn't handle -module attributes without parentheses #9503

Open
RaimoNiskanen opened this issue Feb 26, 2025 · 0 comments
Open
Assignees
Labels
enhancement team:PS Assigned to OTP team PS

Comments

@RaimoNiskanen
Copy link
Contributor

Is your feature request related to a problem? Please describe.

When/if #9502 is fixed, the Emacs mode also needs fixing.

Today, if you write:

-module(foo).

and the file is not named "foo.erl" the Emacs mode objects and wants to change the source code -module(). attribute to match the file name.

But if we write:

-module foo.

the Emacs mode doesn't check the attribute value when saving the file.

Describe the solution you'd like

The Emacs mode should be aware of -module attributes both with and without parentheses.

@RaimoNiskanen RaimoNiskanen added the team:PS Assigned to OTP team PS label Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement team:PS Assigned to OTP team PS
Projects
None yet
Development

No branches or pull requests

2 participants