-
-
Notifications
You must be signed in to change notification settings - Fork 341
Purge vim/emac local variable bloat #4796
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
base: master
Are you sure you want to change the base?
Conversation
|
Ambitious. Yeah, obviously that stanza long predates the existence of the editorconfig spec - and shows the reason for it! I'm neutral on whether this is actually "worth doing", I was originally going to dive right in, then backed off. Up to the boss, then :-) |
|
Looks like the (rather fragile) Interactive tests got broken here. This has happened before. These files can't auto-strip trailing blanks because there are expect blocks that have necessary trailing space, like Note the trailing space on the last of those. |
|
I imagine we could edit those fairly easily to avoid... say: Not tested. |
|
Does current vim/emacs read the .editorconfig file? |
https://editorconfig.org/#pre-installed tl;dr: yes. (dunno why they put that section in alphabetical order except emacs which is at the end) |
|
Looks like vim 9 ships the plugin, but 8.0 (default RHEL 8) does not ship the plugin. |
adb7bda to
f65c46a
Compare
Looks like that would mostly fix the issue, but a few of the files still failed: That tweak was already pushing it, but anything beyond that would absolutely be outside the scope of this PR, so I opted to just re-add the extra newlines |
f65c46a to
344f80d
Compare
Yes, I see the second and third of those have an empty scons prompt line (thus ending with space) in a place that isn't the last line of the expect block, so indeed that hack wouldn't finish fixing up those. There are other ways - we'll think about it. As I said, that's happened before - I've had space-stripping for Python enabled for years, before we had an SCons-specific editorconfig. |
|
Okay, this is odd... those files shouldn't have gotten broken due to editing them as the Is there some reason that didn't work to protect them? Bad syntax or something? |
|
That's a VSCode issue iirc, where |
@kprussing you're right. Not yet sure how to process that bit of info... RHEL 8 is past the end of one if its lives, but still gets maintenance support (security fixes) through 2029. Guess I'm not sure someone pegged to RHEL/Alma/Rocky 8 is going to be actively editing SCons itself... |
Probably true. If they're doing more than just hacking a local copy, I would suspect they would try to migrate the changes back and follow the rules. Using the .editorconfig also assumes the extensions/plugins are actually enabled by the author. |
I think we can put some kind of code-style suggestion in the CONTRIbUTING file - like 'enable editorconfig support if available, otherwise these settings". |
Tackled a long-standing pet-peeve by trimming all files of legacy vim/emac declarations. This is an antiquated manner of handling style data, as all modern tools parse
.editorconfiginstead. This change is excluded in.git-blame-ignore-revsto prevent any Git noise.Contributor Checklist:
CHANGES.txtandRELEASE.txt(and read theREADME.rst).