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#19200: Point adjustemnt moves *into* invisible text Date: Mon, 21 Mar 2016 14:08:49 -0400 Message-ID: References: <87mvpskb84.fsf@web.de> <87io0gbmpl.fsf@web.de> <87d1qnevco.fsf@web.de> <874mbzesi8.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1458583768 20326 80.91.229.3 (21 Mar 2016 18:09:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Mar 2016 18:09:28 +0000 (UTC) Cc: 19200@debbugs.gnu.org, Jonas Bernoulli To: Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 21 19:09:14 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 1ai4GO-0000Qy-3K for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Mar 2016 19:09:12 +0100 Original-Received: from localhost ([::1]:59592 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ai4GM-0003xz-T0 for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Mar 2016 14:09:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37666) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ai4GJ-0003xt-6B for bug-gnu-emacs@gnu.org; Mon, 21 Mar 2016 14:09:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ai4GD-0004O2-St for bug-gnu-emacs@gnu.org; Mon, 21 Mar 2016 14:09:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60110) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ai4GD-0004Ny-Pa for bug-gnu-emacs@gnu.org; Mon, 21 Mar 2016 14:09:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ai4GD-0003IQ-MN for bug-gnu-emacs@gnu.org; Mon, 21 Mar 2016 14:09:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 21 Mar 2016 18:09: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.145858373812660 (code B ref 19200); Mon, 21 Mar 2016 18:09:01 +0000 Original-Received: (at 19200) by debbugs.gnu.org; 21 Mar 2016 18:08:58 +0000 Original-Received: from localhost ([127.0.0.1]:57237 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ai4GA-0003I8-2J for submit@debbugs.gnu.org; Mon, 21 Mar 2016 14:08:58 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:54918) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ai4G7-0003Hz-K2 for 19200@debbugs.gnu.org; Mon, 21 Mar 2016 14:08:56 -0400 Original-Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id u2LI8owU004224; Mon, 21 Mar 2016 14:08:50 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 04E8460587; Mon, 21 Mar 2016 14:08:49 -0400 (EDT) In-Reply-To: <874mbzesi8.fsf@web.de> (Michael Heerdegen's message of "Mon, 21 Mar 2016 16:54:23 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV5617=0 X-NAI-Spam-Version: 2.3.0.9418 : core <5617> : inlines <4541> : streams <1606611> : uri <2171499> 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:115250 Archived-At: > What would you suggest? 1- Don't use invisible text, remove the text instead. 2- Start any command where it can matter with a call to a function that skips forward over invisible text. 3- Make your invisible text intangible (ideally with cursor-intangible, since the `intangible' text property has all kinds of nasty side effects), so the cursor can't stay inside. 4- Some other solution of your choosing. > What would a different case that is not a bug in Emacs look like? Hmm... I did give you examples: if the command that moves point started/ended in another buffer, or if the command set disable-point-adjustment, plus a few other cases. > Just adding something that tries to repair what goes wrong is not > enough. Why not? > If cursor movement can end up at a random position inside invisible > text, we would need to reimplement all moving commands, since we > cannot derive from the cursor position what the correct position would > have been. With other words, I don't see what part of this issue is > specific to Magit. Magit is the one which introduces invisible text. The core functions can't know exactly why the text is invisible and hence what to do about it in each and every possible case. Only Magit knows that. Stefan