From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Damien Elmes Newsgroups: gmane.emacs.devel Subject: Re: last character on line different when behind invis text? Date: Sat, 07 Sep 2002 01:41:50 +1000 Sender: emacs-devel-admin@gnu.org Message-ID: <86admvdt1d.fsf@mobile.repose.cx> References: <86bs7scq7v.fsf@mobile.repose.cx> <200208260036.g7Q0aO912379@wijiji.santafe.edu> <87ofbq5hke.fsf@free.net.ph> <86k7meb2jq.fsf@mobile.repose.cx> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1031327170 22882 127.0.0.1 (6 Sep 2002 15:46:10 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 6 Sep 2002 15:46:10 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17nLJA-0005wo-00 for ; Fri, 06 Sep 2002 17:46:08 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17nLtO-0003iM-00 for ; Fri, 06 Sep 2002 18:23:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17nLKn-0002DE-00; Fri, 06 Sep 2002 11:47:49 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17nLIV-0002AL-00 for emacs-devel@gnu.org; Fri, 06 Sep 2002 11:45:27 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17nLIT-0002A4-00 for emacs-devel@gnu.org; Fri, 06 Sep 2002 11:45:27 -0400 Original-Received: from cpe-203-51-32-241.nsw.bigpond.net.au ([203.51.32.241] helo=repose.cx) by monty-python.gnu.org with esmtp (Exim 4.10) id 17nLIS-00029U-00; Fri, 06 Sep 2002 11:45:25 -0400 Original-Received: from mobile (respite.repose.cx [192.168.1.128]) by repose.cx (Postfix) with SMTP id 24DC3817D; Sat, 7 Sep 2002 01:53:35 +1000 (EST) Original-Received: by mobile (sSMTP sendmail emulation); Sat, 7 Sep 2002 01:41:50 +1000 Original-To: rms@gnu.org In-Reply-To: (Richard Stallman's message of "Sat, 31 Aug 2002 12:58:19 -0400") Original-Lines: 37 User-Agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.2 (i386-debian-linux-gnu) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:7629 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:7629 Richard Stallman writes: > After that text is inserted into the buffer in CVS, you can also see that (c-x > =) doesn't identify the last char on a line as a C-j as in previous emacsen. > > This is actually a feature. When text is invisible and intangible, > point can't be positioned after it, only before it. This avoids the > anomalous behavior that there are two possible point values with apparently > no text between them. > > It is true that some code may need to be changed to cope with the > feature. I will fix C-k. Thanks for putting in that fix, Richard. Is the following code a problem, however? (insert-string (concat "\n\n" (propertize "invisible text." 'invisible t 'intangible t) "on a line")) Eval the following code, then move to the blank line. Hit C-k. Instead of the blank line being deleted, it is deleted along with the line with invisible text below - infact all following lines that start with invis+intang text are deleted. Is this a feature? If it is, how can I work around it? I'd imagine this behavior very confusing to users in most circumstances. This seems to happen on both CVS and 21.2. Regards, -- Damien Elmes