From: Diego Zamboni <email@example.com>
To: Titus von der Malsburg <firstname.lastname@example.org>
Cc: "Berry, Charles" <email@example.com>,
Org mailing list <firstname.lastname@example.org>
Subject: Re: How to preserve empty headings
Date: Mon, 30 Nov 2020 20:25:53 +0100 [thread overview]
Message-ID: <CAGY83Ed2h-_Fzuf4xBvc_y97_u0pTkPcvdHGvkpoyfLNNWWSCA@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1710 bytes --]
What are RET and C-j bound to?
In my setup, RET is bound to =org-return=, which does not delete spaces,
but C-j is bound to =org-return-and-maybe-indent=, which does. So I have
the opposite behavior as yours.
There were some recent changes in behavior of Org with respect to
electric-indent-mode (long discussion in the list), I think this might have
something to do with it but did not follow the full discussion.
Hope this helps,
On Mon, Nov 30, 2020 at 7:38 PM Titus von der Malsburg <email@example.com>
> On 2020-11-30 Mon 19:25, Diego Zamboni wrote:
> >> I’m aware of several workarounds and this one is perhaps the best.
> >> However, I’d prefer if RET would just work as expected. Org sometimes
> >> inserts extra material on RET which I think is okay (e.g. indentation),
> >> 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 =delete-trailing-whitespace= as part of my =before-save-hook=.
> > --Diego
> The space is deleted immediately. But the fact that it’s not happening on
> your system perhaps means that there *is* a setting that prevents it. The
> question is: which?
> By the way, I’m using the master branch from
> https://code.orgmode.org/bzg/org-mode.git as installed by straight.el.
[-- Attachment #2: Type: text/html, Size: 2265 bytes --]
next prev parent reply other threads:[~2020-11-30 19:26 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-30 17:21 How to preserve empty headings Titus von der Malsburg
2020-11-30 17:31 ` Berry, Charles via General discussions about Org-mode.
2020-11-30 18:14 ` Titus von der Malsburg
2020-11-30 18:25 ` Diego Zamboni
2020-11-30 18:38 ` Titus von der Malsburg
2020-11-30 19:17 ` Tom Gillespie
2020-11-30 19:25 ` Diego Zamboni [this message]
2020-11-30 22:25 ` Berry, Charles via General discussions about Org-mode.
2020-11-30 19:20 ` Titus von der Malsburg
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).