From: yegupov@gmail.com
To: help-gnu-emacs@gnu.org
Subject: Free cursor movement beyond the end of line
Date: Sun, 13 May 2018 23:32:37 -0700 (PDT) [thread overview]
Message-ID: <2871cce1-65e5-45ad-b618-7a5682112170@googlegroups.com> (raw)
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 reply other threads:[~2018-05-14 6:32 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-14 6:32 yegupov [this message]
2018-05-14 8:16 ` Free cursor movement beyond the end of line Marcin Borkowski
2018-05-14 8:16 ` Daniel Herzig
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=2871cce1-65e5-45ad-b618-7a5682112170@googlegroups.com \
--to=yegupov@gmail.com \
--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.