From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.bugs Subject: bug#19200: Point adjustemnt moves *into* invisible text Date: Mon, 21 Mar 2016 15:52:55 +0100 Message-ID: <87d1qnevco.fsf@web.de> References: <87mvpskb84.fsf@web.de> <87io0gbmpl.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1458572077 15211 80.91.229.3 (21 Mar 2016 14:54:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Mar 2016 14:54:37 +0000 (UTC) Cc: 19200@debbugs.gnu.org, Jonas Bernoulli To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 21 15:54:26 2016 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 1ai1Dl-0005NT-37 for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Mar 2016 15:54:17 +0100 Original-Received: from localhost ([::1]:58266 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ai1Dk-0001gd-Kw for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Mar 2016 10:54:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50955) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ai1Db-0001ZJ-Bi for bug-gnu-emacs@gnu.org; Mon, 21 Mar 2016 10:54:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ai1DW-0002Ie-9L for bug-gnu-emacs@gnu.org; Mon, 21 Mar 2016 10:54:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59936) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ai1DW-0002Ia-5g for bug-gnu-emacs@gnu.org; Mon, 21 Mar 2016 10:54:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ai1DV-00071i-RY for bug-gnu-emacs@gnu.org; Mon, 21 Mar 2016 10:54:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Heerdegen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 21 Mar 2016 14:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19200 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19200-submit@debbugs.gnu.org id=B19200.145857198926952 (code B ref 19200); Mon, 21 Mar 2016 14:54:01 +0000 Original-Received: (at 19200) by debbugs.gnu.org; 21 Mar 2016 14:53:09 +0000 Original-Received: from localhost ([127.0.0.1]:57062 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ai1Cf-00070d-7Q for submit@debbugs.gnu.org; Mon, 21 Mar 2016 10:53:09 -0400 Original-Received: from mout.web.de ([212.227.17.12]:57405) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ai1Cc-00070A-VZ for 19200@debbugs.gnu.org; Mon, 21 Mar 2016 10:53:08 -0400 Original-Received: from drachen.dragon ([94.218.210.27]) by smtp.web.de (mrweb103) with ESMTPSA (Nemesis) id 0LpO4v-1a5xIS2ExZ-00f7HL; Mon, 21 Mar 2016 15:52:57 +0100 In-Reply-To: (Stefan Monnier's message of "Mon, 21 Mar 2016 08:08:59 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.92 (gnu/linux) X-Provags-ID: V03:K0:oYEO3J0iwjlTf9Ty3tDKnxmsUnjZTRhFEuGVzJBoRY/WVHWvEKl 6ZzZrNlvjpnwkDXDRxsH+GEnGgK6pTlgvgANbeRx+nY1Oup+FNQ8j6ZZM8fWcEFqAS3UrE4 40ne8dLkHMLN3IX7ZBoEpRwQLhe2SdcCvJQLgdxNUKmnHRw7yerihUgBWusRLhq5WMXxfg2 PIKkO1oUP9zO/hyICdE1w== X-UI-Out-Filterresults: notjunk:1;V01:K0:4nlVXP4z4Xg=:pxjz/6PykSyfhXDrw7jGw4 12ZrXYdWY1jH3IrhtU3xXqQbV0IyleWXbLgxkBCisUnDC8ms8Xs20lsR3f4bJRXM5pp3WJL9f 7x7hROrxYUbGNp8Pc6kEsM/2CFiA7W6xfjFVncxYGJ93BKB4vqWGSdjcw43blwscan3yg5Vtx u7EoQ6hWT+bqWPCfKiL0mc9/CWqPzVeh2ZLhFdIDq6ZK3S3J+QwjNKt2j3veq3BjTn8KvpzP9 J6FN78yc+Q+Il7S6jt8RYvkgDXGNIo1YUIVZvOEuA6Wx3jNrUoAr/xqV8+SuM1mURILGQAFsi EF1L8U4CGqoTImDK2gH10Hk/+1R7Wch+ALCTnWA03t26R5D1nAH6VPMghmIkNVnX0hTSIYg8E 5mgFs4Fft+mqeJPguIUm7O6S+PmZBD8DGUAiO7fLrDHlZ8xvBo7PBGo12TPzT/SweTh8d9o4y LnLOMbkQKtKHqNz4vIpLztIJiWiGdwKHDKCyqrIV1WfFbAUYzpS3HAQUMKiJM5a5rBFsQb9zw GiOaDtyWaLHbLztDv7KqARQPC9KV/WdO1c6SH7KWTr3uMpZ/kGANRAwotp32POC2QOvlQJUQV ImtOuarLT1Q5lpFWYjykWPz6mlJD6QWVdJ88DxX4DwYBuCQBLYO1vHZRMXFjy9zQoLQJEv6AR z83GbyC/O6yHdXV8a3aZuKSgfTFPvzBYE0BDvBW8fqUQwEMeEVr8iU/g9lMspYXVJ3aZydhii lTRb1OPSJdTHK6OXkRBpvjoPd5nXoFDlceqV2l5uTNoU8BGvnzX8PL9m4lCzDeSVyHX7WKI/ X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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:115228 Archived-At: Stefan Monnier writes: > move-to-column moves forward from BOL, whereas beginning-of-line moves > only backward, so the two probably end up at opposite ends of the > invisible region. > > BTW, regardless of fixing this bug, I think you have a problem: if the > exact position within the invisible text is so important that it can > end up > selecting a different line, then fixing bug#19200 won't do you much > good: there are many cases where point-adjustment won't do what you want > (e.g. it won't move point at all, even though it's somewhere in the > middle of the invisible region) and hence it will end up "at the wrong > place". > > The way point-adjustment is defined is too conservative for that. > So I suggest you try and make you code more robust w.r.t the position of > point within an invisible region in any case. Well, we just want that cursor movement starting from a visible position not end up at an invisible position - the docs seem to suggest that this should not happen, right? We have the following, very simple situation: Line N { M invisible lines here } Line N+M+1 Line N and Line N+M+1 are completely visible, and displayed after each other. Point is at the start of Line N, no invisible text near that position. Now I hit [down] one time and end up somewhere inside the invisible text in between. Michael.