From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: Something is rotten with end-of-line and move-end-of-line Date: Tue, 29 Nov 2005 00:10:08 +0100 Message-ID: <854q5w4be7.fsf@lola.goethe.zz> 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 1133219526 14711 80.91.229.2 (28 Nov 2005 23:12:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 28 Nov 2005 23:12:06 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 29 00:11:56 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Egs8r-0005eU-D7 for ged-emacs-devel@m.gmane.org; Tue, 29 Nov 2005 00:10:38 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Egs8o-00065W-Jo for ged-emacs-devel@m.gmane.org; Mon, 28 Nov 2005 18:10:34 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Egs8R-00064l-K0 for emacs-devel@gnu.org; Mon, 28 Nov 2005 18:10:11 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Egs8Q-00063r-DD for emacs-devel@gnu.org; Mon, 28 Nov 2005 18:10:11 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Egs8P-00063R-W8 for emacs-devel@gnu.org; Mon, 28 Nov 2005 18:10:10 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Egs8P-0002X1-OD for emacs-devel@gnu.org; Mon, 28 Nov 2005 18:10:09 -0500 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1Egs8L-0005J7-RI; Mon, 28 Nov 2005 18:10:06 -0500 Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id B916C1D5981F; Tue, 29 Nov 2005 00:10:08 +0100 (CET) Original-To: lorentey@elte.hu (=?utf-8?Q?L=C5=91rentey_K=C3=A1roly?=) In-Reply-To: (=?utf-8?Q?L=C5=91rentey_K=C3=A1roly's?= message of "Mon, 28 Nov 2005 23:39:22 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (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:46737 Archived-At: lorentey@elte.hu (L=C5=91rentey K=C3=A1roly) writes: > 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 Why would it do that? beginning-of-line moved backwards, so I'd expect 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. Pretty much the same with regard to the keyboard loop. > However, `end-of-line' and `beginning-of-line' behave the same > (well, similar) way with invisible newlines.) --=20 David Kastrup, Kriemhildstr. 15, 44793 Bochum