GNU bug report logs -
#43007
27.1; M-j doesn't behave properly in comments
Previous Next
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
Message #11 received at 43007 <at> debbugs.gnu.org (full text, mbox):
Lars Ingebrigtsen <larsi <at> gnus.org> writes:
> This happens for me, too, if I have point behind the "//" characters.
> But that seems like a natural behaviour?
When the point is at the end of the line, as it's normal after writing
something, the new line is still being opened above.
I should add that after testing it some more after sending the bug
report, it managed to create a new line above a paragraph that was
disconnected to the one I was currently editing, like so (the |
character is the point):
// Paragraph one.
// With some other lines.
normal(text);
// Another paragraph
// begins here.|
Which became:
// |
// Paragraph one.
// With some other lines.
normal(text);
// Another paragraph
// begins here.
> I'm unable to reproduce this in Emacs 28. Where is point when you hit M-j?
The point is always in the spot placed by M-j. In the case of //, it's
after the space (so 3 characters after the beginning of the line), in
case of *, it's right after the star without any spaces. The first time
I press the keybinding the point is at the end of the line, as shown in
the example above.
This is happening consistently, both in my customized session and with
emacs -Q. The end result is relatively random and sometimes it doesn't
break immediately, but it happens eventually after a while that I'm
editing a file.
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.