From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: by default, point should not enter the minibuffer prompt Date: Wed, 08 Oct 2008 17:08:34 +0900 Message-ID: References: <007501c928dd$97682c80$0200a8c0@us.oracle.com> <008801c9290c$55434c70$0200a8c0@us.oracle.com> Reply-To: Miles Bader NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1223453383 21674 80.91.229.12 (8 Oct 2008 08:09:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 8 Oct 2008 08:09:43 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Drew Adams" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 08 10:10:40 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KnU7O-0000HM-J4 for ged-emacs-devel@m.gmane.org; Wed, 08 Oct 2008 10:10:03 +0200 Original-Received: from localhost ([127.0.0.1]:51769 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KnU6C-00026W-4d for ged-emacs-devel@m.gmane.org; Wed, 08 Oct 2008 04:08:48 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KnU67-00026R-Rr for emacs-devel@gnu.org; Wed, 08 Oct 2008 04:08:43 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KnU66-00026F-81 for emacs-devel@gnu.org; Wed, 08 Oct 2008 04:08:43 -0400 Original-Received: from [199.232.76.173] (port=35420 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KnU66-00026C-4M for emacs-devel@gnu.org; Wed, 08 Oct 2008 04:08:42 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:26692) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KnU64-0006BS-Ir; Wed, 08 Oct 2008 04:08:40 -0400 Original-Received: from tyo201.gate.nec.co.jp ([202.32.8.193]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KnU63-0007W1-8l; Wed, 08 Oct 2008 04:08:39 -0400 Original-Received: from relay31.aps.necel.com ([10.29.19.54]) by tyo201.gate.nec.co.jp (8.13.8/8.13.4) with ESMTP id m9888UWs016285; Wed, 8 Oct 2008 17:08:36 +0900 (JST) Original-Received: from relay11.aps.necel.com ([10.29.19.24] [10.29.19.24]) by relay31.aps.necel.com with ESMTP; Wed, 8 Oct 2008 17:08:36 +0900 Original-Received: from dhapc248.dev.necel.com ([10.114.112.215] [10.114.112.215]) by relay11.aps.necel.com with ESMTP; Wed, 8 Oct 2008 17:08:35 +0900 Original-Received: by dhapc248.dev.necel.com (Postfix, from userid 31295) id 6DA114CE; Wed, 8 Oct 2008 17:08:35 +0900 (JST) System-Type: i686-pc-linux-gnu Blat: Foop In-Reply-To: <008801c9290c$55434c70$0200a8c0@us.oracle.com> (Drew Adams's message of "Tue, 7 Oct 2008 23:08:49 -0700") Original-Lines: 36 X-detected-kernel: by mx20.gnu.org: Solaris 8 (1) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:104412 Archived-At: "Drew Adams" writes: > Find file: /current/dir/jjjjjjjjjj > kkkkkkkkkkk > > M-: (forward-line -1) > > The cursor ends up on the F of Find file, not at the start of the input after > the prompt. The problem is that you are using `forward-line'. It is a low-level function that does not do any sort of checking. Emacs commands intended for user use (C-a, C-p, etc) should act correctly and avoid the prompt. > However, it sounds like there might be some disagreement over what the default > behavior is or should be. Stefan seems to say that by default users should be > able to move to the prompt beginning (so they can copy prompt text), but Miles > seems to say - and it appears to be generally true (except multi-line cases such > as that shown above), that by default you cannot move the cursor over the prompt > (using C-a at least). Normal user commands are designed so that in normal usage, the cursor won't end up in the prompt inadvertently. However, if the user tries to force the issue, by using an unusual command sequence (e.g., "C-a C-b"), he can do so. The aim is to make normal usage convenient (by avoiding the prompt), while still giving the user freedom to access that text if he really wants to. -Miles -- ===== (^o^; (())) *This is the cute octopus virus, please copy it into your sig so it can spread.