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 ms11 with LMTPS id sD7qOoI8xV9lWQAA0tVLHw (envelope-from ) for ; Mon, 30 Nov 2020 18:40:02 +0000 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 MNPKNoI8xV8BLwAAB5/wlQ (envelope-from ) for ; Mon, 30 Nov 2020 18:40:02 +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 495B89402DD for ; Mon, 30 Nov 2020 18:40:02 +0000 (UTC) Received: from localhost ([::1]:53784 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kjo5h-0003Qf-7i for larch@yhetil.org; Mon, 30 Nov 2020 13:40:01 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:36352) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjo43-0003QG-Sz for emacs-orgmode@gnu.org; Mon, 30 Nov 2020 13:38:20 -0500 Received: from mout01.posteo.de ([185.67.36.65]:50481) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjo40-0003nN-Jy for emacs-orgmode@gnu.org; Mon, 30 Nov 2020 13:38:19 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 1B009160061 for ; Mon, 30 Nov 2020 19:38:14 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1606761494; bh=muLDZ+Xq3oE3zxI4KfnnXYtXRj83tUBP+D+t1jyOndg=; h=From:To:Cc:Subject:Date:From; b=ohaoFksHkwtZnjuXjANnCnDr48G/vThTDNnwTIs2i4W52TElD6hYY8B+Pz0rHiFOR 5JF5RtsLJnrKcmW3iryE7fTNjtv7MeB/Z4OmZ2czjgCKJil1jdc1okHMdWu9fsCb5c rGRYyz9nYG3rq9ngXVsFBx9oAEGNblx+klrtkVXKC5158EBtrclIVJy+Zz9PFLWCOM bUpO0G7Xl/dRE4Be5qDuIDFHPHP17pDq5dZF7W1kfbc/Ma7RbYod1xDWM2A1Md1RhU BFSRctzR46M/qCCDsJ9hJX0MiB6H/aOAS0TTKDADyTHRYMn+KBJ3godBClZEMbD05o Mr67xj2yL3YVA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4ClDWS6SK7z6tmM; Mon, 30 Nov 2020 19:38:12 +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 19:38:11 +0100 Message-ID: <87360qn10s.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.65; envelope-from=malsburg@posteo.de; helo=mout01.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_H4=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.98 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.de header.s=2017 header.b=ohaoFksH; 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: 495B89402DD X-Spam-Score: -2.98 X-Migadu-Scanner: ns3122888.ip-94-23-21.eu X-TUID: QMtDsy+1JPLK 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. > --Diego The space is deleted immediately. But the fact that it=E2=80=99s not happe= ning on your system perhaps means that there *is* a setting that prevents i= t. The question is: which? By the way, I=E2=80=99m using the master branch from https://code.orgmode.o= rg/bzg/org-mode.git as installed by straight.el. Titus