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 14:13:35 +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: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1214802845 31691 80.91.229.12 (30 Jun 2008 05:14:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 30 Jun 2008 05:14:05 +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 07:14:50 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 1KDBiv-0004GB-Jk for ged-emacs-devel@m.gmane.org; Mon, 30 Jun 2008 07:14:45 +0200 Original-Received: from localhost ([127.0.0.1]:37232 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KDBi4-0001mD-Ug for ged-emacs-devel@m.gmane.org; Mon, 30 Jun 2008 01:13:53 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KDBhx-0001kR-6Q for emacs-devel@gnu.org; Mon, 30 Jun 2008 01:13:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KDBhv-0001jy-MM for emacs-devel@gnu.org; Mon, 30 Jun 2008 01:13:43 -0400 Original-Received: from [199.232.76.173] (port=54607 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KDBhv-0001jv-Fz for emacs-devel@gnu.org; Mon, 30 Jun 2008 01:13:43 -0400 Original-Received: from tyo201.gate.nec.co.jp ([202.32.8.193]:54035) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KDBhr-0004cI-UQ; Mon, 30 Jun 2008 01:13:40 -0400 Original-Received: from relay11.aps.necel.com ([10.29.19.46]) by tyo201.gate.nec.co.jp (8.13.8/8.13.4) with ESMTP id m5U5DZEo023090; Mon, 30 Jun 2008 14:13:35 +0900 (JST) Original-Received: from relay11.aps.necel.com ([10.29.19.24] [10.29.19.24]) by relay11.aps.necel.com with ESMTP; Mon, 30 Jun 2008 14:13:35 +0900 Original-Received: from dhapc248.dev.necel.com ([10.114.112.215] [10.114.112.215]) by relay11.aps.necel.com with ESMTP; Mon, 30 Jun 2008 14:13:35 +0900 Original-Received: by dhapc248.dev.necel.com (Postfix, from userid 31295) id 423A642E; Mon, 30 Jun 2008 14:13:35 +0900 (JST) System-Type: i686-pc-linux-gnu Blat: Foop In-Reply-To: <87d4lzehq2.fsf@stupidchicken.com> (Chong Yidong's message of "Sun, 29 Jun 2008 23:15:17 -0400") Original-Lines: 40 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:100189 Archived-At: --=-=-= Chong Yidong writes: >>> As it turns out, it doesn't work right with word-wrapping because >>> posn-at-point returns funny X positions. Probably the same underlying >>> bug causes sometimes mouse-clicks to place point elsewhere than under >>> the mouse. >> >> Perhaps the word-wrap changes to display_line and move_it_* are not >> entirely consistent. > > That's a good guess. Unfortunately, I can't seem to reproduce it. > Maybe it's the font I'm using. Could someone try to set up a detailed > recipe? The following text seems to illustrate it for me (I've added it as an attachment as well, juuust in case). Put the following long line in a buffer, and do with (setq word-wrap t), and have Stefan's line-mode-visual patch enabled: 12:25 *** TOPIC openssl vulnerability: /msg dpkg dsa1571 | 4.0r3 released /msg dpkg etch | /msg dpkg etch->lenny | Offtopic: #debian-offtopic | PUBLIC KEY NOT AVAILABLE? /msg dpkg no public key | THIS IS NOT #ubuntu | FAQ: With point at the start of the buffer, you can move with C-n to the next visual line with no problem, but if you do C-n again at that point, it acts screwy. (posn-at-point) does indeed seem to return incorrect results: after the first C-n, with the cursor visually located at the start of the 2nd "visual line", (posn-at-point) returns results with very large X coordinates, as if it thinks the cursor is still at the end of the previous line: (# 81 (640 . 0) 0 nil 81 (80 . 0) nil (0 . 0) (0 . 17)) -Miles --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=blarch Content-Transfer-Encoding: base64 Content-Description: blarch MTI6MjUgKioqIFRPUElDIG9wZW5zc2wgdnVsbmVyYWJpbGl0eTogL21zZyBkcGtnIGRzYTE1NzEg fCA0LjByMyByZWxlYXNlZCAvbXNnIGRwa2cgZXRjaCB8IC9tc2cgZHBrZyBldGNoLT5sZW5ueSB8 IE9mZnRvcGljOiAjZGViaWFuLW9mZnRvcGljIHwgUFVCTElDIEtFWSBOT1QgQVZBSUxBQkxFPyAv bXNnIGRwa2cgbm8gcHVibGljIGtleSB8IFRISVMgSVMgTk9UICN1YnVudHUgfCBGQVE6IA== --=-=-= -- Monday, n. In Christian countries, the day after the baseball game. --=-=-=--