From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: moving point and invisible text Date: Wed, 15 Feb 2006 11:13:53 +0100 Message-ID: <43F2FEE1.9050308@gmx.at> References: <43E9B8A0.1000109@gmx.at> <43F185E9.6090502@gmx.at> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1140005297 15935 80.91.229.2 (15 Feb 2006 12:08:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 15 Feb 2006 12:08:17 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 15 13:08:17 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1F9LS9-0003JN-RI for ged-emacs-devel@m.gmane.org; Wed, 15 Feb 2006 13:08:15 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F9L8x-0003ZT-Pc for ged-emacs-devel@m.gmane.org; Wed, 15 Feb 2006 06:48:24 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F9Jpc-0003bs-2U for emacs-devel@gnu.org; Wed, 15 Feb 2006 05:24:21 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F9Jki-0000vd-Bh for emacs-devel@gnu.org; Wed, 15 Feb 2006 05:19:19 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F9Jkg-0000vB-RI for emacs-devel@gnu.org; Wed, 15 Feb 2006 05:19:15 -0500 Original-Received: from [213.165.64.21] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.52) id 1F9JpY-0001fy-T8 for emacs-devel@gnu.org; Wed, 15 Feb 2006 05:24:17 -0500 Original-Received: (qmail invoked by alias); 15 Feb 2006 10:19:13 -0000 Original-Received: from N946P024.adsl.highway.telekom.at (EHLO [62.47.62.56]) [62.47.62.56] by mail.gmx.net (mp019) with SMTP; 15 Feb 2006 11:19:13 +0100 X-Authenticated: #14592706 User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en Original-To: rms@gnu.org In-Reply-To: X-Y-GMX-Trusted: 0 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:50562 Archived-At: > (with-current-buffer (get-buffer-create "*test*") > (insert "foo\n") > (let ((at (point))) > (insert "bar\nbar\nbar\n") > (put-text-property at (point-max) 'invisible t)) > (insert "baz\n")) > > and point at position 4 in *test* C-f moves to position 5. > > You did not mention that case before, and I did not know about it. In the first mail in this thread I wrote Also, I was not able to detect a consistent behavior with different values of `line-move-ignore-invisible' and with respect to whether an invisibility overlay or an invisibility text-property was used. Stefan then told me that The behavior depends on many things: whether the invisible text is replaced by ellipsis, whether the invisible property is front-sticky and/or rear-sticky, whether the command made changes to the buffer, ... > Further experimentation shows that this case works the way the > manual previously said: it allows position 5 but does not allow > position 17. Not really: It rarely ever moves "point forward past the first visible character that follows the invisible text", that is, position 18. (It does so only with `line-move-ignore-invisible' nil.) > That inconsistency is a bug; overlay invisibility and text property > invisibility ought to work the same. > > Could you debug why they are different? I tried that already but got completely lost in the labyrinths of redisplay.