From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id +HQhMKVZo2HDFQEAgWs5BA (envelope-from ) for ; Sun, 28 Nov 2021 11:27:49 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id YMjOK6VZo2FdBAAA1q6Kng (envelope-from ) for ; Sun, 28 Nov 2021 10:27:49 +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 36B47290EB for ; Sun, 28 Nov 2021 11:27:49 +0100 (CET) Received: from localhost ([::1]:49156 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mrHPP-0004ZM-Pm for larch@yhetil.org; Sun, 28 Nov 2021 05:27:47 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34792) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mrHOe-0004Xf-Nd for emacs-orgmode@gnu.org; Sun, 28 Nov 2021 05:27:00 -0500 Received: from mx03.uni-tuebingen.de ([134.2.5.213]:44844) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mrHOb-0000is-Hk for emacs-orgmode@gnu.org; Sun, 28 Nov 2021 05:27:00 -0500 Received: from auth2-smtp.messagingengine.com (auth2-smtp.messagingengine.com [66.111.4.228]) by mx03.uni-tuebingen.de (Postfix) with ESMTPSA id B76EE20C7CE6 for ; Sun, 28 Nov 2021 11:26:46 +0100 (CET) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailauth.nyi.internal (Postfix) with ESMTP id D5FAC27C0054 for ; Sun, 28 Nov 2021 05:26:41 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Sun, 28 Nov 2021 05:26:41 -0500 X-ME-Sender: X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrheeigddujecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkfggtgesthdttddttddttd enucfhrhhomheptfhitghhrghrugcunfgrfihrvghntggvuceorhhitghhrghrugdrlhgr fihrvghntggvsehunhhiqdhtuhgvsghinhhgvghnrdguvgeqnecuggftrfgrthhtvghrnh epffettdekvdeukeduffdugeejieeuteevheelffdukedvffehueeutdeiudeuvdeknecu ffhomhgrihhnpehgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrg hmpehmrghilhhfrhhomheprhiflhdomhgvshhmthhprghuthhhphgvrhhsohhnrghlihht hidquddujeekgeehuddvkedqudeltddvjeelgeegqdhrihgthhgrrhgurdhlrgifrhgvnh gtvgeppehunhhiqdhtuhgvsghinhhgvghnrdguvgesfhgrshhtmhgrihhlrdgtohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Sun, 28 Nov 2021 05:26:41 -0500 (EST) Received: from rwl by aquinas with local (Exim 4.92) (envelope-from ) id 1mrHOJ-00025V-1Y for emacs-orgmode@gnu.org; Sun, 28 Nov 2021 11:26:39 +0100 From: Richard Lawrence To: emacs-orgmode@gnu.org Subject: Is M-j broken for you in Org on Emacs 27 and 28? Date: Sun, 28 Nov 2021 11:26:38 +0100 Message-ID: <87lf18fue9.fsf@aquinas.i-did-not-set--mail-host-address--so-tickle-me> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=134.2.5.213; envelope-from=richard.lawrence@uni-tuebingen.de; helo=mx03.uni-tuebingen.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1638095269; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=ogtnwvGqgUJcSTKA/dOFurGnfEOdfsG7LApy+7Y9qeo=; b=RLTM28ls7T0h6/e55CIFSfqb29DvwGNf+ek9V2pekX/HHBGO+pxILae9vRw7rRSAqKhe67 bKIHT6DTBxHGpsIkL96FZLZLpQkTuRNqmVxTooOp5nocR4L6zbQw52RXj6nVk9ICAqh0tu wdO3wa8VARybp7YMArvgFGl89Y4qLKgBh+Gr8xgIRHf2YNFF+GKipeON76MsRoElnCObxM n2pLvFfQLCA52fbLNmeRJjYlkfa6OSoiqG4UBVJyG7O4ACLFdNwA07/X6HR+sYshsTTsgi WAUVR8Ly3zTKauGVxEhTmUYYvqRZZrxNdIoZol5yQ9YOJoQI1wA8RlifjP5mBA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1638095269; a=rsa-sha256; cv=none; b=Y8lfCP6PLuY/9OyToO2/VkoD2GhfMmpm5HZE3GKb0jV9q5BmxsxwlhwUqKlOQ3o7j3zMzJ pvo3kZKsfg93VcOt+ARMxFe36Q+biN3GaRTD5a97OP/pAROQd/djpCsfbHdx5AtQ9lCC88 yez0V6ywZ4Razo9sH4hhsPnuPKG//+mGptwgDOcFrhyXHEbHKzj58b8gPyevJPyGWBt4wF rtzB5pbj8BHzj7CtzKcoBJYdMSmjI7jr3tbVwbJ1x5cgAB8zkOm3lYiRuXtbqM31KQgieY Fgi72akjfJw0BzDARhxwMEq030tJwVOtfMljpCAk2174tSxXUQNxT009rQGUWw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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-Spam-Score: -1.51 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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: 36B47290EB X-Spam-Score: -1.51 X-Migadu-Scanner: scn1.migadu.com X-TUID: NDk0Tdu0sWnN Hi Org community, Some questions for those of you on Emacs 27 and 28: Does M-j in an org-mode buffer do what you expect? Does it throw an error? What function is M-j bound to in Org? Backstory: I have long been on Emacs 26.3 (in Debian stable) but recently decided to try a newer Emacs from GNU Guix. I immediately ran into an issue, and now I'm trying to figure out if it's a bug, and if so where to file it: in both Emacs 27.2 and 28.0.50, typing M-j in an Org buffer throws (wrong-type-argument char-or-string-p nil) The source of this problem appears to be that the keybinding for M-j changed between Emacs 26 and 27. In Emacs 26 it calls indent-new-comment-line. In Emacs 27 and 28 it calls default-indent-new-line, and the call stack look like: insert-before-markers-and-inherit(nil) org-comment-line-break-function(nil) default-indent-new-line() funcall-interactively(default-indent-new-line) call-interactively(default-indent-new-line nil nil) command-execute(default-indent-new-line) The error arises because insert-before-markers-and-inherit cannot accept nil (the value of fill-prefix in this context). I see this error in emacs -q with both Emacs 27 and 28 from Guix. After some investigation, the functions involved here don't appear to have changed at all recently (though see [1]); just the binding. This leads me to ask: why hasn't this been discovered already? Which leads me to wonder if I am using M-j in some non-standard way. Some time in the distant past, I internalized the idea that M-j is a better way to type a newline because (a) it doesn't involve a pinky reach and (b) in most contexts in Emacs, it is more likely to "do what I mean" than RET is. In particular, it continues comments and indents properly. (I am also an evil-mode user and there is probably some part of my brain that thinks "M-j is like j for insert mode".) But maybe that was always wrong, and the recently changed binding is just an indication that I was not using M-j as intended. So which is it? Is this a bug in Emacs, in Org, or in my ingrained typing habits? Many thanks for your advice. -- Best, Richard [1] There is a commit which changed default-indent-new-line in August of this year, but the changes don't seem relevant to the error I'm seeing, since I also see it in Emacs 27.2: https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=b41f31d2b60269bd0e7addd1081f3738f91e76bc