Skip to content

M-j does not work in block comments #1078

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

Closed
jstolarek opened this issue Jan 14, 2016 · 3 comments
Closed

M-j does not work in block comments #1078

jstolarek opened this issue Jan 14, 2016 · 3 comments

Comments

@jstolarek
Copy link

Assume I have:

-- my comment|

where | represents cursor position. Pressing M-j should continue the comment in the next line (currently affected by #981):

-- my comment
-- |

That doesn't work with block comments. Assume I have:

{-
  my comment|
-}

Pressing M-j gives:

{-
  my comment-}
{-|
-}

The correct result is:

{-
  my comment
  |
-}
@gracjan
Copy link
Contributor

gracjan commented Jan 14, 2016

Documentation says:

(indent-new-comment-line &optional SOFT)

This command is intended for styles where you write a comment per line, starting a new comment (and terminating it if necessary) on each line. If you want to continue one comment across several lines, use M-x newline-and-indent.

So it seem we are doing things according to the documentation, although I agree that it does not make much sense.

@jstolarek
Copy link
Author

Related: #393

@gracjan
Copy link
Contributor

gracjan commented Aug 5, 2016

Same as #225.

@gracjan gracjan closed this as completed Aug 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants