From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id ACvQLDG3x2KFCwEAbAwnHQ (envelope-from ) for ; Fri, 08 Jul 2022 06:48:49 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id kN+uLDG3x2LuEwAA9RJhRA (envelope-from ) for ; Fri, 08 Jul 2022 06:48:49 +0200 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 350C215662 for ; Fri, 8 Jul 2022 06:48:49 +0200 (CEST) Received: from localhost ([::1]:59006 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o9fuy-0003lB-Py for larch@yhetil.org; Fri, 08 Jul 2022 00:48:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40062) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o9fua-0003l3-9g for emacs-orgmode@gnu.org; Fri, 08 Jul 2022 00:48:16 -0400 Received: from mail-pj1-x102d.google.com ([2607:f8b0:4864:20::102d]:46702) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o9fuV-0001ZP-Dr for emacs-orgmode@gnu.org; Fri, 08 Jul 2022 00:48:15 -0400 Received: by mail-pj1-x102d.google.com with SMTP id t5-20020a17090a6a0500b001ef965b262eso766278pjj.5 for ; Thu, 07 Jul 2022 21:48:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=NxHbMJQpHVVvaP1pIBFA3P8AGtM1vjaPhq5FzyJ4ghk=; b=psdEe4/Zae8t9/6D1/Vo7B477HaGBt4i3ZGcV+ooojEGUIm4En+UJ6wekrce+iyAMX IKM3BltI+Y+dAWQROJ6z1nmxVUOKUql5mNms3N5FkyPUeMGUYa6QSdFvTHYIHAJ67GYr 776AXNBB5ayBV7yc+gLotlBHq5A8N9xnqjgf33wOnJFSf+9ZADz70/9c/3iuLgE3dtB5 xmH3h/vPhy0QQ9ueokjA6qVczThgWKMH6ZyEcqFOD7AiSVWO3j8Zt3MgFgTG1StDQvyl t0GYIKVJ63u1krFZw7TRYulmysM5Tv5xeAiEQ6Rd6a6fGBDfW0hOvSS5Y4EWRMo4KjN7 9W8Q== 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:in-reply-to:references:date :message-id:mime-version; bh=NxHbMJQpHVVvaP1pIBFA3P8AGtM1vjaPhq5FzyJ4ghk=; b=GcNq0tMmDke6zqcPVvzcSitajAtdLhgQ9UaIkmz7cnaXVT3wshIkPuUsCRVaOXTYpo S6lPiPQZNL7lTjS9KHipRLpthznMktQBY4EwR8sigVYl5+tesf8hOK6srzkN1MxRlKBr opVod/z0QCi3v9FagVta6JuSij+PgH35nVFTQQLK1wmGenzNI08WXOOMudfZIRd1lLLD ufPWSTDM7up7QrutQhH8ZCUKqqbIDmiuFPfh4n1URJTWcA1Vt6vI+FoJgknkppZmo+yw 0ZABJg9xfkZ5zlOg2rTNiNDiJjLh3Ew61zQjsSqOSSuqW90ysHEznBq5lF9YtsVCduu4 8bMw== X-Gm-Message-State: AJIora9D289Jp0a/tXeiproAlAxNTwGhY6cxmjCoZLghTRul3TBscf1v igs2cGjT8eM6o9jqmf9YRooK//v5mybZiBvvTGY= X-Google-Smtp-Source: AGRyM1t4LWqjeshRkF4rKZyF0jERMXjFxh7shGS4JHe1cZ9x3Wv4Seg6fX3SToCN4dY5jaGvBN8iIw== X-Received: by 2002:a17:90a:b701:b0:1e8:6d19:bcb with SMTP id l1-20020a17090ab70100b001e86d190bcbmr1782927pjr.218.1657255689566; Thu, 07 Jul 2022 21:48:09 -0700 (PDT) Received: from localhost ([155.94.207.39]) by smtp.gmail.com with ESMTPSA id p2-20020a1709027ec200b00168f08d0d12sm25930425plb.89.2022.07.07.21.48.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Jul 2022 21:48:09 -0700 (PDT) From: Ihor Radchenko To: Guillaume MULLER Cc: emacs-orgmode@gnu.org Subject: Re: org-meta-return / org-insert-heading does not insert new heading in middle of heading even id org-M-RET-may-split-line is set In-Reply-To: References: <87k08puqxk.fsf@localhost> Date: Fri, 08 Jul 2022 12:49:16 +0800 Message-ID: <87y1x42oqb.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::102d; envelope-from=yantar92@gmail.com; helo=mail-pj1-x102d.google.com 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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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 X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1657255729; 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=NxHbMJQpHVVvaP1pIBFA3P8AGtM1vjaPhq5FzyJ4ghk=; b=qiMF84d5p9BJMDCus1ljLB92nu+5f2TNpgZEnKCunmvA7swgIiPYmOB/JpIMnmZJQYkO/q 90AQTKOX/4sm9psMzH8fkTYOjb1SN6XQIau3DFPqAo9qfGbyBxqPJuS+/cOEVhxWNY6BEt Wmp1KfziVsRewkPzqklXv+5Iz7p/+Ojc2Htb4tLENYW5GaC/+PQR5FsazrRAdGs5mOvnm5 AXWsSuyTQbs88g3bgGM+l1R8yczjkiJRlRmTLQqbl4X6qw57WI3Emrtmmt5MJjL+owEJYa tGAmftMwhC3zNRws/tdguQ/92aNy9yg0m6ThUpaIcAmDP6UUmetCQpvSimhzlA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1657255729; a=rsa-sha256; cv=none; b=ec3AAnatwtVBXzYSa99pA134SFl3+7+7sWUnY1yoXfwu9SMgIUhcqExHWES7sb0IzcFAfq VaoFmyJyTlE/r5uQmfbuka5cBjqLxCVbgAJtReiyY4rCiBvwuKf6g5PBJJBPkdUQCHvn8R 3xroPYCIRCwNwGqEv4D6rZTKkB2hXIvvmWBbZrcQX68voKuwRUvWY75o788t5apg4a2dTx BrgK9IsiHVTohcp/+wuHvJoS0auBzfgAS+iUmR43le/HKGpHzmoDswIkMjopg2epDxQbY3 BUDYLUW7048AsBMjn9W4jKTX4TFkOMmHf2+jUf4E7oeDD4FbvfuHdav6xvaJwA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="psdEe4/Z"; dmarc=pass (policy=none) header.from=gmail.com; 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: -8.44 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="psdEe4/Z"; dmarc=pass (policy=none) header.from=gmail.com; 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: 350C215662 X-Spam-Score: -8.44 X-Migadu-Scanner: scn0.migadu.com X-TUID: QagMhTiBXcL0 Guillaume MULLER writes: >> I tried to set org-M-RET-may-split-line to nil first followed by setting >> it to either t or '((default . t)). For both values, I am seeing >> >> * heading number >> * <>one >> >> which is expected behavior. > > Are you using DoomEmacs or Vanilla Emacs? I am using Vanilla Emacs. Note that Doom is known for carelessly advising some Org functions and can sometimes break things. Such issues should be reported to Doom developers. > More precisely, are you using org-mode "9.6-??-e9da29b6f" as I do? (This is the only version that gives me the strange behavior) There is no such Org version. Our latest version tag is 9.5.4. If you are seeing 9.6-..., it indicates some problem with your package manager. I suggest to purge your local downloaded Org copy and re-install Org. >> Please, try to reproduce starting from emacs -Q (without Doom). >> See https://orgmode.org/manual/Feedback.html > What I tried: > > - Getting an as-vanilla-as-possible DoomInstall, by removing my config.org and sync'ing Doom. I get the same "9.6-??-e9da29b6f" org version and erroneous behavior. 9.6 means that your Doom is not clean enough. There is some problem with your Org source code used by Doom. > - Changing the version of org-mode used in Doom, by removing the directory and installing the one from MELPA (9.5.4). This gives me the correct behavior for org-meta-return, but it breaks too many other things in org to be usable. What do you mean by "breaks too many other things in org"? > - Using "vanilla" "emacs -Q" and running only org "9.6". > > 1. I've tried to manually load the org-version that comes with Doom, by writing & executing "(add-to-list 'load-path "/home/user/.emacs.d/modules/lang/org/lisp/autoload") (load "org")" from scratch buffer, then running org-reload > + but I get org-version 9.3 > + and I can't find a way to edit the "load-path" "variable" to remove the native path ("/usr/share/emacs/27.1/lisp/org") from the list (sorry newbie here...) I do not think that "/home/user/.emacs.d/modules/lang/org/lisp/autoload" contains Org source. AFAIK, Doom using using straight.el, which puts the packages sources into .emacs.d/straight/repos/ and .emacs/straight/build/. Though Doom might use different paths. You can try to watch the video I recorded on testing Org issues: https://open.tube/videos/watch/4d819114-43bf-42df-af94-f94fc53dd0d9 There, I showcased how to get a clean Org setup + vanilla Emacs. > 2. I've tried to git clone the org-mode repo in /tmp, but don't see any tag/branch that would correspond to a "9.6" version of org. > + I do see a commit matching e9da29b6f (e9da29b6fafe63abbc2774e9d485ac13d2811b65) > * I've tried to recover the code from this version "git checkout e9da29b6f ." > * Compiled it (make) > * Opened emacs -Q > * Wrote and executed "(add-to-list 'load-path "/tmp/org-mode/lisp/") (load "org")" in the scratch buffer > * Ran M-x org-reload > + But "M-x org-version" still returns "Org mode version 9.5.4", and it works as expected > > If you have any more hints on how I could setup an environment where I could test just org-mode "9.6-??-e9da29b6f" on a raw/vanilla emacs, I vwould be glad to test that. Again, there is no such tag. There is official release version, which is 9.5.4; and there are two development branches: bugfix and main. The bugfix is WIP minor release branch for 9.5.5 and main is the development branch for next major release. Note that Doom is using the development (main) branch, AFAIK. Best, Ihor