From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Keith David Bershatsky Newsgroups: gmane.emacs.bugs Subject: bug#17585: 24.4.50; vertical-motion erroneously adds points Date: Thu, 29 May 2014 23:21:05 -0700 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (generated by - "") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1401430945 24011 80.91.229.3 (30 May 2014 06:22:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 30 May 2014 06:22:25 +0000 (UTC) Cc: 17585-done@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri May 30 08:22:19 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WqGCo-00088R-Q4 for geb-bug-gnu-emacs@m.gmane.org; Fri, 30 May 2014 08:22:19 +0200 Original-Received: from localhost ([::1]:51651 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WqGCo-0003tH-2j for geb-bug-gnu-emacs@m.gmane.org; Fri, 30 May 2014 02:22:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39849) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WqGCf-0003rN-5y for bug-gnu-emacs@gnu.org; Fri, 30 May 2014 02:22:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WqGCY-0001H4-Ub for bug-gnu-emacs@gnu.org; Fri, 30 May 2014 02:22:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37913) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WqGCY-0001H0-R0 for bug-gnu-emacs@gnu.org; Fri, 30 May 2014 02:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WqGCY-0004Oz-6U for bug-gnu-emacs@gnu.org; Fri, 30 May 2014 02:22:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Keith David Bershatsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 30 May 2014 06:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17585 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17585-done@debbugs.gnu.org id=D17585.140143087616831 (code D ref 17585); Fri, 30 May 2014 06:22:02 +0000 Original-Received: (at 17585-done) by debbugs.gnu.org; 30 May 2014 06:21:16 +0000 Original-Received: from localhost ([127.0.0.1]:36790 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WqGBn-0004NO-4G for submit@debbugs.gnu.org; Fri, 30 May 2014 02:21:15 -0400 Original-Received: from cobb.liquidweb.com ([50.28.13.150]:50835) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WqGBk-0004NA-Jy for 17585-done@debbugs.gnu.org; Fri, 30 May 2014 02:21:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lawlist.com; s=default; h=Content-Type:MIME-Version:Cc:Subject:To:From:Message-ID:Date; bh=QTtvP7wXVoyOppcjVpLKf6WLpZ7woIEM4R6nqfig/vk=; b=7TWQqfppkHbo+Ffe+3+hgb84ASiEwUnZfkb6z1UaJztXazRcr0HTHnZ1Bs8wKBc+t1dz+BmUwfKQLLG92dwXRJ8rGKXAELBnIK/bAplxkjrJUMI/yw8TLybYB+6F5iDk; Original-Received: from cpe-75-85-5-102.socal.res.rr.com ([75.85.5.102]:62007 helo=MP.local) by cobb.liquidweb.com with esmtp (Exim 4.82) (envelope-from ) id 1WqGBc-0007IN-9V; Fri, 30 May 2014 02:21:04 -0400 User-Agent: / () / () APEL/10.8 Emacs/24.4.50 (x86_64-apple-darwin10.8.0) MULE/6.0 (HANACHIRUSATO) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cobb.liquidweb.com X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lawlist.com X-Get-Message-Sender-Via: cobb.liquidweb.com: acl_c_relayhosts_text_entry: lawlist|lawlist.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:89738 Archived-At: The `test` function yields the same result with Emacs built (--with-ns) from the Trunk as of May 29, 2014 at 11:18 P.S.T. Approximately when, please, should I expect to see the fix merged into the Trunk? I'm using macports / baazar: /macports/bin/bzr branch --stacked bzr://bzr.savannah.gnu.org/emacs/trunk emacs-trunk Thanks, Keith ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; At Sun, 25 May 2014 17:23:31 +0300, Eli Zaretskii wrote: > > > Date: Sun, 25 May 2014 00:23:20 -0700 > > From: Keith David Bershatsky > > > > The following test function demonstrates how vertical-motion erroneously adds points when dealing with long lines without spaces that go beyond the window-width: > > > > (defun test () > > (interactive) > > (switch-to-buffer (get-buffer-create "foo.txt")) > > (text-mode) > > (linum-mode t) > > (visual-line-mode t) > > (dotimes (i (* (window-width) 4)) > > (insert ";")) > > (dotimes (i 10) > > (insert "\n")) > > (goto-char (point-min)) > > (vertical-motion 1) > > (message "Second Row + 2 points: %s" (current-column)) > > (vertical-motion 1) > > (message "Third Row + 4 points: %s" (current-column))) > > Fixed in revision 117154 on the emacs-24 branch. The patch is below, > in case you want to try it without waiting for it to be merged to the > trunk. > > Thanks. > > --- src/xdisp.c 2014-05-24 21:28:43 +0000 > +++ src/xdisp.c 2014-05-25 14:18:46 +0000 > @@ -8556,7 +8556,7 @@ move_it_in_display_line_to (struct it *i > } > else > { > - if (it->line_wrap == WORD_WRAP) > + if (it->line_wrap == WORD_WRAP && it->area == TEXT_AREA) > { > if (IT_DISPLAYING_WHITESPACE (it)) > may_wrap = 1;