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: Mon, 28 Nov 2005 22:46:15 +0100 Message-ID: <853blg5tug.fsf@lola.goethe.zz> References: <85y83dleho.fsf@lola.goethe.zz> <85br04btnu.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 1133214440 31191 80.91.229.2 (28 Nov 2005 21:47:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 28 Nov 2005 21:47:20 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 28 22:47:18 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EgqpN-0001lU-57 for ged-emacs-devel@m.gmane.org; Mon, 28 Nov 2005 22:46:25 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EgqpM-0007WG-Jl for ged-emacs-devel@m.gmane.org; Mon, 28 Nov 2005 16:46:24 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EgqpB-0007W6-GW for emacs-devel@gnu.org; Mon, 28 Nov 2005 16:46:13 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EgqpA-0007Vt-Vx for emacs-devel@gnu.org; Mon, 28 Nov 2005 16:46:13 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EgqpA-0007Vq-TX for emacs-devel@gnu.org; Mon, 28 Nov 2005 16:46:12 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EgqpA-0007r0-W9 for emacs-devel@gnu.org; Mon, 28 Nov 2005 16:46:13 -0500 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1Egqp7-0007HB-JL; Mon, 28 Nov 2005 16:46:10 -0500 Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id C793A1D5981F; Mon, 28 Nov 2005 22:46:15 +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 21:17:59 +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:46727 Archived-At: lorentey@elte.hu (L=C5=91rentey K=C3=A1roly) writes: > Thus, the current behaviour is clearly broken. It is not clear, > however, what C-a/C-e is supposed to do when point is on a field > boundary. > > * * * > > Meanwhile, I found an archived discussion thread which explains the > intended difference between the two flavours: > > http://thread.gmane.org/gmane.emacs.devel/34012 > > From: Kim F. Storm > Subject: move-beginning-of-line > Date: 2005-03-01 23:01:16 GMT > Message-ID: > > 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? > Funnily enough, on closer inspection the doc string do indicate this > difference: > > ,----[ C-h f move-beginning-of-line RET > | Move point to beginning of current display line. > | ^^^^^^^ > `---- > > ,----[ C-h f beginning-of-line RET > | Move point to beginning of current line. > `---- > > Obviously this needs to be elaborated. Oh wow. You can say that again. --=20 David Kastrup, Kriemhildstr. 15, 44793 Bochum