From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: lorentey@elte.hu (=?utf-8?Q?L=C5=91rentey_K=C3=A1roly?=) Newsgroups: gmane.emacs.devel Subject: Re: Something is rotten with end-of-line and move-end-of-line Date: Mon, 28 Nov 2005 23:39:22 +0100 Message-ID: References: <85y83dleho.fsf@lola.goethe.zz> <85br04btnu.fsf@lola.goethe.zz> <853blg5tug.fsf@lola.goethe.zz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1133217984 9934 80.91.229.2 (28 Nov 2005 22:46:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 28 Nov 2005 22:46:24 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 28 23:46:15 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Egriv-0008Sw-S8 for ged-emacs-devel@m.gmane.org; Mon, 28 Nov 2005 23:43:50 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Egriu-0003BY-8P for ged-emacs-devel@m.gmane.org; Mon, 28 Nov 2005 17:43:48 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EgreZ-0000zX-S1 for emacs-devel@gnu.org; Mon, 28 Nov 2005 17:39:19 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EgreM-0000uH-56 for emacs-devel@gnu.org; Mon, 28 Nov 2005 17:39:19 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EgreK-0000tv-2n for emacs-devel@gnu.org; Mon, 28 Nov 2005 17:39:05 -0500 Original-Received: from [212.92.23.158] (helo=ninsei.hu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EgreF-0003eO-Ia; Mon, 28 Nov 2005 17:39:00 -0500 Original-Received: from walrus (walrus.inf.elte.hu [157.181.166.149]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by chatsubo.ninsei.hu (Postfix) with ESMTP id 384C81AD07; Mon, 28 Nov 2005 23:38:56 +0100 (CET) Original-Received: by walrus (Postfix, from userid 1000) id 3DD085E136; Mon, 28 Nov 2005 23:39:22 +0100 (CET) Original-To: David Kastrup In-Reply-To: <853blg5tug.fsf@lola.goethe.zz> (David Kastrup's message of "Mon, 28 Nov 2005 22:46:15 +0100") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.52 (gnu/linux) 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:46733 Archived-At: David Kastrup writes: >> There is a test case given in the discussion that demonstrates the >> original problem: >> >> (progn >> (insert "\nab") >> (insert-image-file "../etc/splash.xpm") >> (move-end-of-line 1)=20 >> (insert "def\n")) >> >> move-b/e-of-line move across the image to the line ending that >> corresponds to what is displayed on the screen, while the builtin >> b/e-of-line variants stop at the hidden newlines embedded in the image >> file. > > Correct me if I am wrong, but we move point away from invisible areas > anyway in the keyboard input loop, so there is no necessity to let > move-end-of-line do the deed explicitly in order to get > user-comprehensible behavior, right? Consider the above example, when point is after the inserted image: ab[IMAGE]def Executing `beginning-of-line' stops right after the image, which is not what the user expects. ab[IMAGE]def Similarly, from the other way around, `end-of-line' stops just before the image. (Note that the text that is hidden behind the image has display and intangible properties only, it is not invisible. However, `end-of-line' and `beginning-of-line' behave the same (well, similar) way with invisible newlines.) --=20 K=C3=A1roly