From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#13273: 24.3.50; [PATCH] enhancement request: repeatable `visual-line-mode' line movements Date: Thu, 27 Dec 2012 11:35:41 -0800 Message-ID: <80E0E0D28CDA4694A1A312C667199336@us.oracle.com> References: <3C4C2163F22D425BBB0EE69834231C56@us.oracle.com><83k3s6ni5u.fsf@gnu.org><6A3A32185AC5419EB8F0550D57356710@us.oracle.com><87623n9594.fsf@gmail.com> <87623nxq8u.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1356636987 7878 80.91.229.3 (27 Dec 2012 19:36:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 27 Dec 2012 19:36:27 +0000 (UTC) Cc: 13273@debbugs.gnu.org To: "'Vitalie Spinu'" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 27 20:36:42 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ToJFx-00086k-3f for geb-bug-gnu-emacs@m.gmane.org; Thu, 27 Dec 2012 20:36:41 +0100 Original-Received: from localhost ([::1]:47683 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ToJFi-0004NI-LS for geb-bug-gnu-emacs@m.gmane.org; Thu, 27 Dec 2012 14:36:26 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:44956) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ToJFe-0004NC-KY for bug-gnu-emacs@gnu.org; Thu, 27 Dec 2012 14:36:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ToJFW-00078B-6W for bug-gnu-emacs@gnu.org; Thu, 27 Dec 2012 14:36:22 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51993) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ToJFW-000787-3c for bug-gnu-emacs@gnu.org; Thu, 27 Dec 2012 14:36:14 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1ToJGI-00067Y-Fl for bug-gnu-emacs@gnu.org; Thu, 27 Dec 2012 14:37:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 27 Dec 2012 19:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13273 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 13273-submit@debbugs.gnu.org id=B13273.135663699523486 (code B ref 13273); Thu, 27 Dec 2012 19:37:02 +0000 Original-Received: (at 13273) by debbugs.gnu.org; 27 Dec 2012 19:36:35 +0000 Original-Received: from localhost ([127.0.0.1]:34011 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ToJFq-00066l-Cm for submit@debbugs.gnu.org; Thu, 27 Dec 2012 14:36:34 -0500 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:17177) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ToJFo-00066e-O7 for 13273@debbugs.gnu.org; Thu, 27 Dec 2012 14:36:33 -0500 Original-Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by aserp1040.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id qBRJZgHj016093 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 27 Dec 2012 19:35:43 GMT Original-Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id qBRJZgTg006048 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 27 Dec 2012 19:35:42 GMT Original-Received: from abhmt102.oracle.com (abhmt102.oracle.com [141.146.116.54]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id qBRJZgEi006692; Thu, 27 Dec 2012 13:35:42 -0600 Original-Received: from dradamslap1 (/130.35.178.8) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 27 Dec 2012 11:35:42 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <87623nxq8u.fsf@gmail.com> Thread-Index: Ac3kZkii/bAgdlIxQsOpKZxiQeZUxQAAb2Bw X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:69083 Archived-At: Again, so I can better understand your messages, did you try the patch? > Yet, another pattern: repeated invocations of C-a cycle between visual > and logical bols. Is that a suggestion of something you want or a complaint about what you see happening with the patch? > > Maybe I'm missing something, but I think that with the > > key bindings the patch makes, `home' and `end' should do what you > > are requesting. > > Indeed they do, but home/end are inconvenient keys. I agree. But the idea was to (a) make the home/end bindings compatible with what some users expect from outside Emacs, but also (b) make them repeatable. My only request is that we give repeatable commands to all of `C-a', `C-e', `home', and `end' for visual line mode and also globally. Which keys get which bindings is less important to me. But I happen to agree with you, personally, that I would use `C-a' and `C-e', not `home' and `end'. > I very much like the idea of the repeated invocation of C-a doing something > more than just staying at the beginning of line. Right. That's the idea. > The point is that I don't find moving to the next/previous line a very > useful feature. C-p/C-n do just that. They do not track bol/eol. If you mean first do `C-a' then `C-p C-p ...', then OK. I personally find that less convenent than just holding down `C-a'. And for eol it doesn't work at all, because of different line lengths. > What I propose is to be able to use the same key (C-a) for jumping to > both, visual and logical bols according to some user specified rule > (cycling for example). And your patch is very close to making that > possible. Feel free to make a concrete suggestion (code). What I agree with you on (so far) are: a. Users should be able to do repeated bol/eol for both visual and logical lines, in visual line mode. b. For my personal use, at least, I will favor `C-a'/`C-e' over `home'/`end'. I've used the same repeatable `C-a'/`C-e' thingie for non visual-line mode for a long time. I wouldn't be without it. Some reasonable extension to visual-line mode should be similarly helpful. And we should be able to accommodate the "conventional" use of `home'/`end' as well, just making their actions repeatable.