-
Notifications
You must be signed in to change notification settings - Fork 32
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
Fix dtrt-indent warnings #87
Conversation
Amazing, many thanks! I have a few minor comments. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't require smie. dtrt-indent should not load packages that aren't already being used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please squash this commit into the one that changed the URL in the first place.
66d3b0d
to
7104138
Compare
- Add `lexical-binding` directive to the first line of `dtrt-indent.el`. - Declare a dependency on Emacs version x.y. - Include the project URL in the header. - Private functions (`dtrt-indent--mode`) cannot be autoloaded. - Warning (native-compiler): ~/src/forks/dtrt-indent/dtrt-indent.el:202:53: Warning: the function ‘smie-config-guess’ is not known to be defined. - dtrt-indent.el:206:19: Warning: reference to free variable ‘dtrt-indent-run-after-smie’ - dtrt-indent.el:223:9: Warning: defvar ‘dtrt-indent-language-syntax-table’ docstring contains control char #x01 (position 629) - dtrt-indent.el:223:9: Warning: defvar ‘dtrt-indent-language-syntax-table’ docstring contains control char #x02 (position 671) - dtrt-indent.el:223:9: Warning: defvar ‘dtrt-indent-language-syntax-table’ docstring contains control char #x01 (position 629) - dtrt-indent.el:223:9: Warning: defvar ‘dtrt-indent-language-syntax-table’ docstring contains control char #x02 (position 671)
7104138
to
a9644d5
Compare
My pleasure, @rrthomas.
I have resolved the issue by removing the dependency on |
Thanks for the quick reply! Merged. I'll tag a release. |
Excellent! For your reference, here are the remaining warnings that I did not address, as I prefer to leave the decision on how to handle them up to you:
These warnings can be resolved by removing |
I think the best solution is to wait a few years (at which point it will be acceptable to bump the minimum version of Emacs). dtrt-indent does not strictly speaking need any of those modes; it would be pretty annoying if you had to install them all just to use dtrt-indent, let alone use a version of Emacs that supports them. These are, after all, just warnings, not bugs, and in this (rather unusual) case, they're not useful. Thus for example, the warning about ada-mode, now a 3rd-party package will never be addressed. |
I understand your point, @rrthomas. I agree that waiting for a few years before bumping the minimum version of Emacs seems like a reasonable approach. |
Fix dtrt-indent warnings: