From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?K=C3=A9vin?= Le Gouguec Newsgroups: gmane.emacs.bugs Subject: bug#51459: 29.0.50; org-return and org-return-and-maybe-indent Date: Thu, 28 Oct 2021 15:40:33 +0200 Message-ID: <87cznp5ktq.fsf@gmail.com> References: <58f0c59d-d634-849b-05d4-e84eae9ab3a3@easy-emacs.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20753"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 51459@debbugs.gnu.org To: Andreas =?UTF-8?Q?R=C3=B6hler?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 28 15:41:25 2021 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 1mg5en-00058A-0b for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 28 Oct 2021 15:41:25 +0200 Original-Received: from localhost ([::1]:35466 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mg5el-000095-CD for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 28 Oct 2021 09:41:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44930) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mg5eQ-00008s-Av for bug-gnu-emacs@gnu.org; Thu, 28 Oct 2021 09:41:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40041) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mg5eQ-0008Te-3D for bug-gnu-emacs@gnu.org; Thu, 28 Oct 2021 09:41:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mg5eP-00016n-TM for bug-gnu-emacs@gnu.org; Thu, 28 Oct 2021 09:41:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?K=C3=A9vin?= Le Gouguec Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 28 Oct 2021 13:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51459 X-GNU-PR-Package: emacs Original-Received: via spool by 51459-submit@debbugs.gnu.org id=B51459.16354284424223 (code B ref 51459); Thu, 28 Oct 2021 13:41:01 +0000 Original-Received: (at 51459) by debbugs.gnu.org; 28 Oct 2021 13:40:42 +0000 Original-Received: from localhost ([127.0.0.1]:51587 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mg5e6-000160-4O for submit@debbugs.gnu.org; Thu, 28 Oct 2021 09:40:42 -0400 Original-Received: from mail-wm1-f54.google.com ([209.85.128.54]:34627) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mg5e4-00015k-8A for 51459@debbugs.gnu.org; Thu, 28 Oct 2021 09:40:40 -0400 Original-Received: by mail-wm1-f54.google.com with SMTP id o4-20020a1c7504000000b0032cab7473caso4711916wmc.1 for <51459@debbugs.gnu.org>; Thu, 28 Oct 2021 06:40:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=NRSlQWPuS55XBI7GZ6yyNl/3F5WBBn12sNpp/o2SlVQ=; b=eg7ZFF/hjoEXD6zWZTpcNzLyks7giAeGKx1D2qMKZlcM5/C/jcacEEXnyBBKRdr1XI qDtQ8OTbI6Vn/y9/NS6aHTaOhqW9NWV5i1dID5h6+PVpF1oA+mQSxvN22GjF6J3InvF8 XKkmpsVRrBzAsXajSDz3UEdv7lONTyfOATbHrkfjVb6+u81GXua0vjDCeOQe4B4fpw3U txeDr3Xu9THQUAEqUMfpquhkTIuUhvdAPLDAr4KEwNIZmN2wEqUcid9AvKkVm78Ouo+C je8gvGlqQE6etUOM4ZbYP3ue7JohKTaa9bfWJG956eAWJ/btijLTiRi1xBwBuVAameRl zwdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=NRSlQWPuS55XBI7GZ6yyNl/3F5WBBn12sNpp/o2SlVQ=; b=VfB69phrgHgXsukcsIVnfWoUQkIPcPWsgfOcSy78vgntWXNzVRTRlCir0FdkfU58IH pEKxmlQKH30vMmWv7xKvSHCQryNGPD+81wGh71HUpkcnFDyqXiwsX9S/f4Nh+tlIU3Lw WAqoZnlM0Jghx5n1ixEDyWG8rfzpYrMY69NNFd4j8X80O0FIS+wE1qhMA4Udi4rAD1Wc LP8UZ7W98ZzXKwrHvey/g4A5z37TFwQ1QFrXgP3WY1TjhCwNl5HETGPGrisEsdcA3XoH Cg7JcbgixBflMmaCeLV++vYPcvb0h3DlgZShxGCjZ1OwvTND67nZsgCkXs4nXN9lFWq4 vntw== X-Gm-Message-State: AOAM531eukc/alWG2Vlo6jLN80a8oCE+XFeO9kNDGiwAFIPzRl152y3t iofc3SRwNl1wR7ok8N8BdWDN5gniVlc= X-Google-Smtp-Source: ABdhPJwAhQLi3lV/Bei5RhRaeaJRxsTblY7MM8vKZR/yi3XsK4xEKdgXRxBTWCND1MChQ54D4qKg3A== X-Received: by 2002:a05:600c:3584:: with SMTP id p4mr12210385wmq.168.1635428434102; Thu, 28 Oct 2021 06:40:34 -0700 (PDT) Original-Received: from amdahl30 ([2a01:e0a:253:fe0:2ef0:5dff:fed2:7b49]) by smtp.gmail.com with ESMTPSA id b19sm6787284wmj.9.2021.10.28.06.40.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Oct 2021 06:40:33 -0700 (PDT) In-Reply-To: <58f0c59d-d634-849b-05d4-e84eae9ab3a3@easy-emacs.de> ("Andreas =?UTF-8?Q?R=C3=B6hler?="'s message of "Thu, 28 Oct 2021 12:17:26 +0200") 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:218507 Archived-At: Andreas R=C3=B6hler writes: > When in init-file > > (add-hook 'org-mode-hook (lambda () (electric-indent-mode -1))) > (setq org-adapt-indentation t) > > C-j would indent. > > However, IMO doesn't make sense to require these extra config in order > to get a reasonable behavior. And everything hinges on what one finds "reasonable". As discussed in bug#51167, in the wake of electric-indent-mode being honored in Org 9.4, plenty of people have come to emacs-orgmode to express that they did not expect RET to indent. Thus Org maintainers chose to change the default value of org-adapt-indentation for Org 9.5. Note that by default (electric-indent-mode t, org-adapt-indentation nil) RET *does* indent in some specific scenarios, e.g. "- list item RET" will indent (resp. with electric-indent-mode nil, "- list item C-j"), because Org assumes that you want to add a paragraph to your list item. To recap: - electric-indent-mode is enabled by default in Org, as it is globally in Emacs: hence RET indents, C-j does not. - org-adapt-indentation tells Org whether you want your documents to be hard-indented or not: starting with 9.5, they won't be by default. > When calling C-u RET, get "org--newline: Wrong type argument: > number-or-marker-p, (4)" That does look like a bug, however.