From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id oBwvHiZVAGA0ewAA0tVLHw (envelope-from ) for ; Thu, 14 Jan 2021 14:28:54 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id YMoQGiZVAGD5GwAAB5/wlQ (envelope-from ) for ; Thu, 14 Jan 2021 14:28:54 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 91767940355 for ; Thu, 14 Jan 2021 14:28:53 +0000 (UTC) Received: from localhost ([::1]:44290 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l03cJ-0004II-Kk for larch@yhetil.org; Thu, 14 Jan 2021 09:28:51 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:55810) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kzfWI-0007pB-PQ for emacs-orgmode@gnu.org; Wed, 13 Jan 2021 07:45:02 -0500 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:57658 helo=mail.yoctocell.xyz) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kzfWG-0001Yc-C6 for emacs-orgmode@gnu.org; Wed, 13 Jan 2021 07:45:02 -0500 From: yoctocell DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1610541411; bh=Esr4fhkUIGV6mbIJ4KNDzOAyVRcIFTj6EhVnzU0Sfd0=; h=From:To:Subject:Date; b=UmFg2DIaMHs5wU+HQNlz/TEIl7NcW3qDe+eo26kmJOJAQXs1r/nPMLsymGf3sK4x6 XInRZKXU2sjf9wwbP/77zLIGJaRrlP7nGzVR+ZZQBV7qNCKWcvZ78IW+UOJ2P2BpTF 0SMUT+DA17l98kRzD953PR05UWDDxF9YM1LgfuYI= To: emacs-orgmode@gnu.org Subject: Bug: Unexpected movement of cursor when commenting code blocks Date: Wed, 13 Jan 2021 13:36:50 +0100 Message-ID: <874kjlm2sd.fsf@elephant.i-did-not-set--mail-host-address--so-tickle-me> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=87.96.130.155; envelope-from=public@yoctocell.xyz; helo=mail.yoctocell.xyz X-Spam_score_int: 27 X-Spam_score: 2.7 X-Spam_bar: ++ X-Spam_report: (2.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FROM_SUSPICIOUS_NTLD=0.499, FROM_SUSPICIOUS_NTLD_FP=1.326, NO_FM_NAME_IP_HOSTN=0.001, PDS_OTHER_BAD_TLD=1.997, PDS_RDNS_DYNAMIC_FP=0.001, RDNS_DYNAMIC=0.982, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 14 Jan 2021 09:27:49 -0500 X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.06 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=yoctocell.xyz header.s=mail header.b=UmFg2DIa; dmarc=pass (policy=none) header.from=yoctocell.xyz; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 91767940355 X-Spam-Score: -2.06 X-Migadu-Scanner: scn1.migadu.com X-TUID: zM4gWZRhMZBC Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See https://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list. ------------------------------------------------------------------------ When I am inside a code block like this: #+begin_src emacs-lisp (use-package org :defer :config (setq blahblah t)) ; cursor on this line #+end_src and I hit "C-x C-;" to comment the line, the cursor automatically jumps to the second line of the code block after the comment is made. I would expect the cursor to move forward one line like it usually does and this only happens in Org-mode, not when I edit the code block in a separate buffer with "C-c C-'". #+begin_src emacs-lisp (use-package org :defer ; cursor jumps to this line :config ;; (setq blahblah t)) #+end_src This happens no matter how big the code block is, and it always jumps to the second line of the code block. I was able to reproduce this with the "minimal-org.el" file. Emacs : GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.23, cairo version 1.16.0) Package: Org mode version 9.4.4 (9.4.4-3-gbd1c31-elpaplus @ /nix/store/ybfrs7h4byc03f963flgc845n3m1dkhi-emacs-packages-deps/share/emacs/site-lisp/elpa/org-plus-contrib-20201228/)