From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id cGzuEUVbmGB9sAAAgWs5BA (envelope-from ) for ; Sun, 09 May 2021 23:59:33 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 4E2SDUVbmGBRBgAA1q6Kng (envelope-from ) for ; Sun, 09 May 2021 21:59:33 +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 9F5A21DAC2 for ; Sun, 9 May 2021 23:59:32 +0200 (CEST) Received: from localhost ([::1]:49550 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lfrSV-00060J-NW for larch@yhetil.org; Sun, 09 May 2021 17:59:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47276) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lfrS3-00060A-4j for emacs-orgmode@gnu.org; Sun, 09 May 2021 17:59:03 -0400 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]:52208) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lfrS1-0005Be-Kx for emacs-orgmode@gnu.org; Sun, 09 May 2021 17:59:02 -0400 Received: by mail-wm1-x336.google.com with SMTP id n205so8093637wmf.1 for ; Sun, 09 May 2021 14:59:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=IoQtzUhINUC6lMQl22U/QoeKEQc0VdNKq6/OFWLKbGA=; b=ilyHz6fZGn5tCDNVWM8s1A3gjo2i+V/FQRm42yElG67PQgMy5F9OFOZOksLeIAPaje sCJkLZg3bj+ZD9RAwprKkX/icV9tQq/Iza8ebdxeijOHw4x8e9L4knuHqOeGQL4XW97n sxpf96s3xHQWn3wgeZFoNUyfeMYojdOEzpyFI7AkZDCrQ/i5eFk3N3xrRqLIma0e8lEz c9ojMhjG/64/ahV+F7EkXoF3EBEyXDaNjrtRVXpieDpsDg2bTQ6LtT4JirlF4/edx0aM ZZ4Tl21/2FHPwVIQkySS/XT+pG7sKdUHSv5GHs9GxWJlSW2QFMR2kYGJkwNj7hQJvjxB sPHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=IoQtzUhINUC6lMQl22U/QoeKEQc0VdNKq6/OFWLKbGA=; b=nTYQvv+J4RnUWKh16HyPi60/EoBzYZZGQTgcTWf7m/24pKvcjxZ8vnexGg37Fer7j3 yOpxOGeeRNHcy3IH9kEMW3rw+V9FKu7MS/2TcIHQNH8+fhEuvgQNduZ3tvJW0MR3NXRO jmNOOsHav2sQZVzqrTvZkN97Q/Y0pNGKwdenUFhXGhwfWgQ6F0UalbO6oPllBjdStpFH qFGvwJCW9ofiiwDHZcVeEi59oCh8XFRqkJ2r51UwYVjDP9GI8Z+ySwCl9j9PGrcqNTg0 uHTfld+lJ/+fMbmUnQXnOOB59lYZAUnbsyA2FpC1r2SYvkHK/DAZTzEZwZ6K2nN12Y7K imMw== X-Gm-Message-State: AOAM532EAGAxcXkkSjy2+04rQ4YFSUkctad2dFOg7Acz8pAVb4kxZlqm QQUy6BqnF69ULlwFMt8vaLW6GRDpAHbtEA== X-Google-Smtp-Source: ABdhPJxZWWVjRs/E95O/M+cMm8eNimr7z2+giE3iUFBSv40kZ+n3jtKwX+36inOWw7AaZJblE6Tg2Q== X-Received: by 2002:a1c:7315:: with SMTP id d21mr23176291wmb.155.1620597539164; Sun, 09 May 2021 14:58:59 -0700 (PDT) Received: from amdahl30 ([2a01:e0a:20e:d340:2ef0:5dff:fed2:7b49]) by smtp.gmail.com with ESMTPSA id o9sm24145258wmh.19.2021.05.09.14.58.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 May 2021 14:58:58 -0700 (PDT) From: =?utf-8?Q?K=C3=A9vin_Le_Gouguec?= To: James Powell Subject: Re: Bug: spurious change in list indent cursor motion [9.4.4 (9.4.4-dist @ /home/powellj/elisp/org-9.4.4/lisp/)] References: Date: Sun, 09 May 2021 23:58:57 +0200 In-Reply-To: (James Powell's message of "Sun, 9 May 2021 14:17:54 -0700") Message-ID: <87sg2vzhzy.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::336; envelope-from=kevin.legouguec@gmail.com; helo=mail-wm1-x336.google.com 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, 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.23 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1620597572; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=IoQtzUhINUC6lMQl22U/QoeKEQc0VdNKq6/OFWLKbGA=; b=We+vYabQmxQvnuezK6bbDl/l7MohI4M6IaJexs55HGC2Ee7n5Ef0HRN3TGiQbQrugGADnN 2Cz8hH8Jx/ZQrQ/j2OqfALQ5U7vo+m9nR/kl/rZpEq4JZBj4aclNQAWtJmRn923vXSXVT2 N7U3bKwm8tTaYSXWRwhmvp+6Km5WD9GfuInhlWyRDecAQpM0TpDus5SprjCAayXSxsShf/ WtQoA0mlto1ndUmNJi+3C/9cLfxP9P0UIGAo3LtPEqZb+pTkt9YjDsQ1IxXWSazSOIutmJ cgw0rQt1Rs8wyOB7IZvFsMahIYinrrZKHL1VEBg7VsdxOTWbyo1Oeld/l707cw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620597572; a=rsa-sha256; cv=none; b=ItzIP6GQ5h096q9kmxwjAn3nhiv67aazru2p2LTn9zjnfm7+OlCiX8YtypONxe0x+F6ZgA DUg5yZy6IsFKgp8dsJ3+sykrTvj9Q/QGMX+7Fku6bDwa36SqPgkgzpL1q0+opRhhHnjXuh IsE/cw+SbWhV9IMzzJF/sGhkZmfi7hIsVfwuxAcWkVCTftJptIEkej4EeEFdo8JLn5sqDk Uq5cUithL2boovVAi8a1t3mjFgxTvV7XzqTBoqd1nTUGbQUML4u+6RBq8IArQHgj6UhqZo gnTjKMHIpHbjlh7cHP5HTXO829wXLsBXatqySEPqCpLZU8mtNr9w2G+ytIb18Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=ilyHz6fZ; dmarc=pass (policy=none) header.from=gmail.com; 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: -3.15 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=ilyHz6fZ; dmarc=pass (policy=none) header.from=gmail.com; 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: 9F5A21DAC2 X-Spam-Score: -3.15 X-Migadu-Scanner: scn0.migadu.com X-TUID: ehaOdcMCfGKX James Powell writes: > I open a new file, /tmp/demo.org, and I start a new list > by typing "- a".=C2=A0 It appears: > > - a > > What I expect: my cursor should now be at column 0.=C2=A0 This was the > behavior in 9.3.6 and it makes perfect sense. > > What happens instead: after upgrade to 9.4.4, the cursor rests at > column 2, under the a. > > How do I change the behavior back to the 9.3.6 one? Short answer: disable electric-indent-local-mode, as suggested in ORG-NEWS. This will turn RET into the "dumb newline" key which should never indent, and set C-j as the "smart newline" key which occasionally indents. > Facts about it: > > - When I start emacs with 'emacs -Q -nw' the bug does not manifest > even in 9.4.4. That's surprising; on my setups, with Org 9.4.4, emacs -Q -nw stays at column 2 after hitting RET. > - I tried setting org-adapt-indentation to 't (the default) as it is > =C2=A0 an obvious suspect, the bug still manifested. org-adapt-indentation's determines how TAB and the "smart newline" key behave: - t (default): section bodies should be hard-indented, - nil (to become the default for Org 9.5): nothing should be indented, - 'headline-data: drawers (e.g. :LOGBOOK: entries and :PROPERTY: blocks) should be hard-indented, but not regular section text. With all settings, "- a" indents at column 2, below "a". As explained above, depending on electric-indent, the key is either RET or C-j. Note also that "- a" goes back to column 0. (FWIW I think that's a bit unwieldy; going back to column 0 on the /second/ would make more sense to me, as it would correspond to a "paragraph break")