[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Why does C-M-o `split-line' leave trailing space on the old line?
From: |
Alan Mackenzie |
Subject: |
Re: Why does C-M-o `split-line' leave trailing space on the old line? |
Date: |
Fri, 17 Nov 2023 18:59:39 +0000 |
Hello, Eli.
On Fri, Nov 17, 2023 at 20:38:02 +0200, Eli Zaretskii wrote:
> > Date: Fri, 17 Nov 2023 17:40:27 +0000
> > From: Alan Mackenzie <acm@muc.de>
> > 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
> It lets you keep typing right after that.
Ah, is that it? It seems strange indeed to have a command which does two
disjoint things (first move point then split the line) rather than just
splitting the line at point.
I typically don't want to type further on the old line after C-M-o. If I
did, I would expect to type the space myself, or alternatively first move
point to after the space before typing C-M-o.
Maybe I should make my own private version of split-line.
--
Alan Mackenzie (Nuremberg, Germany).