From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Kurochkin Newsgroups: gmane.emacs.bugs Subject: bug#9034: point adjustment after `end-of-visual-line' moves to the next line Date: Mon, 11 Jul 2011 12:27:18 +0400 Message-ID: <87tyat1au1.fsf@gmail.com> References: <87iprb38sa.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1310372914 19263 80.91.229.12 (11 Jul 2011 08:28:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 11 Jul 2011 08:28:34 +0000 (UTC) Cc: 9034@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 11 10:28:29 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 1QgBqt-0007Xp-RZ for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Jul 2011 10:28:27 +0200 Original-Received: from localhost ([::1]:54014 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QgBqt-0004ZA-0g for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Jul 2011 04:28:27 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:52000) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QgBqX-0004Yh-Rw for bug-gnu-emacs@gnu.org; Mon, 11 Jul 2011 04:28:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QgBqW-0005Jb-6e for bug-gnu-emacs@gnu.org; Mon, 11 Jul 2011 04:28:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50880) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QgBqV-0005JN-9u for bug-gnu-emacs@gnu.org; Mon, 11 Jul 2011 04:28:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QgBqU-0005qb-H1; Mon, 11 Jul 2011 04:28:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Kurochkin 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 08:28: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.131037285522445 (code B ref 9034); Mon, 11 Jul 2011 08:28:02 +0000 Original-Received: (at 9034) by debbugs.gnu.org; 11 Jul 2011 08:27:35 +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 1QgBq1-0005py-ST for submit@debbugs.gnu.org; Mon, 11 Jul 2011 04:27:34 -0400 Original-Received: from mail-bw0-f44.google.com ([209.85.214.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QgBpy-0005pm-P8 for 9034@debbugs.gnu.org; Mon, 11 Jul 2011 04:27:31 -0400 Original-Received: by bwb17 with SMTP id 17so3059263bwb.3 for <9034@debbugs.gnu.org>; Mon, 11 Jul 2011 01:27:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-type; bh=XIh+0wjpPP2iuQQBMUWabwulD0FdBv6fyYS5K9McV2w=; b=U1lVXTtsBqBJjPsugcDHkwPAcRlDcqIWItUxGzAP+vkCorw5FRuElMh5zOq86jCX0v wBDKHwETB8+CkM5KB9VsQq4U5e4FtatZjdZJatX0AB75cwEzYOw6ox9wVkrhZCqt/yy0 oqfZl2sSaQTXfFZVBfUhVMNjcru06a19RGmyM= Original-Received: by 10.204.154.215 with SMTP id p23mr2521896bkw.113.1310372844809; Mon, 11 Jul 2011 01:27:24 -0700 (PDT) Original-Received: from localhost ([91.144.186.21]) by mx.google.com with ESMTPS id k5sm9849638bka.5.2011.07.11.01.27.23 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 11 Jul 2011 01:27:23 -0700 (PDT) In-Reply-To: User-Agent: Notmuch/0.5-321-g41686e2 (http://notmuchmail.org) Emacs/23.3.1 (x86_64-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 11 Jul 2011 04:28: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:48547 Archived-At: On Mon, 11 Jul 2011 00:16:31 -0400, Stefan Monnier wrote: > > 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)) > indeed > > 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. If visual-line-mode is enabled (so that C-e is mapped to `end-of-visual-line' instead of `move-end-of-line'), `end-of-visual-line' works correctly when run with C-e. > Maybe it has to do with the use of M-: instead. > Seems plausible. Regards, Dmitry > > Stefan