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: Tue, 14 Feb 2006 08:25:29 +0100 Message-ID: <43F185E9.6090502@gmx.at> References: <43E9B8A0.1000109@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 1139903621 24217 80.91.229.2 (14 Feb 2006 07:53:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 14 Feb 2006 07:53:41 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 14 08:53:39 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 1F8v06-0001TE-Rc for ged-emacs-devel@m.gmane.org; Tue, 14 Feb 2006 08:53:31 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F8v06-00074q-K2 for ged-emacs-devel@m.gmane.org; Tue, 14 Feb 2006 02:53:30 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F8uzr-000740-15 for emacs-devel@gnu.org; Tue, 14 Feb 2006 02:53:15 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F8uzp-00073H-37 for emacs-devel@gnu.org; Tue, 14 Feb 2006 02:53:14 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F8uzo-00073D-HC for emacs-devel@gnu.org; Tue, 14 Feb 2006 02:53:12 -0500 Original-Received: from [213.165.64.21] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.52) id 1F8v4Q-0007Xn-Nr for emacs-devel@gnu.org; Tue, 14 Feb 2006 02:57:59 -0500 Original-Received: (qmail invoked by alias); 14 Feb 2006 07:53:10 -0000 Original-Received: from N902P031.adsl.highway.telekom.at (EHLO [62.47.56.191]) [62.47.56.191] by mail.gmx.net (mp032) with SMTP; 14 Feb 2006 08:53:10 +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:50515 Archived-At: > The manual follows a previous version of the code, in which the position > after the invisible text was an impossible position. The motive for this > was to avoid having two different point positions which display the cursor > in the same place. > > The present code seems to treat the position after the invisible text > as possible, and treat the position just before it as impossible. > It's different, but it still achieves the goal of not having two > point positions that display the cursor in the same place. > > I don't see any particular reason to prefer the old behavior, so I will > update the manual to describe the new behavior. I don't follow you. (with-current-buffer (get-buffer-create "*test*") (insert "foo\n") (let ((at (point))) (insert "bar\nbar\nbar\n") (overlay-put (make-overlay at (point-max)) 'invisible t)) (insert "baz\n")) and point at position 4 in *test* C-f moves to position 17. (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. Hence when using a text-property the position before invisible text is possible.