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: Sat, 09 Jul 2011 17:04:05 +0400 Message-ID: <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 1310216724 8963 80.91.229.12 (9 Jul 2011 13:05:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 9 Jul 2011 13:05:24 +0000 (UTC) To: 9034@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 09 15:05:18 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 1QfXDi-00020V-E3 for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Jul 2011 15:05:18 +0200 Original-Received: from localhost ([::1]:38118 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QfXDh-0007l4-Je for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Jul 2011 09:05:17 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:54477) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QfXDT-0007jc-Ia for bug-gnu-emacs@gnu.org; Sat, 09 Jul 2011 09:05:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QfXDS-0000hr-9c for bug-gnu-emacs@gnu.org; Sat, 09 Jul 2011 09:05:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:32802) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QfXDS-0000hh-81 for bug-gnu-emacs@gnu.org; Sat, 09 Jul 2011 09:05:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QfXDR-00075f-NC; Sat, 09 Jul 2011 09:05:01 -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: Sat, 09 Jul 2011 13:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 9034 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: submit@debbugs.gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.131021666227208 (code B ref -1); Sat, 09 Jul 2011 13:05:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 9 Jul 2011 13:04:22 +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 1QfXCn-00074m-Qh for submit@debbugs.gnu.org; Sat, 09 Jul 2011 09:04:22 -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 1QfXCl-00074a-V4 for submit@debbugs.gnu.org; Sat, 09 Jul 2011 09:04:21 -0400 Original-Received: by bwb17 with SMTP id 17so2304225bwb.3 for ; Sat, 09 Jul 2011 06:04:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:user-agent:date:message-id:mime-version :content-type; bh=qiKDE8kVQu6di3MsN3/ee2uMfypHlMpbH3ANEi9vezs=; b=EATau4EpmngpMEKqF6lDO97a9dcuDFSNifHRN7mPxnSjYcJF4Xaz/DDL2K4GV69wV2 T1Ws8xxNju28EvE4QNOQNoiHFj7/9SJtBO5Q4gw+ZusgE4P9JANfcbrjP3ZMZcYzldOY 7Jz/gBPsldgUj/FD6V4poyyP8oewIi0kG6uxA= Original-Received: by 10.205.65.9 with SMTP id xk9mr761756bkb.388.1310216652258; Sat, 09 Jul 2011 06:04:12 -0700 (PDT) Original-Received: from localhost ([91.144.186.21]) by mx.google.com with ESMTPS id c8sm522806bkc.15.2011.07.09.06.04.10 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 09 Jul 2011 06:04:11 -0700 (PDT) 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: Sat, 09 Jul 2011 09:05:01 -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:48332 Archived-At: Package: emacs Version: 24.0.50 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. It is definitely happens because of point adjustment, setting global-disable-point-adjustment to non-nil fixes the problem. Also, `move-end-of-line` always behaves correctly, so it it something specific to `end-of-visual-line' or `vertical-motion'. The issue was originally reported on the emacs-devel ML [1]. Regards, Dmitry [1] http://lists.gnu.org/archive/html/emacs-devel/2011-07/msg00255.html