From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Ken Manheimer" Newsgroups: gmane.emacs.devel Subject: Re: need option so line-move-to-column ignores fields, plus patch Date: Fri, 1 Sep 2006 02:30:09 -0400 Message-ID: <2cd46e7f0608312330y33311f07t2b9ea2ba4b8a882f@mail.gmail.com> References: <2cd46e7f0608310848l743430e9ia7a1d45e22428083@mail.gmail.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1157092263 16813 80.91.229.2 (1 Sep 2006 06:31:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 1 Sep 2006 06:31:03 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 01 08:31:02 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 1GJ2YL-0005QD-JT for ged-emacs-devel@m.gmane.org; Fri, 01 Sep 2006 08:30:57 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GJ2YL-0007n6-0o for ged-emacs-devel@m.gmane.org; Fri, 01 Sep 2006 02:30:57 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GJ2Xc-0007I4-6l for emacs-devel@gnu.org; Fri, 01 Sep 2006 02:30:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GJ2Xb-0007Hg-DH for emacs-devel@gnu.org; Fri, 01 Sep 2006 02:30:11 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GJ2Xb-0007Hc-94 for emacs-devel@gnu.org; Fri, 01 Sep 2006 02:30:11 -0400 Original-Received: from [66.249.82.239] (helo=wx-out-0506.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GJ2hO-0006Ny-2P for emacs-devel@gnu.org; Fri, 01 Sep 2006 02:40:18 -0400 Original-Received: by wx-out-0506.google.com with SMTP id i26so1134437wxd for ; Thu, 31 Aug 2006 23:30:10 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=qKzg/Dr81Tjq7hIJm9kLHp/j4+dXyMj0QHflGdA5FnAB/B+DBQSwbZygFJevq+0CY5Cp1nbVTtJYma/3G/eec+q0MqcROOjywnfNfgXFY7pEmHCf9CZ2cracQ32AJcSl2q7knsIYjDucphjsuBY+bmdI5K2UlgP4i26emr9Ce8U= Original-Received: by 10.90.100.6 with SMTP id x6mr360254agb; Thu, 31 Aug 2006 23:30:09 -0700 (PDT) Original-Received: by 10.90.105.4 with HTTP; Thu, 31 Aug 2006 23:30:09 -0700 (PDT) Original-To: rms@gnu.org In-Reply-To: Content-Disposition: inline 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:59206 Archived-At: On 8/31/06, Richard Stallman wrote: > the bug is that i can't use text fields this way without sacrificing > column retention on line moves, as far as i can tell. > line-move-to-column is hard-wired to respect fields when seeking the > prior positions column, so that moving the cursor between topics > usually leaves the cursor at column 0, which is almost always not what > the user wants. > > Creating a new variable can enable allout to get what it wants. > But that is a sort of a cop-out, because users might want the same > thing in other modes that use fields, sometimes. > > So I wonder: can you identify something about the pattern of use of > the fields which makes this result desirable? Then > line-move-to-column could detect that usage. that's a good question. i don't see a pattern justifiable with some principle better than what line-move-ignore-fields expresses, however: i want fields respected when moving within a line - specifically, when moving from the right of the boundary towards the boundary. on the other hand, i want the column retained, whatever the column, when moving between lines. (hot-spot navigation, which uses shortcut versions of outline navigation keys, automatically leaves the cursor on the bullet, so it's not necessary for next-line/previous-line navigation to do so.) (currently, i have everything in the outline-structure side of the headline, from the left margin to a space to the right of the topic bullet, being 'field 'boundary. it works to have them other fields, except for the right-most one just before the content being 'boundary, but not as well. all the headline content, to the right of that, has no field. that gets the behavior i described previously, where the cursor stays within the content on the first ^A, and then moves into the structure area the next time. i've tried some other combinations of field settings, but this works exactly as i want for inter-line motion, and none of the alternatives which provide the desired in-line motion have any advantages for cross-line motion, and most are worse.) -- ken ken.manheimer@gmail.com http://myriadicity.net