From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#9034: point adjustment after `end-of-visual-line' moves to the next line Date: Mon, 11 Jul 2011 00:16:31 -0400 Message-ID: References: <87iprb38sa.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1310357844 13339 80.91.229.12 (11 Jul 2011 04:17:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 11 Jul 2011 04:17:24 +0000 (UTC) Cc: 9034@debbugs.gnu.org To: Dmitry Kurochkin Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 11 06:17:20 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Qg7vr-0003Ly-Q3 for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Jul 2011 06:17:20 +0200 Original-Received: from localhost ([::1]:49163 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qg7vq-0007Yx-98 for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Jul 2011 00:17:18 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:45052) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qg7vb-0007Yk-K3 for bug-gnu-emacs@gnu.org; Mon, 11 Jul 2011 00:17:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qg7va-0007HW-JJ for bug-gnu-emacs@gnu.org; Mon, 11 Jul 2011 00:17:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36441) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qg7va-0007HR-Fu for bug-gnu-emacs@gnu.org; Mon, 11 Jul 2011 00:17:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Qg7va-0000GD-3n; Mon, 11 Jul 2011 00:17:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Jul 2011 04:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9034 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9034-submit@debbugs.gnu.org id=B9034.1310357802967 (code B ref 9034); Mon, 11 Jul 2011 04:17:02 +0000 Original-Received: (at 9034) by debbugs.gnu.org; 11 Jul 2011 04:16:42 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qg7vF-0000FY-6H for submit@debbugs.gnu.org; Mon, 11 Jul 2011 00:16:41 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qg7vD-0000FM-DS for 9034@debbugs.gnu.org; Mon, 11 Jul 2011 00:16:40 -0400 Original-Received: from cpe-66-108-39-217.nyc.res.rr.com ([66.108.39.217]:44660 helo=ceviche.home) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1Qg7v7-00012Y-NW; Mon, 11 Jul 2011 00:16:33 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id AC647660D5; Mon, 11 Jul 2011 00:16:31 -0400 (EDT) In-Reply-To: <87iprb38sa.fsf@gmail.com> (Dmitry Kurochkin's message of "Sat, 09 Jul 2011 17:04:05 +0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 11 Jul 2011 00:17:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:48544 Archived-At: > If a line ends with invisible text, point adjustment moves to the next > line after `end-of-visual-line'. To reproduce run: > (progn (switch-to-buffer "test") > (insert "aline1\nbline2\ncline3\n") > (put-text-property 7 14 'invisible t) ; region [\nbline2] > (goto-char (point-min))) > After that in the test buffer do M-: (progn (end-of-visual-line) > (point)). `end-of-visual-line' moves point to position 14 as expected. > But after that the point is adjusted to position 15, as can be checked > by C-x =. > Sometimes the point is not adjusted to position 15 the first time you > run `end-of-visual-line'. But it is if you run it more than once. > Perhaps it is related to the last point position. I can reproduce it with M-: (progn (goto-char 14) > (point)) > Also, `move-end-of-line` always behaves correctly, so it it something > specific to `end-of-visual-line' or `vertical-motion'. Apparently not since I can reproduce the problem with just goto-char. Maybe it has to do with the use of M-: instead. Stefan