GNU bug report logs - #43007
27.1; M-j doesn't behave properly in comments

Previous Next

Package: emacs;

Reported by: Alessio Vanni <vannilla <at> firemail.cc>

Date: Sun, 23 Aug 2020 21:56:03 UTC

Severity: normal

Tags: moreinfo

Found in version 27.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Alessio Vanni <vannilla <at> firemail.cc>
Cc: 43007 <at> debbugs.gnu.org
Subject: bug#43007: 27.1; M-j doesn't behave properly in comments
Date: Mon, 24 Aug 2020 03:41:04 +0200
Alessio Vanni <vannilla <at> firemail.cc> writes:

> I normally use M-j to continue a long comment over multiple lines.
> Recently, this feature broke in a rather weird way: new lines are opened
> as a comment, but the new line is placed above the line with the point,
> rather than below.  In some other cases, the line appears in the correct
> place, but opening a new line results in a '*' character instead of a
> comment (the character is used on modes where '*' is part of a comment,
> like `js-mode' or `cc-mode'.)
>
> This happens when running "emacs -Q" too.
>
> Example:
>
> // some comment.
>
> Becomes:
>
> //
> // some comment.

This happens for me, too, if I have point behind the "//" characters.
But that seems like a natural behaviour?

> Alternatively:
>
> // some comment.
> //
> //
>   *
>   *
>   *
>   *
>
> (the '*' just keeps happening for every M-j.)

I'm unable to reproduce this in Emacs 28.  Where is point when you hit M-j?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 3 years and 350 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.