From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: NEWS and invisible text Date: Sun, 20 Apr 2003 20:59:45 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <200304111308.h3BD8oW03188@eel.dms.auburn.edu> <844r55f7yr.fsf@lucy.is.informatik.uni-duisburg.de> <3E9B3F9C.2060900@yahoo.com> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1050886965 14450 80.91.224.249 (21 Apr 2003 01:02:45 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Apr 2003 01:02:45 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Mon Apr 21 03:02:43 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 197Phj-0003ku-00 for ; Mon, 21 Apr 2003 03:02:43 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 197PmG-0001kM-00 for ; Mon, 21 Apr 2003 03:07:24 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 197Pi0-0002rP-08 for emacs-devel@quimby.gnus.org; Sun, 20 Apr 2003 21:03:00 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 197PgR-0002IU-00 for emacs-devel@gnu.org; Sun, 20 Apr 2003 21:01:23 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 197Peu-0001qZ-00 for emacs-devel@gnu.org; Sun, 20 Apr 2003 20:59:53 -0400 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 197Per-0001i4-00 for emacs-devel@gnu.org; Sun, 20 Apr 2003 20:59:45 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.10) id 197Per-0005N8-00; Sun, 20 Apr 2003 20:59:45 -0400 Original-To: Kevin Rodgers In-reply-to: <3E9B3F9C.2060900@yahoo.com> (message from Kevin Rodgers on Mon, 14 Apr 2003 17:09:16 -0600) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:13306 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:13306 > ** Only one of the beginning or end of an invisible, intangible region is > considered an acceptable value for point; which one is determined by > examining how the invisible/intangible properties are inherited when new > text is inserted adjacent to them. Is that determined by examining the front-sticky and rear-sticky properties? Yes. > If text inserted at the beginning would > inherit the invisible/intangible properties, then that position is > considered unacceptable, and point is forced to the position following the > invisible/intangible text. If text inserted at the end would inherit the > properties, then the opposite happens. What happens when both conditions are true? I think you can't put point at either end, in that case. But I didn't test it, I just read the code. Want to test it? Here's a rewrite that says what I think the code does. ** Only one of the beginning or end of an invisible, intangible region is considered an acceptable value for point; which one is determined by examining how the invisible/intangible properties are inherited when new text is inserted adjacent to them. (The `front-sticky' and `rear-sticky' properties control this.) If text inserted at the beginning would inherit the invisible/intangible properties, then that position is considered unacceptable, and point is forced to continue (if moving forwards, to the position following the invisible/intangible text; if moving backwards, to one position before). If text inserted at the end would inherit the properties, then that position is considered unacceptable, and point is forced to keep moving (if moving backwards, to the position preceding the invisible/intangible text; if moving forwards, to one position later).