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 YFjbJWA5xV97VgAA0tVLHw (envelope-from ) for ; Mon, 30 Nov 2020 18:26:40 +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 qBqoIWA5xV8SIgAAB5/wlQ (envelope-from ) for ; Mon, 30 Nov 2020 18:26:40 +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 CC9309404FD for ; Mon, 30 Nov 2020 18:26:39 +0000 (UTC) Received: from localhost ([::1]:49682 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kjnsk-0006VR-G2 for larch@yhetil.org; Mon, 30 Nov 2020 13:26:38 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:32954) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjnrh-0006QI-V6 for emacs-orgmode@gnu.org; Mon, 30 Nov 2020 13:25:33 -0500 Received: from mail-ej1-x630.google.com ([2a00:1450:4864:20::630]:38236) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kjnrf-00022D-PP for emacs-orgmode@gnu.org; Mon, 30 Nov 2020 13:25:33 -0500 Received: by mail-ej1-x630.google.com with SMTP id a16so23653075ejj.5 for ; Mon, 30 Nov 2020 10:25:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zzamboni-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3dF9gaEqsqiBGWvjc2dWsmuZPI84LYJYoRnMNenS81c=; b=rbgWVdWfA6W7ka119/LztB6DXjWLvaxgAHDcZoW+pG/+kmlLKLJhPQH+kBd9OBmlTJ vM9xdI0BBHG+F+9jw4tzUnAouLlBlQoKit7ayldeVmrDt7L0kTtpRGYCcNma93CVlgVh dEJySnAN7fGZytCXaOeI6inz9FCRsHN9GM3Ke5b3QCx4UyAb7kYxPChg2QY+JEiVGESa 0d0fNe8jOpwGC88to33nn+ZmkfuFNQD5u9NVTdXm0DpsFFo+2G8iU67f0PYhfsPYNe0H hZimMAKe6v9+jmXewcSjUhhZ0D+dBagdWRnoP749a5/a91gEgNcNNpGeJglU0ylTe81B wbFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3dF9gaEqsqiBGWvjc2dWsmuZPI84LYJYoRnMNenS81c=; b=DImMioBIiTERmj8PaADe2j7q53XJKOTyc57eRaI65Rv5u5i3/hAZFrIkR+f3h8MJgL 0MCIodJSLyPrRTzKYUBRG/R+a5zJGxFTSz9I4PVh5sPu1Z0qw/cyOC0urUHXve1uA/Ij 7nqs8fr7s7gJ8OFgTCki+zr47MUnHtEhzZtKLnkloVnmDwPdxeUkvT+AB9QFsIuqAYR6 QvYyRloA5iXpBIh/etYMUG0oNg6gp0pYkpwsedZT1WFdX4ajJOrsHGXUXoS17zgz1XKp C2go3f2GDpnMgaDQ3lThlo/xvBDyH8/2AFc8R/W2BXpzw4Lkci/4aMhjvSZxjFvpJh3a SWDQ== X-Gm-Message-State: AOAM533fDfTKJXifyM4ukpwyhJZa9mzGBVnVkZSqanBRw6+1LdyjHACc SlMkzpdXXLayO2w66w3b/tztAykSvm3Lmeyejqdy0g== X-Google-Smtp-Source: ABdhPJzkep9/eOp3WmI1UdgmDi8LYSANDh6JJMB1jhqdf7t9K4h9vMT/cTovCnrLIbSa/zRjFBCRieR4CefxX185J4Q= X-Received: by 2002:a17:906:b307:: with SMTP id n7mr13996990ejz.102.1606760729426; Mon, 30 Nov 2020 10:25:29 -0800 (PST) MIME-Version: 1.0 References: <87tut6pxp1.fsf@posteo.de> <14271996-3E32-4E0D-A61D-C69F0FC01475@health.ucsd.edu> <87o8jevhjf.fsf@posteo.de> In-Reply-To: <87o8jevhjf.fsf@posteo.de> From: Diego Zamboni Date: Mon, 30 Nov 2020 19:25:18 +0100 Message-ID: Subject: Re: How to preserve empty headings To: Titus von der Malsburg Content-Type: multipart/alternative; boundary="000000000000845eb305b5572256" Received-SPF: none client-ip=2a00:1450:4864:20::630; envelope-from=diego@zzamboni.org; helo=mail-ej1-x630.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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=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.48 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=zzamboni-org.20150623.gappssmtp.com header.s=20150623 header.b=rbgWVdWf; dmarc=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: CC9309404FD X-Spam-Score: -2.48 X-Migadu-Scanner: ns3122888.ip-94-23-21.eu X-TUID: aFyhj58Bj/kT --000000000000845eb305b5572256 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable > > I=E2=80=99m aware of several workarounds and this one is perhaps the best= . > However, I=E2=80=99d prefer if RET would just work as expected. Org some= times > inserts extra material on RET which I think is okay (e.g. indentation), b= ut > 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 --000000000000845eb305b5572256 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I=E2=80=99m aware of several workarounds and this one is= perhaps the best.=C2=A0 However, I=E2=80=99d prefer if RET would just work= as expected.=C2=A0 Org sometimes inserts extra material on RET which I thi= nk is okay (e.g. indentation), but is there any precedent, in Org or Emacs = more broadly, for RET deleting text?=C2=A0 It seems very counter-intuitive = to me.

=C2=A0Could it be that the space= is being deleted not when you press RET but when you save the file? I don&= #39;t see any space deletion when entering an empty headline, but in my con= fig, whitespace at end of lines is deleted on=C2=A0save. In Doom Emacs this= is enabled by default, and even before I was using =3Ddelete-trailing-whit= espace=3D as part of my =3Dbefore-save-hook=3D.

--= Diego

--000000000000845eb305b5572256--