-
Notifications
You must be signed in to change notification settings - Fork 48
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
We're using lots of "internal" cc-mode functions #128
Comments
I have written the following script, that classifies the usage of cc-mode api:
The results of
|
Thanks for the input! That's definitely a more comprehensive effort than I've put in previously. My initial reaction to your post was "Oh my! That's terrible!", but upon closer inspection I realize I may need some help interpreting that data. What does "suspicious form" technically entail, and does usage of "non-official-api" mean that these methods are risky to use w.r.t. compatibility? What approach and remedy would you suggest based on this analysis? |
I just assume that cc-mode symbols are exactly those prefixed by "c-" (probably not a too bad approximation). Concerning "non-official-api", I just literally interpreted the quote of the first message. Being unfamiliar with cc-mode, I don't really know where to go from here. The most robust approach would probably be to remove completely dependency on cc-mode, and do what most emacs modes do concerning syntax highlighting, indentation etc. |
In theory I agree, but that would effectively be a full rewrite, and unfortunately, I simply do not have the time to even estimate the scope of such an effort. I've previously stated that Unless anyone can summon a much more active co-maintainer, I'm afraid that's how things will remain for the foreseeable future. |
edit: the script actually discards functions. here is the fix and fixed diagnostic:
|
This is pretty much going to be solved by the |
This alone is worth a celebration! 😄 |
According to Alan Mackenzie, we're using functions considered internal "by convention":
Doing a quick skim of the
csharp-mode
codebase, that includes at least the following:Not to mention we monkey-patch/advice
c-inside-bracelist-p
andc-forward-objc-directive
.Some of these are probably safer to use than others (pun intended), but it's still quite a list.
What should we do about it? Should we do something about it? Or just hang around until i breaks again?
Opinions? Initiatives?
The text was updated successfully, but these errors were encountered: