From: Daniel Herzig <daniel.herzig@outlook.at>
To: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: Re: Free cursor movement beyond the end of line
Date: Mon, 14 May 2018 08:16:51 +0000 [thread overview]
Message-ID: <HE1PR1001MB1292881B90F9E1CF2A9CE043869C0@HE1PR1001MB1292.EURPRD10.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <2871cce1-65e5-45ad-b618-7a5682112170@googlegroups.com> (yegupov@gmail.com's message of "Sun, 13 May 2018 23:32:37 -0700")
<yegupov@gmail.com> writes:
Hello,
I recently discovered rectangle-mode -- maybe it does what you want.
If you hit C-x SPC at the end of your long line you can press "down" and
will land exactly in the column below. It will not place any whitespace at
the and of your short line. If you hit C-g then, the cursor lands at the
end of the short line.
Best regards,
Daniel
> Hello.
>
> There is popular text editors option "allow cursor movement end of line".
> It was implemented in many of text editors long time ago.
>
> But it seems that it's absent in emacs (yes, I tried set-goal-column, picture-mode, artist-mode).
>
>
> For example when I edit the text:
> ------------------------------
> this is my long line|
> short line
> this is my other long line
> ------------------------------
>
> What I need:
>
> - when press "down" key cursor should keep position at column 21:
> ------------------------------
> this is my long line
> short line |
> this is my other long line
> ------------------------------
>
> - buffer shouldn't be modified because of cursor movement only, no need to surprising trailing spaces;
>
> - keys like C-e should move cursor to the REAL end of line:
> ------------------------------
> this is my long line
> short line|
> this is my other long line
> ------------------------------
> - this should be worked ok with visual-line-mode mode too
>
>
> Notes
> - set-goal-column seems a something close about that but not exactly
> - artist-mode and picture-mode unfortunatelly add extra spaces and has surprice behavour in visual-line-mode
>
>
> Is there a way to solve somehow this problem in emacs?
next prev parent reply other threads:[~2018-05-14 8:16 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-14 6:32 Free cursor movement beyond the end of line yegupov
2018-05-14 8:16 ` Marcin Borkowski
2018-05-14 8:16 ` Daniel Herzig [this message]
2018-05-14 12:52 ` Stefan Monnier
2018-05-14 15:21 ` Eli Zaretskii
2018-05-15 1:27 ` Stefan Monnier
2018-05-14 16:31 ` yegupov
2018-05-17 14:50 ` Stefan Monnier
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=HE1PR1001MB1292881B90F9E1CF2A9CE043869C0@HE1PR1001MB1292.EURPRD10.PROD.OUTLOOK.COM \
--to=daniel.herzig@outlook.at \
--cc=help-gnu-emacs@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.