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 ms0.migadu.com with LMTPS id CAtQBqiWo2G/UwAAgWs5BA (envelope-from ) for ; Sun, 28 Nov 2021 15:48:08 +0100 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 MHoIAqiWo2GXSgAAB5/wlQ (envelope-from ) for ; Sun, 28 Nov 2021 14:48:08 +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 68752BD67 for ; Sun, 28 Nov 2021 15:48:07 +0100 (CET) Received: from localhost ([::1]:37024 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mrLTK-0006TP-JV for larch@yhetil.org; Sun, 28 Nov 2021 09:48:06 -0500 Received: from eggs.gnu.org ([209.51.188.92]:54676) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mrLR6-0003op-AC for emacs-orgmode@gnu.org; Sun, 28 Nov 2021 09:45:50 -0500 Received: from forward500o.mail.yandex.net ([37.140.190.195]:36584) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mrLR2-0002VO-MH for emacs-orgmode@gnu.org; Sun, 28 Nov 2021 09:45:47 -0500 Received: from iva4-d8b0e1d849e5.qloud-c.yandex.net (iva4-d8b0e1d849e5.qloud-c.yandex.net [IPv6:2a02:6b8:c0c:825:0:640:d8b0:e1d8]) by forward500o.mail.yandex.net (Yandex) with ESMTP id 8E5B1941603; Sun, 28 Nov 2021 17:45:33 +0300 (MSK) Received: from iva4-b3ebd202b141.qloud-c.yandex.net (iva4-b3ebd202b141.qloud-c.yandex.net [2a02:6b8:c0c:4e8e:0:640:b3eb:d202]) by iva4-d8b0e1d849e5.qloud-c.yandex.net (mxback/Yandex) with ESMTP id YQ10t2sSKG-jXCO6oaF; Sun, 28 Nov 2021 17:45:33 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1638110733; bh=pO9L4KHZ37GD6k15x92A061AXs7GbJ8wSP3mNDyySkw=; h=In-Reply-To:Subject:Date:References:To:From:Message-ID:Cc:Cc; b=SXSRDjj+L6b3KjUCDV+3PXp1oMO8jH4OpeiytN8ztnsIxSIdvkgmn8ujI4S6MbLTl fE4x3NPG54pfMSKCXIo5t47L15XWgmZ2cMhj1v1c/7sXu/cDjc7c93Oeqmk8Wmw41x bdag4OXUxS53G/Skq/AjxYbR8zPkq84FVNcYZzE0= Received: by iva4-b3ebd202b141.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id 6v4hITcKRZ-jWwiclM7; Sun, 28 Nov 2021 17:45:32 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) X-Yandex-Fwd: 2 From: =?utf-8?Q?Colin_Baxter_=F0=9F=98=BA?= To: Richard Lawrence Subject: Re: Is M-j broken for you in Org on Emacs 27 and 28? References: <87lf18fue9.fsf@aquinas.i-did-not-set--mail-host-address--so-tickle-me> X-Face: BHjiJOg/Qmj'BQgsAKL@])L)e62P)C"Y=6T X-Message-My-Extra-Message: 8-) We are the only ones here =?utf-8?B?8J+YuiDwn5i6IPCfmLo=?= Date: Sun, 28 Nov 2021 14:45:30 +0000 In-Reply-To: <87lf18fue9.fsf@aquinas.i-did-not-set--mail-host-address--so-tickle-me> (Richard Lawrence's message of "Sun, 28 Nov 2021 11:26:38 +0100") Message-ID: <87v90cpcdx.fsf@yandex.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (gnu/linux) Face: iVBORw0KGgoAAAANSUhEUgAAAEkAAAATAgMAAAChCMjeAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACVBMVEX/zAABCWP///8I RHjYAAAAAWJLR0QCZgt8ZAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB+UFEAk5BvqS634A AAAbSURBVBjTY2BgCA1hYA0FAxDDgQEERsXoIAYA2F9Eb3cpB+AAAAAldEVYdGRhdGU6Y3JlYXRl ADIwMjEtMDUtMTZUMTA6NTY6MTcrMDE6MDCh/kkpAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIxLTA1 LTE2VDA5OjU3OjA2KzAxOjAwTyZ6HwAAAABJRU5ErkJggg== MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=37.140.190.195; envelope-from=m43cap@yandex.com; helo=forward500o.mail.yandex.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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: , Cc: , emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1638110887; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=pO9L4KHZ37GD6k15x92A061AXs7GbJ8wSP3mNDyySkw=; b=nEY59kccGRODFAHAarP1tkyEQetENqjkbkrM63YhL7vxKIyWSUWXx4f+HMS4gRp+r5VmSd EaNye+GRHn3FHw5CZoeDSAdJLQBZMJXYe0GUpwxBtmSjBtGNmFPf6hOYwFERATpAbcZVvt kLlaOZzs5HBFYYowdg52h0pZz4VQQpET7twJyJIi1WNQaJVXbSUfuQ3oTk4sxrmEaYRq8+ MjLbl8IUHOOcQXhv0oH4tyF2kv6XggfdbTjqu84ftgAaL/RUbB7G27uydaV37RyoKYMk2c hgpuUbg4P077NR4c+CHEEt8ga8FIy0UA/P68hNAniIgD9hz+gRNdX/PSiufvMg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1638110887; a=rsa-sha256; cv=none; b=QTNrndrriMwBnRRpPX4Z6EtQo1r1u/kPYe9MUSVCXj5ve4L0/FMzChYxU//9ivt+ehvmoT wY1NmMPXy5JiWKMYShJ62WstydPkDmI9KNr4cdIidKBWS0orBdikIUECJIlNyhC0AdgdFY Ox+xGE7GEGlVSd3LAqO15IvIHtzIFFt4JDc4EJ6AGOKHIeCk9K/rG6YY2+s9SSxIeLHegz GbBKk3pbpzw3/KsXjbUpLMh2ryfRj31V9gcKzz1shnR+cZtZ1cTt/mXJEuDsP4Q2Mheo7N x1O+s/ezH8+9HlIdh+syVuCue999gy7ezRuiqa3b2hjq71tXT+aDGpaFQKLD9w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yandex.com header.s=mail header.b=SXSRDjj+; dmarc=fail reason="SPF not aligned (relaxed)" header.from=yandex.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -0.81 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yandex.com header.s=mail header.b=SXSRDjj+; dmarc=fail reason="SPF not aligned (relaxed)" header.from=yandex.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 68752BD67 X-Spam-Score: -0.81 X-Migadu-Scanner: scn0.migadu.com X-TUID: /N+vFUGTzuML >>>>> Richard Lawrence writes: > 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 I confirm that it also appears broken to me in emacs-27.2, with the same error as you found. I have never noticed it before, possibly because I use C-j rather than M-j. Best wishes,