From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: visual-line-mode Date: Mon, 30 Jun 2008 19:39:29 +0900 Message-ID: References: <87zlp4raab.fsf@catnip.gol.com> <87d4lzehq2.fsf@stupidchicken.com> Reply-To: Miles Bader NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1214822501 21122 80.91.229.12 (30 Jun 2008 10:41:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 30 Jun 2008 10:41:41 +0000 (UTC) Cc: David Reitter , "Lennart Borgman \(gmail\)" , Stefan Monnier , Emacs-Devel devel To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 30 12:42:25 2008 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 1KDGpz-0003p8-Jg for ged-emacs-devel@m.gmane.org; Mon, 30 Jun 2008 12:42:24 +0200 Original-Received: from localhost ([127.0.0.1]:43771 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KDGp8-0002DF-MP for ged-emacs-devel@m.gmane.org; Mon, 30 Jun 2008 06:41:30 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KDGnq-0001vC-5X for emacs-devel@gnu.org; Mon, 30 Jun 2008 06:40:10 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KDGnl-0001uT-VZ for emacs-devel@gnu.org; Mon, 30 Jun 2008 06:40:09 -0400 Original-Received: from [199.232.76.173] (port=36249 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KDGnl-0001uP-E2 for emacs-devel@gnu.org; Mon, 30 Jun 2008 06:40:05 -0400 Original-Received: from tyo202.gate.nec.co.jp ([202.32.8.206]:62233) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KDGnP-0001hv-An; Mon, 30 Jun 2008 06:39:53 -0400 Original-Received: from relay11.aps.necel.com ([10.29.19.46]) by tyo202.gate.nec.co.jp (8.13.8/8.13.4) with ESMTP id m5UAdRG3028207; Mon, 30 Jun 2008 19:39:29 +0900 (JST) Original-Received: from relay21.aps.necel.com ([10.29.19.24] [10.29.19.24]) by relay11.aps.necel.com with ESMTP; Mon, 30 Jun 2008 19:39:29 +0900 Original-Received: from dhapc248.dev.necel.com ([10.114.112.215] [10.114.112.215]) by relay21.aps.necel.com with ESMTP; Mon, 30 Jun 2008 19:39:29 +0900 Original-Received: by dhapc248.dev.necel.com (Postfix, from userid 31295) id 5F2623E4; Mon, 30 Jun 2008 19:39:29 +0900 (JST) System-Type: i686-pc-linux-gnu Blat: Foop In-Reply-To: (Miles Bader's message of "Mon, 30 Jun 2008 14:15:36 +0900") Original-Lines: 29 X-detected-kernel: by monty-python.gnu.org: Solaris 8 (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:100212 Archived-At: Incidentally, I notice that in cases where posn-at-point is returning bogus values for word-wrapped lines, it looks like it's just ignoring word-wrap entirely -- the values returned would be correct if word-wrap were turned off! In otherwords, the non-word-wrapped line looked like: word1 word2 longw\ Xrd3 word4 and (posn-at-point) returns x-y of (0 . 1) when the cursor is at the "X". If I turn on word-wrapping, and the display looks like: word1 word2 \ longwXrd3 word4 Then the first place where (posn-at-point) returns (0 . 1) is when the cursor is on the "X" again; for positions on the 2nd line but before the "X", posn-at-point returns a y-value of 1, and large x-values as if the cursor were still near the end of the first line. [Do the move_it_* functions even attempt to handle word-wrapping?] -Miles -- It wasn't the Exxon Valdez captain's driving that caused the Alaskan oil spill. It was yours. [Greenpeace advertisement, New York Times, 25 February 1990]