all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ed Avis <eda@waniasset.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: "24443@debbugs.gnu.org" <24443@debbugs.gnu.org>
Subject: bug#24443: 24.5; Feature: C-n and C-p to move logically while DOWN and UP move	physically
Date: Thu, 15 Sep 2016 14:51:11 +0000	[thread overview]
Message-ID: <d46c2d3a0fba440d888feb9b7d57a103@WCL-EX13MBX.wcl.local> (raw)
In-Reply-To: <83fup16xde.fsf@gnu.org>

Eli Z. wrote:

>>Could I suggest that it might make sense for the more 'expert'
>>keystrokes C-n and C-p to default to logical line movement, while DOWN
>>and UP continue to move visually
>
>This could be a global minor mode, by default off.  I don't think we
>can make this the default behavior after so many years of the current
>behavior.

Yeah, you'd never change something as fundamental as moving up and down a line after decades of it working one way :-p.
My view is that while the arrow keys shouldn't change, C-n and C-p are 'expert' enough that a tweak to their behaviour can be justified,
particularly as it would be restoring an old and sometimes-missed feature.  But the Emacs maintainers will have the best idea of what their users expect.

The tutorial would need to change and say that while the arrow keys move point around physically on the screen,
the C-n and C-p keystrokes will always go to the next or previous line if one exists.  That would be something useful
for the tutorial to teach.

But apart from the question of defaults, a start would be to add functions next-line-logical and previous-line-logical.
These could then be bound to whatever keys you want without Lisp programming.

-- 
Ed Avis <eda@waniasset.com>





  reply	other threads:[~2016-09-15 14:51 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-15 12:56 bug#24443: 24.5; Feature: C-n and C-p to move logically while DOWN and UP move physically Ed Avis
2016-09-15 14:39 ` Eli Zaretskii
2016-09-15 14:51   ` Ed Avis [this message]
2016-09-15 15:18     ` Eli Zaretskii
2016-09-15 15:23       ` Ed Avis
2016-09-16  9:33         ` Eli Zaretskii
2016-09-16  9:34           ` Ed Avis
2016-09-16 10:02             ` Eli Zaretskii
2019-09-29  4:30 ` Stefan Kangas

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=d46c2d3a0fba440d888feb9b7d57a103@WCL-EX13MBX.wcl.local \
    --to=eda@waniasset.com \
    --cc=24443@debbugs.gnu.org \
    --cc=eliz@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.