From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id gHpZLi9GxV95XQAA0tVLHw (envelope-from ) for ; Mon, 30 Nov 2020 19:21:19 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id +FE2Ki9GxV8JfgAAbx9fmQ (envelope-from ) for ; Mon, 30 Nov 2020 19:21:19 +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 2DE1F94011C for ; Mon, 30 Nov 2020 19:21:19 +0000 (UTC) Received: from localhost ([::1]:56652 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kjoje-0002kf-61 for larch@yhetil.org; Mon, 30 Nov 2020 14:21:18 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:48422) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjoii-0002kD-Fh for emacs-orgmode@gnu.org; Mon, 30 Nov 2020 14:20:22 -0500 Received: from mout02.posteo.de ([185.67.36.66]:33595) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjoie-0000zS-JL for emacs-orgmode@gnu.org; Mon, 30 Nov 2020 14:20:20 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 66EDC2400FD for ; Mon, 30 Nov 2020 20:20:12 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1606764012; bh=giArAi6hIpmOaCe4qyTsEquUNMwCbEdAOYMjCKf/mfg=; h=From:To:Cc:Subject:Date:From; b=W5EpcUHxrLFIiYDUFsBr2JekcvduPtZ6GfhBzYJb7vkbTHbOn7CE+02h1PzVV5ECl oUgY2TUQzQumOKqwbhYoxNzl/Fy98bX+vnIVJndKq7EF8TpJLzUhzO8EIzR5MgQ1Oh wTJAjyMSNeAKbsg0c+C7mlu9OpAKefv3yOnq5I5a82mTf6jwUQ04AOJ2YwbuiqJu8y 8FWMKvNLK2l1jZVZhS7puXYYHEoyqwniXj/zPKRYS15fE0PxJkvUkHzHZeuqKdqLj7 vhVpaooBFa30lqFD0m499P3gxNIHgBV6URKTWq/aho4jdIR7vWf1C2ie0sdhkdjJl9 8miu/JdpHzRcA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4ClFRv241Wz9rxX; Mon, 30 Nov 2020 20:20:11 +0100 (CET) References: <87tut6pxp1.fsf@posteo.de> <14271996-3E32-4E0D-A61D-C69F0FC01475@health.ucsd.edu> <87o8jevhjf.fsf@posteo.de> User-agent: mu4e 1.5.5; emacs 28.0.50 From: Titus von der Malsburg To: Diego Zamboni Subject: Re: How to preserve empty headings In-reply-to: Date: Mon, 30 Nov 2020 20:20:09 +0100 Message-ID: <87zh2y1wk6.fsf@posteo.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.66; envelope-from=malsburg@posteo.de; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=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.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Berry, Charles" , Org mailing list Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.99 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.de header.s=2017 header.b=W5EpcUHx; dmarc=pass (policy=none) header.from=posteo.de; 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: 2DE1F94011C X-Spam-Score: -2.99 X-Migadu-Scanner: ns3122888.ip-94-23-21.eu X-TUID: i1GTTwgyclcq On 2020-11-30 Mon 19:25, Diego Zamboni wrote: >> >> I=E2=80=99m aware of several workarounds and this one is perhaps the bes= t. >> However, I=E2=80=99d prefer if RET would just work as expected. Org som= etimes >> inserts extra material on RET which I think is okay (e.g. indentation), = but >> is there any precedent, in Org or Emacs more broadly, for RET deleting >> text? It seems very counter-intuitive to me. >> > > Could it be that the space is being deleted not when you press RET but > when you save the file? I don't see any space deletion when entering an > empty headline, but in my config, whitespace at end of lines is deleted > on save. In Doom Emacs this is enabled by default, and even before I was > using =3Ddelete-trailing-whitespace=3D as part of my =3Dbefore-save-hook= =3D. Your comment has put me on the right track. The line-final whitespace was = not deleted by org but by electric-indent-mode, which apparently does this = by default. Sorry for the noise! Titus