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 iNKPEKQXjmA6FAAAgWs5BA (envelope-from ) for ; Sun, 02 May 2021 05:08:20 +0200 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 MDNADKQXjmCiJgAAB5/wlQ (envelope-from ) for ; Sun, 02 May 2021 03:08:20 +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 879B11DE8A for ; Sun, 2 May 2021 05:08:19 +0200 (CEST) Received: from localhost ([::1]:39642 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ld2Sv-0001Re-Fy for larch@yhetil.org; Sat, 01 May 2021 23:08:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51076) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ld2SY-0001RY-Io for emacs-orgmode@gnu.org; Sat, 01 May 2021 23:07:54 -0400 Received: from mail-qk1-x72d.google.com ([2607:f8b0:4864:20::72d]:33717) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ld2SW-0004LL-5o; Sat, 01 May 2021 23:07:54 -0400 Received: by mail-qk1-x72d.google.com with SMTP id o5so2111091qkb.0; Sat, 01 May 2021 20:07:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:references:user-agent:from:to:cc:subject:in-reply-to :message-id:date:mime-version; bh=hKuCcG+IzoDd08YCoiLgqMQXlQ3DWzajmaFZL2/lCHQ=; b=C3wuHsRKL3PVdMg/YHz2bsI0jFkgsi88UbSGArJssH0gGkzW5MxeiykahH1JREFEAg x9I3ayBo14rGfOmcX/evLwViiBKn1BJqiEOE4T3QCYNti98hPMwzYDoT+WUix24QGZI4 1YGPjm8hncrz0THkD9+7IN7ExECMcYB7D61dp6+oyaqvWNr7zTDT0lV7UHgDGhhiFxWj aZDVhFy9diPEfOzZCrwkQDitxfQ0EoB7kIoIbnJqXTHjRQwkWRaJJqJQaeMx0sL0rSMo 1I0ppKg2R4oojZ8ulJfCHhBMYqcXcQiIoNhTIukEniMhCdO7XNvcFFnCWHkFPOO4cCJX MDgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:references:user-agent:from:to:cc:subject :in-reply-to:message-id:date:mime-version; bh=hKuCcG+IzoDd08YCoiLgqMQXlQ3DWzajmaFZL2/lCHQ=; b=YMwFRFHrIOeBrtQVCdZTozBxVBprOGRWa9uLAztTZDENHOv5VkQWx2g4GHvnTbWsxn t5hgTrczPviuKoBVJ9vdj5+nfjgVY+AWruYz/XK5H6LRPhBX5Lageva6reu0yvq9CU+U uhTDNuttaubDwxfCEu+tZg4/msj38ZO4tfV9eL6Qb5ctN7lZcWCB3l4/Cc40/e7rxJ4+ +51tu5BF2HOEPa/NT/JhCkn9jl+zeYnMaRyjfNjB9EkSTVECGvEhQgS5WIHLMozOYYsL KbfdGC82w7uuFKwSzlt2C4Tw331Zl3Xt7+w5zUbZ4hGogHHpSEONqtT+pjhY6tohd4X4 bySQ== X-Gm-Message-State: AOAM532Hp+UiZtZnjdSMgk31cAjxRwN8HlfPcMdkwlxFySt3yi16ZPRl 8Nvfu35aHZ0NVL6cl1US5oMgirQPOEFRHQ== X-Google-Smtp-Source: ABdhPJw8uPMzdQd98zBPKdAeHItsDIRYl3xgSL9ke1zjbsYi+I3ujeuh8S+cJFavp/+jtxa3FZVjZA== X-Received: by 2002:a05:620a:130f:: with SMTP id o15mr4131936qkj.252.1619924870088; Sat, 01 May 2021 20:07:50 -0700 (PDT) Received: from gusbrs-laptop ([156.146.42.130]) by smtp.gmail.com with ESMTPSA id 190sm5368534qki.115.2021.05.01.20.07.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 01 May 2021 20:07:49 -0700 (PDT) References: <875z73br32.fsf@gmail.com> <87bl9ufnnh.fsf@gnu.org> User-agent: mu4e 1.4.15; emacs 27.2 From: Gustavo Barros To: Bastien Subject: Re: Bug: org-insert-heading-respect-content before first heading [9.4 (9.4-19-gb1de0c-elpaplus @ /home/gustavo/.emacs.d/elpa/org-plus-contrib-20201019/)] In-reply-to: <87bl9ufnnh.fsf@gnu.org> Message-ID: <87eeepzvcu.fsf@gmail.com> Date: Sun, 02 May 2021 00:07:45 -0300 MIME-Version: 1.0 Content-Type: text/plain; format=flowed Received-SPF: pass client-ip=2607:f8b0:4864:20::72d; envelope-from=gusbrs.2016@gmail.com; helo=mail-qk1-x72d.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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 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=1619924900; 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=hKuCcG+IzoDd08YCoiLgqMQXlQ3DWzajmaFZL2/lCHQ=; b=Ubuy4b4CaQ5O1qk5Li3HCr49OT/mCMBcDtR+LEJxOY8SyzE4IUWD4zP50fwRi+Zr7Y1Zfj wsFeZHEkRLKDo/AlJ+5S0zYZdSKKWZDzHyxslaFW8kX45P9Uo9Q4isWefy2iW9efzm47qm CA4zhoQxm/B63hA1jXJj0MJ9l3YKdFR43Dpo8c1TzHBph7ruxFRuMzeG5cS0LcauxTbMZx drDsuXZkk4GfdUdNVD/qoxOzTb/HzIiN+aaugUS10dCyIXbNZeb81LXxVK44Zr5R6gX8/P W8b4i5LJqRiaM3LZOdItoJbPDA0Irqc+NX6gU7eddE0NaXdVNU94PgsydtT9uw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1619924900; a=rsa-sha256; cv=none; b=fdQkJ4ErZurKMtaw4vgeO1hj8ZKvbrXXYmdpEyNBxhSqM1EFssbeT6A1aUOis1uJuG5aGv YRBMDpQ2sJKIIWzpsRnEX0t7mcYmx0MjGV68OcAho59CWlnV0sGBRNWzG4ThZKXlfrjB16 BHH0CbyrGLXODue9XAMKEznswrS6aGBIxL1wXLcugW8aBf8VhwmLLNIp/tzW0h7e4HjldS bgsig5A4LsqOHE51d8xYry0WrXjI+Wt6WLjmCHySwdAC6lz0gcR3Ks0ShBam/s22vLd5kh UaKk/FgJ5kekEkgpUOCEte1kkBBOlK33ABoJqvl/vWUbh5taiD8NWn2UP8aSaw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=C3wuHsRK; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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.36 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=C3wuHsRK; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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: 879B11DE8A X-Spam-Score: -1.36 X-Migadu-Scanner: scn0.migadu.com X-TUID: BJzPcwJtjrwI Hi Bastien, On Sat, 01 May 2021 at 13:02, Bastien wrote: > Hi Gustavo, > > Gustavo Barros writes: > >> I just found a misbehaving of `org-insert-heading-respect-content': >> when >> it's called before the first heading in the buffer, it breaks the >> structure of that fist heading by inserting a new heading on the line >> the previous heading existed. > > Fixed with commit fb3030188 in the maint branch, thanks a lot. > > Please test it and report any problem you may encounter. Thank you very much. I just tested the fix and, indeed, `org-insert-heading-respect-content' no longer breaks the structure of the first heading. However, if I may add a nitpick, the value of `org-blank-before-new-entry' does not seem to be honored in this case. For default values, a distance of one blank line is ensured to the next heading. In the report's ECM, after the fix, the new heading is inserted immediately before it. (I'm not sure it is really `org-blank-before-new-entry' which is at play here, but the behavior is not the same before the first heading than it is after it, with respect to blank lines). Best, Gustavo.