From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Sacha Chua Newsgroups: gmane.emacs.devel Subject: Re: last character on line different when behind invis text? Date: 26 Aug 2002 13:12:49 +0800 Sender: emacs-devel-admin@gnu.org Message-ID: <87ofbq5hke.fsf@free.net.ph> References: <86bs7scq7v.fsf@mobile.repose.cx> <200208260036.g7Q0aO912379@wijiji.santafe.edu> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1030339003 17947 127.0.0.1 (26 Aug 2002 05:16:43 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 26 Aug 2002 05:16:43 +0000 (UTC) Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17jCF0-0004fM-00 for ; Mon, 26 Aug 2002 07:16:42 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17jCjf-0000t6-00 for ; Mon, 26 Aug 2002 07:48:23 +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 17jCGI-0002KL-00; Mon, 26 Aug 2002 01:18:02 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17jCEn-0002Hm-00 for emacs-devel@gnu.org; Mon, 26 Aug 2002 01:16:29 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17jCEl-0002HS-00 for emacs-devel@gnu.org; Mon, 26 Aug 2002 01:16:29 -0400 Original-Received: from pusit.admu.edu.ph ([202.138.180.130]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17jCEk-0002Gy-00 for emacs-devel@gnu.org; Mon, 26 Aug 2002 01:16:27 -0400 Original-Received: from pusit.admu.edu.ph (unknown [127.0.0.1]) by localhost (Postfix) with ESMTP id A8E001B579 for ; Mon, 26 Aug 2002 05:18:02 +0000 (UTC) Original-Received: from cersa.admu.edu.ph (cersa.admu.edu.ph [10.2.53.1]) by pusit.admu.edu.ph (Postfix) with ESMTP id A08B01B7D8 for ; Mon, 26 Aug 2002 13:17:54 +0800 (PHT) Original-Received: from sachac (unknown [192.168.0.7]) by cersa.admu.edu.ph (Postfix) with ESMTP id 647731C10D for ; Mon, 26 Aug 2002 13:17:04 +0800 (PHT) Original-Received: from sacha by sachac with local (Exim 3.35 #1 (Debian)) id 17jCBF-0000g0-00 for ; Mon, 26 Aug 2002 13:12:49 +0800 Original-To: emacs-devel@gnu.org In-Reply-To: <200208260036.g7Q0aO912379@wijiji.santafe.edu> Original-Lines: 46 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 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:6899 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:6899 Richard Stallman writes: > What appears to have changed in CVS is that c-x = on the end of a line with > invisible characters in it, actually reveals the last invisible character, > instead of the new line. > > Can you provide a precise test case? It is not feasible to think > about what's going on here without one. Related test case: Killing a line that ends with invisible text results in killing the next line as well, even if it has visible text that is clearly not part of the first line. To wit: After an emacs -q, eval this in a scratch buffer: (insert-string (concat "Line 1 with " (propertize "invisible text." 'invisible \t 'intangible t) "\nLine 2 with " (propertize "invisible text." 'invisible t 'intangible t) "\nLine 3 with visible text.\n")) Output: Line 1 with Line 2 with Line 3 with visible text. Position point on line 1 (say, on the n) and kill the line. I expect output to be: Li Line 2 with Line 3 with visible text. But output is: Li Strange. Please explain behavior of end-of-visible-line? I've been staring at this piece of code and I know what it does, but not why it makes sense to skip over visible characters that are part of a different line. -- Sacha Chua - 4 BS CS Ateneo geekette interests: emacs, gnu/linux, wearables, teaching compsci