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 +Lu/LKVFxV9nVQAA0tVLHw (envelope-from ) for ; Mon, 30 Nov 2020 19:19:01 +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 4FCrKKVFxV/QSwAAB5/wlQ (envelope-from ) for ; Mon, 30 Nov 2020 19:19:01 +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 072BE9403EC for ; Mon, 30 Nov 2020 19:19:00 +0000 (UTC) Received: from localhost ([::1]:54430 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kjohO-0001lH-K0 for larch@yhetil.org; Mon, 30 Nov 2020 14:18:58 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:47862) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjogE-0001kv-CM for emacs-orgmode@gnu.org; Mon, 30 Nov 2020 14:17:46 -0500 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]:38222) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kjog7-0000lw-Hz for emacs-orgmode@gnu.org; Mon, 30 Nov 2020 14:17:45 -0500 Received: by mail-wm1-x329.google.com with SMTP id g185so590649wmf.3 for ; Mon, 30 Nov 2020 11:17:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=ddCTMqGBwpeHeiJp+NN7ZdnM/dk4jXltmmdF7YA2X3c=; b=e66fM5Po07HemX4HtyWgwlUBZSdd66FU2wQOb2k82LyGN3CikfeVGLc+4mBGFSn6p3 N3K5p8cZKfgR/nH/d3qqShIkwgQ+KrMcO3P4g2evSXTq7/Gc8gSjNeM/G8cmTHSlnupn UFxFpNDJGxyeYv3rJ7jQr/sphQeDBIe3kmMPFevmKqjNsuf5BVf3grlcdWHOguD18X9R vTVKNaaQp7Il0g+mGz/zTh4F4J2KJHL5e6q4obBOgMV2qSp/XPYvKwrlBz9N2Y2M1+xC OgNGEbiW0gsYboiE+e5qTpuXM/JjnJWFZIbCVQz7bW6NcqDjHVmAV3tva46SNNp1rAep CXmg== 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:content-transfer-encoding; bh=ddCTMqGBwpeHeiJp+NN7ZdnM/dk4jXltmmdF7YA2X3c=; b=YAOWIqKZW6l0bEec5luduQF5J0GUjVvlGNDk3mEhpJ1f6evxlYf8bXwlZ8gQcghNHe in8Xas/0Aj90Cg0y+/SpTjsGz9yxZdzUTQ4YZDio6dguytCu7AKCZR1YUUd86Vq5I6Ci xRh6qiF1TqYSeh4A9ojG5QcwEZ+DHEAQ7AXKemm+6CtFrrvy66RKz57/FQuOs8pm02+l l3MspOJyyBynOXshW23ubtdDv/EA09sCU85axPUSctNzEddOarSQIdsvsuD5rRfb/jwb 1mL8a9H9TFLAQwiZtrgUlL9S9I1hN+/4wTE7GGGTBu8P3SaVcnRJnY12nW9/2ti7tau4 5w5A== X-Gm-Message-State: AOAM532ZifUH8xN0whgvQ70bmiK2HEX2IvIIi3lT1e0nJEOOqUwKH2Nd I6ZAJ4BafYlcVeKNoVQCkyu9vJB4gh8xnXwxiXk= X-Google-Smtp-Source: ABdhPJweCNCSx9Akq94mjY2PXjhzRP4d13SKaFlLAtLAniL59yB6VYFWG2gg+NZUybmLnBRQhyKwlBt1N+/acqjauqs= X-Received: by 2002:a05:600c:cc:: with SMTP id u12mr378320wmm.42.1606763857487; Mon, 30 Nov 2020 11:17:37 -0800 (PST) MIME-Version: 1.0 References: <87tut6pxp1.fsf@posteo.de> <14271996-3E32-4E0D-A61D-C69F0FC01475@health.ucsd.edu> <87o8jevhjf.fsf@posteo.de> <87360qn10s.fsf@posteo.de> In-Reply-To: <87360qn10s.fsf@posteo.de> From: Tom Gillespie Date: Mon, 30 Nov 2020 14:17:25 -0500 Message-ID: Subject: Re: How to preserve empty headings To: Titus von der Malsburg Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::329; envelope-from=tgbugs@gmail.com; helo=mail-wm1-x329.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_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: Diego Zamboni , Org mailing list , "Berry, Charles" Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -1.19 Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=gmail.com header.s=20161025 header.b=e66fM5Po; 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: 072BE9403EC X-Spam-Score: -1.19 X-Migadu-Scanner: ns3122888.ip-94-23-21.eu X-TUID: Pu48T+pPgXCU This is caused by elastic-indent-mode. As foretold https://lists.gnu.org/archive/html/emacs-orgmode/2020-11/msg00325.html. Tom On Mon, Nov 30, 2020 at 1:38 PM Titus von der Malsburg wrote: > > > On 2020-11-30 Mon 19:25, Diego Zamboni wrote: > >> > >> I=E2=80=99m aware of several workarounds and this one is perhaps the b= est. > >> However, I=E2=80=99d prefer if RET would just work as expected. Org s= ometimes > >> 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 wa= s > > using =3Ddelete-trailing-whitespace=3D as part of my =3Dbefore-save-hoo= k=3D. > > --Diego > > The space is deleted immediately. But the fact that it=E2=80=99s not hap= pening on your system perhaps means that there *is* a setting that prevents= it. The question is: which? > > By the way, I=E2=80=99m using the master branch from https://code.orgmode= .org/bzg/org-mode.git as installed by straight.el. > > Titus > >