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: Fri, 04 Jul 2008 19:58:08 +0900 Message-ID: References: <87zlp4raab.fsf@catnip.gol.com> <87d4lzehq2.fsf@stupidchicken.com> <87skuqbwr8.fsf@stupidchicken.com> <85E9BC5B-7337-4CD4-A783-6B2FAEBAEBCA@gmail.com> <87tzf6c5il.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 1215169126 30258 80.91.229.12 (4 Jul 2008 10:58:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 4 Jul 2008 10:58:46 +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 Fri Jul 04 12:59:32 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 1KEj0g-0006lt-4P for ged-emacs-devel@m.gmane.org; Fri, 04 Jul 2008 12:59:26 +0200 Original-Received: from localhost ([127.0.0.1]:46044 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KEizp-0003Ay-Ey for ged-emacs-devel@m.gmane.org; Fri, 04 Jul 2008 06:58:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KEizg-00039c-R8 for emacs-devel@gnu.org; Fri, 04 Jul 2008 06:58:24 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KEize-00038R-G0 for emacs-devel@gnu.org; Fri, 04 Jul 2008 06:58:23 -0400 Original-Received: from [199.232.76.173] (port=51846 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KEize-00038O-DG for emacs-devel@gnu.org; Fri, 04 Jul 2008 06:58:22 -0400 Original-Received: from tyo201.gate.nec.co.jp ([202.32.8.193]:64498) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KEizX-0003nl-Ab; Fri, 04 Jul 2008 06:58:15 -0400 Original-Received: from relay31.aps.necel.com ([10.29.19.54]) by tyo201.gate.nec.co.jp (8.13.8/8.13.4) with ESMTP id m64Aw9M1007081; Fri, 4 Jul 2008 19:58:09 +0900 (JST) Original-Received: from relay31.aps.necel.com ([10.29.19.16] [10.29.19.16]) by relay31.aps.necel.com with ESMTP; Fri, 4 Jul 2008 19:58:09 +0900 Original-Received: from dhapc248.dev.necel.com ([10.114.112.215] [10.114.112.215]) by relay31.aps.necel.com with ESMTP; Fri, 4 Jul 2008 19:58:09 +0900 Original-Received: by dhapc248.dev.necel.com (Postfix, from userid 31295) id DA186449; Fri, 4 Jul 2008 19:58:08 +0900 (JST) System-Type: i686-pc-linux-gnu Blat: Foop In-Reply-To: <87tzf6c5il.fsf@stupidchicken.com> (Chong Yidong's message of "Fri, 04 Jul 2008 06:23:14 -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:100336 Archived-At: --=-=-= Chong Yidong writes: >> OK, it seems that (vertical-motion 0) is reliable now with your patch, >> but (vertical-motion 1) will sometimes move point to the beginning of >> the last word in the line (or so), possibly when the visual line is >> fairly long. It looks as if it anticipates the word to be wrapped, >> even though it isn't. > > Please provide a detailed recipe. (If the recipe refers to > `posn-point', that would be even better.) 1) Put the following (also attached) text (it should be one logical line) into a file: 15:11 *** NAMES snogglethorpe munichlinux Bzek jmaslibre twb xinming fukas melmothX xaiki vinc456 stanis_sh bonii LaoLang_cool akm1 meandtheshell edrx 2) visit the file with emacs -Q (assuming your patch has been applied), and do M-: (setq word-wrap t) to turn on word-wrapping. 3) Now locate the cursor on the first SPC character. Do M-: (posn-at-point). Note that the position is (5 . 0) in characters, and (5*W . 0) in pixels, where W is the basic character width (W = 10 for the usual default font). 4) Use `C-f' to move forward one character. Do M-: (posn-at-point). Note that the position is now (7 . 0) in characters, and (7*W . 0) in pixels! This is entirely unexpected, and does not happen if word-wrap is nil. [Because of this funniness, movement with Stefan's line-move-visual patch also acts weird on this text.] -Miles --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=zz Content-Transfer-Encoding: base64 Content-Description: Long line which acts funny with word-wrap MTU6MTEgKioqIE5BTUVTIHNub2dnbGV0aG9ycGUgbXVuaWNobGludXggQnplayBqbWFzbGlicmUg dHdiIHhpbm1pbmcgZnVrYXMgbWVsbW90aFggeGFpa2kgdmluYzQ1NiBzdGFuaXNfc2ggYm9uaWkg TGFvTGFuZ19jb29sIGFrbTEgbWVhbmR0aGVzaGVsbCBlZHJ4IAo= --=-=-= -- Zeal, n. A certain nervous disorder afflicting the young and inexperienced. --=-=-=--