From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: need option so line-move-to-column ignores fields, plus patch Date: Mon, 25 Sep 2006 16:48:53 -0400 Message-ID: References: <2cd46e7f0608310848l743430e9ia7a1d45e22428083@mail.gmail.com> <2cd46e7f0608312339s16a2a101p8c30840bbdeb0d22@mail.gmail.com> <2cd46e7f0609032143v311b670dra2d2ef679dd936@mail.gmail.com> <2cd46e7f0609041256q73c0c0d3s7631a964ae9a8367@mail.gmail.com> <2cd46e7f0609060952m54601787x8c91412af7fbf69f@mail.gmail.com> <2cd46e7f0609070747o5028d2bewd5a9e79a5afd4a46@mail.gmail.com> <2cd46e7f0609231629hf2187cbl7e46507ee6070422@mail.gmail.com> <87zmcokjjs.fsf@stupidchicken.com> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1159217408 31737 80.91.229.2 (25 Sep 2006 20:50:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 25 Sep 2006 20:50:08 +0000 (UTC) Cc: ken.manheimer@gmail.com, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 25 22:50:06 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GRxOW-00019m-9P for ged-emacs-devel@m.gmane.org; Mon, 25 Sep 2006 22:49:40 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GRxOV-0002tD-T8 for ged-emacs-devel@m.gmane.org; Mon, 25 Sep 2006 16:49:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GRxNn-0002cQ-5q for emacs-devel@gnu.org; Mon, 25 Sep 2006 16:48:55 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GRxNm-0002c4-S8 for emacs-devel@gnu.org; Mon, 25 Sep 2006 16:48:54 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GRxNm-0002by-Jw for emacs-devel@gnu.org; Mon, 25 Sep 2006 16:48:54 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GRxSG-0004Ty-NS for emacs-devel@gnu.org; Mon, 25 Sep 2006 16:53:32 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1GRxNl-00060Z-KW; Mon, 25 Sep 2006 16:48:53 -0400 Original-To: Chong Yidong In-reply-to: <87zmcokjjs.fsf@stupidchicken.com> (message from Chong Yidong on Sun, 24 Sep 2006 18:04:55 -0400) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:60212 Archived-At: > | 1. With the cursor adjacent to the right of any bar, > | if you move forwards a line (^N), the cursor slips to column 0. > | 2. Moving backwards (^P) with the cursor in the same place, however, > | doesn't have this problem - it sticks near the boundary. > > #1 is clearly a bug. C-n should be symmetrical with C-p. I don't see where else the cursor can possibly go in #1. It can go to after the bar. That's where it should go. The logic of line-move is like this: "Try to naively move the cursor vertically down. If this moves us into a new field, go instead to the beginning of the field (if going forward) or the end of the field (if going backward)." I'm saying we need to change that logic, so that the results will be good. I think we need a concept of temporary goal fields to go with the temporary goal column. When you type the first line-move command it should record some info about the field you're in when you start. Then if a field with the same property appears on the line you move to, it should be handled as if it were -- in some sense -- "the same".