From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alessio Vanni Newsgroups: gmane.emacs.bugs Subject: bug#43007: 27.1; M-j doesn't behave properly in comments Date: Mon, 24 Aug 2020 13:47:00 +0200 Message-ID: <878se4xo3v.fsf@firemail.cc> References: <87imd9qba6.fsf@firemail.cc> <87imd8es7j.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20437"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) To: 43007@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 24 17:24:18 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kAEKY-0005Au-Gu for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 24 Aug 2020 17:24:18 +0200 Original-Received: from localhost ([::1]:41850 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kAEKX-0003a5-IK for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 24 Aug 2020 11:24:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34236) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kAEKJ-0003YF-Da for bug-gnu-emacs@gnu.org; Mon, 24 Aug 2020 11:24:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47378) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kAEKJ-0003Rm-4A for bug-gnu-emacs@gnu.org; Mon, 24 Aug 2020 11:24:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kAEKJ-0005Fb-0h for bug-gnu-emacs@gnu.org; Mon, 24 Aug 2020 11:24:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alessio Vanni Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Aug 2020 15:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43007 X-GNU-PR-Package: emacs Original-Received: via spool by 43007-submit@debbugs.gnu.org id=B43007.159828263120133 (code B ref 43007); Mon, 24 Aug 2020 15:24:02 +0000 Original-Received: (at 43007) by debbugs.gnu.org; 24 Aug 2020 15:23:51 +0000 Original-Received: from localhost ([127.0.0.1]:58919 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kAEK6-0005Ed-4z for submit@debbugs.gnu.org; Mon, 24 Aug 2020 11:23:50 -0400 Original-Received: from mail.cock.li ([37.120.193.124]:59104) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kAAvx-0002mT-Br for 43007@debbugs.gnu.org; Mon, 24 Aug 2020 07:46:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=firemail.cc; s=mail; t=1598269594; bh=qbef9x9bld6SQzSFAvxGehmSBIzDWPDMPt+hmEdpvr8=; h=From:To:Subject:References:Date:In-Reply-To:From; b=dM+DNmlxpg9pF+NoK9JN6jFwCQ6rtJ2eEveak6cheZGls+u8UAPlh6DmMd+1DvGe8 ucGxb9j3TjsAj+LtzdItY2XY/Arxp+8KkojpbbpAY/1O8Z0zlDiyiS0v3DRsBWtMkp m1ZTgEaEu6NpKoCcP8SNomWZ08zz1I8mZzCaWCuokSA6tIMUJwh+aG7fOL3efE4pbz INO12NoDNIgypzs5n8kDFZJnjFI5XVPlnZc0kTTy0PIWQf1XQUO4h2dkO4/V+TIIbj +g3j0rGfA7uXBcY0llIUUAJcoSJvyaM5rk+24R4YQFA2vv3b491EdfArbqLSqUst9W KDjHy5bAHPrXA== In-Reply-To: <87imd8es7j.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 24 Aug 2020 03:41:04 +0200") X-Mailman-Approved-At: Mon, 24 Aug 2020 11:23:49 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:186170 Archived-At: Lars Ingebrigtsen 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.