-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
julia-mode.el Indentation for long lists of keyword function arguments #9831
Comments
I strongly suspect this is related to #9308. Because of this tradeoff, there will always be a point where a very large number of arguments break indentation. However, I would have expected the failure case to just reuse the previous line's indentation. I'll take a look. |
Yep, this issue can be fixed by increasing the value of |
Thanks, I increased the value of |
That's exactly the same issue -- |
That said, I'm finding performance is still pretty good with higher values of |
https://github.com/pwl/DASSL.jl/blob/master/src/DASSL.jl At the start of the file |
OK, I dug into this a little today. Pressing I ran the following test:
This gives:
Since we're sampling every millisecond (controlled by Looking at this, I think a simple LRU cache that's cleared when earlier parts of the buffer are modified would really help performance here. We're calling I agree it looks this is independent of |
I guess this is not limited to keyword arguments either. Long list, and even functions with too many lines are also broken. |
This is almost fixed by #15156, however, there seems to be still a limit on the number of non-empty lines in a block. |
Remaining issue moved to JuliaEditorSupport/julia-emacs#5 |
I am working with function definitions with long lists of keyword arguments. Surprisingly, after adding even more keyword arguments I can no longer format the argument list properly. This bug seems to depend on the total count of characters enclosed in parenthesis (and is not specific for keyword arguments). For example
Sorry for all the auuuu's, I should have chosen a better sounding name:-).
The text was updated successfully, but these errors were encountered: