From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: move-beginning-of-line Date: Mon, 14 Mar 2005 13:48:13 -0500 Message-ID: References: <200503140258.j2E2wbI11194@raven.dms.auburn.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1110827352 3063 80.91.229.2 (14 Mar 2005 19:09:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 14 Mar 2005 19:09:12 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 14 20:09:11 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DAufQ-0005yC-HL for ged-emacs-devel@m.gmane.org; Mon, 14 Mar 2005 19:51:53 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DAuv9-0001cC-Hw for ged-emacs-devel@m.gmane.org; Mon, 14 Mar 2005 14:08:07 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DAutp-0000n5-9H for emacs-devel@gnu.org; Mon, 14 Mar 2005 14:06:45 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DAutl-0000l5-JH for emacs-devel@gnu.org; Mon, 14 Mar 2005 14:06:42 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DAuti-0000j3-To for emacs-devel@gnu.org; Mon, 14 Mar 2005 14:06:38 -0500 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DAuc5-0005tq-Dr for emacs-devel@gnu.org; Mon, 14 Mar 2005 13:48:26 -0500 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id E2446340006; Mon, 14 Mar 2005 13:48:18 -0500 (EST) Original-Received: from asado.iro.umontreal.ca (asado.iro.umontreal.ca [132.204.24.84]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id E7EA82CC00B; Mon, 14 Mar 2005 13:48:13 -0500 (EST) Original-Received: by asado.iro.umontreal.ca (Postfix, from userid 20848) id C6087156062; Mon, 14 Mar 2005 13:48:13 -0500 (EST) Original-To: Ralf Angeli In-Reply-To: (Ralf Angeli's message of "Mon, 14 Mar 2005 17:48:40 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-4.822, requis 5, autolearn=not spam, AWL 0.08, BAYES_00 -4.90) 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 X-MailScanner-To: ged-emacs-devel@m.gmane.org Xref: news.gmane.org gmane.emacs.devel:34589 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:34589 > If found it a bit peculiar that `M-x beginning-of-line RET' and `M-: > (beginning-of-line) RET' yielded different results. In the former > case point will end up on the first "1" and in the latter case after > the last "1". The place where point ends up when moving into an invisible (or "display"ed or composed) area of text is not really well defined, because it tries to DTRT based on how you got there, while at the same time trying to make sure it never majorly screws up. In the M-: and M-x cases, doing the right thing is not nearly as obvious as you'd think because the "command" that does the work is actually the RET which exits from the minibuffer and then runs the actual code, so the "start point" and "end point" of the command are not even in the same buffer, so inferring the direction of the movement is not done correctly. Stefan