From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: please make line-move-visual nil Date: Mon, 1 Jun 2009 11:26:58 -0700 Message-ID: References: <87eiue83i7.fsf@cyd.mit.edu><87my92dmdt.fsf@cyd.mit.edu><87eiudewtq.fsf@uwakimon.sk.tsukuba.ac.jp> <831vqdubqy.fsf@gnu.org><6161f3180905270548t3012bc1ah161719ae01db0fb5@mail.gmail.com><5f0ff9220906010736paad9321td86fd52326ebe722@mail.gmail.com> <87oct7sur8.fsf@cyd.mit.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1243880864 11656 80.91.229.12 (1 Jun 2009 18:27:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 1 Jun 2009 18:27:44 +0000 (UTC) Cc: 3438@emacsbugs.donarmstrong.com, "'T.V. Raman'" , "'Andrew W. Nosenko'" , emacs-devel@gnu.org, 'ishikawa' , ams@gnu.org, 'Stefan Monnier' , stephen@xemacs.org, eliz@gnu.org To: "'Chong Yidong'" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 01 20:27:39 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MBCEU-0000fu-Kl for ged-emacs-devel@m.gmane.org; Mon, 01 Jun 2009 20:27:38 +0200 Original-Received: from localhost ([127.0.0.1]:53830 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MBCEU-00025A-07 for ged-emacs-devel@m.gmane.org; Mon, 01 Jun 2009 14:27:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MBCEC-0001qq-13 for emacs-devel@gnu.org; Mon, 01 Jun 2009 14:27:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MBCE7-0001le-2Y for emacs-devel@gnu.org; Mon, 01 Jun 2009 14:27:19 -0400 Original-Received: from [199.232.76.173] (port=40312 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MBCE6-0001lZ-Uf for emacs-devel@gnu.org; Mon, 01 Jun 2009 14:27:14 -0400 Original-Received: from rcsinet12.oracle.com ([148.87.113.124]:41984 helo=rgminet12.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MBCDw-000451-BG; Mon, 01 Jun 2009 14:27:04 -0400 Original-Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rgminet12.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n51IQYkh009678 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 1 Jun 2009 18:26:39 GMT Original-Received: from abhmt010.oracle.com (abhmt010.oracle.com [141.146.116.19]) by acsinet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n51IReYP003880; Mon, 1 Jun 2009 18:27:40 GMT Original-Received: from dradamslap1 (/141.144.65.100) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 01 Jun 2009 11:26:42 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <87oct7sur8.fsf@cyd.mit.edu> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 Thread-Index: Acni4lAIZ9NHBJFgTwaZcuGXYblWDAAAHlbA X-Source-IP: abhmt010.oracle.com [141.146.116.19] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090201.4A241D64.017F:SCFSTAT5015188,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) 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:111257 Archived-At: > > Please see bug report #3438. All of it is worth reading in > > this regard. Note in particular his request to have a > > buffer-local value for line-move-visual, and to have Dired > > use nil for this. > > >> In dired mode, when the cursor is near the beginning of a very long > >> filename (as in near the "AaAaAa..." below , I can't move > >> down to the next file by "n" or "cursor down" key anymore(!). > > In Dired, and call dired-previous-line and > dired-next-line, which should not be affected by line-move-visual. > I have not been able to reproduce the reported problem (i.e., > getting point stuck in Dired). Maybe the reporter has some unusual > customizations that are getting in the way. Ah, you're right. And I even remember that I started to mention Dired as an example of a formatted buffer in my original post in this thread, and removed it when I realized this was in fact the case (I used Info and Buffer List as examples). But I forgot about it when I saw the bug report. Thx. Dired is an exception in this regard among formatted buffers, so you are correct that Dired's bindings make it irrelevant for the immediate question. It does illustrate the general idea, however: line movement in formatted buffers is often different (should often be different) than it is in free-form text buffers. In Dired, it is particularly different, since we want point to stay on the file name - we constrain it to one column for vertical movement. IOW, Dired has its own buffer-local behavior for line movement, which is even more reflective of the buffer formatting than usual. If anything, this strengthens the argument for buffer-specific line movement, rather than weakening it. More typically (in formatted buffers), we want to reflect the use of newlines (they are positioned intentionally) and maintain the current column for line movement, but there is no single, privileged column (e.g. file name) that we want to constrain point to, as there is in Dired. Each formatted buffer could individually define its own line-movement commands, which amounts to just binding `line-move-visual' to nil around a call to `next-line'. But that would be a bit silly. Better to just let the variable be buffer-local. And provide nil as the default value for most formatted buffers. -- BTW, you didn't answer the questions about the poll. How's it coming along? Where is it?