unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: emacs-devel@gnu.org
Subject: Why does C-M-o `split-line' leave trailing space on the old line?
Date: Fri, 17 Nov 2023 17:40:27 +0000	[thread overview]
Message-ID: <ZVeli1dypBZnpRLI@ACM> (raw)

Hello, Emacs.

C-M-o, on something like:

     foo bar baz
            ^
	  point

will split the line into

     foo bar
             baz

, but will leave a trailing space on the first line.  This is in
accordance with its documentation in emacs.info, but this peculiarity
isn't mentioned in the doc string.

I find this trailing space irritating, as I frequently have to remove it
by hand.  What is the motivation for this trailing space, and do we
really want it?

-- 
Alan Mackenzie (Nuremberg, Germany).



             reply	other threads:[~2023-11-17 17:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-17 17:40 Alan Mackenzie [this message]
2023-11-17 18:38 ` Why does C-M-o `split-line' leave trailing space on the old line? Eli Zaretskii
2023-11-17 18:59   ` Alan Mackenzie

Reply instructions:

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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ZVeli1dypBZnpRLI@ACM \
    --to=acm@muc.de \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* 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

	https://git.savannah.gnu.org/cgit/emacs.git

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).