all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Free cursor movement beyond the end of line
@ 2018-05-14  6:32 yegupov
  2018-05-14  8:16 ` Marcin Borkowski
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: yegupov @ 2018-05-14  6:32 UTC (permalink / raw)
  To: help-gnu-emacs

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?


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-05-17 14:50 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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.