From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: by default, point should not enter the minibuffer prompt Date: Tue, 7 Oct 2008 23:08:49 -0700 Message-ID: <008801c9290c$55434c70$0200a8c0@us.oracle.com> References: <007501c928dd$97682c80$0200a8c0@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1223446159 1365 80.91.229.12 (8 Oct 2008 06:09:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 8 Oct 2008 06:09:19 +0000 (UTC) Cc: emacs-devel@gnu.org To: "'Miles Bader'" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 08 08:10:16 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 1KnSFR-0004zR-Lf for ged-emacs-devel@m.gmane.org; Wed, 08 Oct 2008 08:10:13 +0200 Original-Received: from localhost ([127.0.0.1]:59342 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KnSEN-00075L-Qv for ged-emacs-devel@m.gmane.org; Wed, 08 Oct 2008 02:09:07 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KnSEI-00074C-EZ for emacs-devel@gnu.org; Wed, 08 Oct 2008 02:09:02 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KnSEH-00073D-DX for emacs-devel@gnu.org; Wed, 08 Oct 2008 02:09:01 -0400 Original-Received: from [199.232.76.173] (port=49138 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KnSEH-000737-9D for emacs-devel@gnu.org; Wed, 08 Oct 2008 02:09:01 -0400 Original-Received: from agminet01.oracle.com ([141.146.126.228]:63477) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KnSEF-0006Aj-GF; Wed, 08 Oct 2008 02:08:59 -0400 Original-Received: from agmgw1.us.oracle.com (agmgw1.us.oracle.com [152.68.180.212]) by agminet01.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id m9868l3B012422; Wed, 8 Oct 2008 01:08:48 -0500 Original-Received: from acsmt705.oracle.com (acsmt705.oracle.com [141.146.40.83]) by agmgw1.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id m9868j0h003542; Wed, 8 Oct 2008 00:08:47 -0600 Original-Received: from dradamslap1 (/141.144.57.24) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 08 Oct 2008 06:08:45 +0000 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: Acko66SOtoixRSdAQQ+mIS/JPthR7AAHVRFg X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 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:104410 Archived-At: > > Users shouldn't have to customize > > `minibuffer-prompt-properties' just to make > > `C-a' not enter the prompt, etc. > > They don't have to. > > If that is not the behavior you observe, please provide more detailed > info. Remember to use emacs -Q. This will seem contorted ;-), but here goes (same for Emacs 22.3 and Emacs 23 from Oct 3): emacs -Q (setq enable-recursive-minibuffers t) C-x C-f jjjjjjjjjj C-q kkkkkkkkkkk So you see this in the minibuffer, with point after the k's: 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. I'm not saying that a user will typically go through such contortions. This arose because in Icicles C-a in the minibuffer does (forward-line 0) but if repeated does (forward-line -1), so that you can move up at line beginnings by repeating C-a (C-e does the same for line endings but moving down). It's not that unusual to have multiple-line input in Icicles, so it's not unusual to move to the beginning of the input with repeated C-a (not for file names, but for other input). If `minibuffer-prompt-properties' includes `point-entered minibuffer-avoid-prompt' there is no such problem (which is why I didn't see the behavior myself, since I had customized it to include that). It's not a big deal. I can easily work around this for Icicles, but I didn't want to trample on user preferences for `minibuffer-prompt-properties' (e.g. if a user really did want to move to the prompt beginning). 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).