From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Ed Avis Newsgroups: gmane.emacs.bugs 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 Message-ID: References: <86lgytl3so.fsf@waniasset.com> <83fup16xde.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1473952927 12181 195.159.176.226 (15 Sep 2016 15:22:07 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 15 Sep 2016 15:22:07 +0000 (UTC) Cc: "24443@debbugs.gnu.org" <24443@debbugs.gnu.org> To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 15 17:21:59 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bkYU9-0002Hn-Fz for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Sep 2016 17:21:57 +0200 Original-Received: from localhost ([::1]:35459 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkYU7-00052M-G1 for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Sep 2016 11:21:55 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51871) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkY1I-00055b-Is for bug-gnu-emacs@gnu.org; Thu, 15 Sep 2016 10:52:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bkY1C-00030Y-HD for bug-gnu-emacs@gnu.org; Thu, 15 Sep 2016 10:52:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34660) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkY1C-00030P-E9 for bug-gnu-emacs@gnu.org; Thu, 15 Sep 2016 10:52:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bkY1C-0005On-8q for bug-gnu-emacs@gnu.org; Thu, 15 Sep 2016 10:52:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ed Avis Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Sep 2016 14:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24443 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24443-submit@debbugs.gnu.org id=B24443.147395109120711 (code B ref 24443); Thu, 15 Sep 2016 14:52:02 +0000 Original-Received: (at 24443) by debbugs.gnu.org; 15 Sep 2016 14:51:31 +0000 Original-Received: from localhost ([127.0.0.1]:60605 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bkY0c-0005Nv-Uc for submit@debbugs.gnu.org; Thu, 15 Sep 2016 10:51:31 -0400 Original-Received: from mail1.bemta6.messagelabs.com ([193.109.254.107]:51250) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bkY0W-0005Nh-EL for 24443@debbugs.gnu.org; Thu, 15 Sep 2016 10:51:25 -0400 Original-Received: from [193.109.254.147] by server-3.bemta-6.messagelabs.com id DE/68-04595-565BAD75; Thu, 15 Sep 2016 14:51:17 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrFKsWRWlGSWpSXmKPExsWi+sWpUjd1661 wg/uLOSw+b9zHZvHyylFmByaPi5P2MXu0TTMLYIpizcxLyq9IYM2YOLGTseAdZ0Xn06msDYzt HF2MXBxCAmsZJR5cP8gE5/yc/5C5i5ETyNnNKPHtsgCIzSagKNE2Zxo7iC0ioCBx9+VtRhCbW cBY4uT/PaxdjBwcwgLpEm9Xs0CUZEic3/QRyjaSaJ9/EWwki4CqxN5Vr8DivAIuEue3HWCCWO Us8X3GCrCRnEA1lzousILYjAKyEo9W/mKHWCUucevJfLB6CQEBiSV7zjND2KISLx//Y4WwDSS 2Lt3HAmErSKw49IQNoldHYsHuT1C2tsSyha+ZIW4QlDg58wkLxA1yEnfafjFPYBSfhWTdLCTt s5C0z0LSvoCRZRWjenFqUVlqka6hXlJRZnpGSW5iZo6uoYGZXm5qcXFiempOYlKxXnJ+7iZGY LwxAMEOxp3PnQ4xSnIwKYnyzthwK1yILyk/pTIjsTgjvqg0J7X4EKMMB4eSBK/dFqCcYFFqem pFWmYOMPJh0hIcPEoivI4gad7igsTc4sx0iNQpRl2OdXNvrGUSYsnLz0uVEue1ASkSACnKKM2 DGwFLQpcYZaWEeRmBjhLiKUgtys0sQZV/xSjOwagkzCsAMoUnM68EbtMroCOYgI7YsuY6yBEl iQgpqQZGo71Lv7YdsZp8Nr/b8siuwGSWM9OrrKbVuN7a5+Z7+sqJmUcs/1/7v3qXZKG8befij +fM7j1TXZXY97y65U1vfu/1iAVT3M5+W/1rBu+T6PUi0oa/DwcyWbGzJXknm+dV6K1y+Wub8H X-Env-Sender: eda@waniasset.com X-Msg-Ref: server-8.tower-27.messagelabs.com!1473951076!49114460!1 X-Originating-IP: [37.244.66.121] X-StarScan-Received: X-StarScan-Version: 8.84; banners=waniasset.com,-,- X-VirusChecked: Checked Original-Received: (qmail 43507 invoked from network); 15 Sep 2016 14:51:17 -0000 Original-Received: from unknown (HELO waniasset.com) (37.244.66.121) by server-8.tower-27.messagelabs.com with AES256-SHA encrypted SMTP; 15 Sep 2016 14:51:17 -0000 Original-Received: from WCL-EX13MBX-DR.wcl.local (10.45.7.24) by WCL-EX13MBX.wcl.local (10.45.7.22) with Microsoft SMTP Server (TLS) id 15.0.1178.4; Thu, 15 Sep 2016 15:51:14 +0100 Original-Received: from WCL-EX13MBX.wcl.local (10.45.7.22) by WCL-EX13MBX-DR.wcl.local (10.45.7.24) with Microsoft SMTP Server (TLS) id 15.0.1178.4; Thu, 15 Sep 2016 15:51:13 +0100 Original-Received: from WCL-EX13MBX.wcl.local ([fe80::e996:e311:ad61:40e6]) by WCL-EX13MBX.wcl.local ([fe80::e996:e311:ad61:40e6%12]) with mapi id 15.00.1178.000; Thu, 15 Sep 2016 15:51:12 +0100 Thread-Topic: bug#24443: 24.5; Feature: C-n and C-p to move logically while DOWN and UP move physically Thread-Index: AQHSD18XxtRx4rNroE6NXXDhTwhoMKB6oDDQ In-Reply-To: <83fup16xde.fsf@gnu.org> Accept-Language: en-US, en-GB Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.45.11.139] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:123339 Archived-At: 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 l= ine 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 'exp= ert' 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 expe= ct. The tutorial would need to change and say that while the arrow keys move po= int around physically on the screen, the C-n and C-p keystrokes will always go to the next or previous line if o= ne 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 programmin= g. --=20 Ed Avis