From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Richard M. Stallman" Newsgroups: gmane.emacs.devel Subject: Re: moving point and invisible text Date: Mon, 13 Feb 2006 19:40:46 -0500 Message-ID: References: <43E9B8A0.1000109@gmx.at> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1139878718 17065 80.91.229.2 (14 Feb 2006 00:58:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 14 Feb 2006 00:58:38 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 14 01:58:36 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 1F8oWT-0005LY-9s for ged-emacs-devel@m.gmane.org; Tue, 14 Feb 2006 01:58:29 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F8oWQ-0006CA-Hn for ged-emacs-devel@m.gmane.org; Mon, 13 Feb 2006 19:58:26 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F8oFT-00011n-9Z for emacs-devel@gnu.org; Mon, 13 Feb 2006 19:40:55 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F8oFQ-00010T-56 for emacs-devel@gnu.org; Mon, 13 Feb 2006 19:40:52 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F8oFK-00010G-Rl for emacs-devel@gnu.org; Mon, 13 Feb 2006 19:40:48 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1F8oJt-0000Hu-Kn for emacs-devel@gnu.org; Mon, 13 Feb 2006 19:45:29 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1F8oFK-0007Um-7g; Mon, 13 Feb 2006 19:40:46 -0500 Original-To: martin rudalics In-reply-to: <43E9B8A0.1000109@gmx.at> (message from martin rudalics on Wed, 08 Feb 2006 10:23:44 +0100) 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:50495 Archived-At: (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")) move point to position 18 in *test* (between the "b" and "a" of "baz") and do C-b. On my system this moves point to position 17 Finally, move point to position 4 and execute C-f. Once more point moves to position 17. This behavior is not mentioned in the manual. 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. Would it be difficult to implement this as: "However, if a command moved point backward into or to the end of invisible text, Emacs moves point backward to the beginning of that text. If a command moved point forward into or to the beginning of invisible text, Emacs moves point forward to the end of that text." It would be easy enough to implement, but then there would be two different point positions that appear to be the same place.