From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Weissmann Subject: org-mode font-locking clobbers the rear-nonsticky text property; for other modes it doesn't Date: Wed, 3 Oct 2007 09:34:40 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Id0iZ-0003GN-5C for emacs-orgmode@gnu.org; Wed, 03 Oct 2007 05:40:35 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Id0iX-0003Eu-8V for emacs-orgmode@gnu.org; Wed, 03 Oct 2007 05:40:34 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Id0iW-0003EY-Rg for emacs-orgmode@gnu.org; Wed, 03 Oct 2007 05:40:32 -0400 Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Id0iW-0003EK-BY for emacs-orgmode@gnu.org; Wed, 03 Oct 2007 05:40:32 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Id0gv-0005Yj-4P for emacs-orgmode@gnu.org; Wed, 03 Oct 2007 09:38:55 +0000 Received: from mail2.siscog.pt ([195.22.30.41]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 03 Oct 2007 09:38:53 +0000 Received: from trmsw by mail2.siscog.pt with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 03 Oct 2007 09:38:53 +0000 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org I am trying to work out why font-lock for Org-mode changes the rear-nonsticky property of text I insert, while it doesn't do it for other modes. For example: (with-current-buffer (get-buffer-create "foo") (insert (propertize ";;Try adding text after this ->" 'read-only t 'face 'underline 'rear-nonsticky '(read-only)))) In the "foo" buffer you will be able to add text after the arrow. Turning on lisp-interaction mode will fontify the text as a comment, but if you delete the text you added you'll still be able to add some more - whereas in org-mode you can't. Does anyone know why this happens and how I can prevent it? Cheers, Tom SW