Yuriy Pitomets

Results 107 comments of Yuriy Pitomets

Oh, I see, `(scala-lib:delete-trailing-whitespace)` in `scala-indent:indent-code-line`.

@hvesalai here's the simple fix: ```diff 1 file changed, 9 insertions(+), 2 deletions(-) scala-mode-indent.el | 11 +++++++++-- modified scala-mode-indent.el @@ -125,6 +125,12 @@ when it is added to an empty...

It's a dumb fix: it may have more complex behavior like keep deleting trailing whitespaces on all but current line.

@hvesalai more intelligent I'm sure should be more like this (not checked!): ```diff 1 file changed, 33 insertions(+), 5 deletions(-) scala-mode-indent.el | 38 +++++++++++++++++++++++++++++++++----- modified scala-mode-indent.el @@ -87,11 +87,11 @@...

But I have no clue, how to implement the `not-current-line` here..

Maybe we need custom `indent-region-function` for it.

And even in that case `indent-region` call `'indent-line-function` or even `'indent-region-function` inside `save-excursion`. Don't know how to get the original point from there without dirty hacks like advices on `indent-region`...

@hvesalai ping. Would u merge it?

@hvesalai anybody here? :-)

@JoeFryer sure, thank you, just tested it on my environment in combination with ``` ruby pod 'ReactiveTableViewBinding', git: 'https://github.com/Pitometsu/CETableViewBinding.git', commit: '01ff58126a1292943e54c60c12afbb09a8f238f0' ```