From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.bugs Subject: Re: C-x d: don't make user have to retype misspelled dirs Date: Tue, 25 Jun 2002 10:04:54 -0600 Sender: bug-gnu-emacs-admin@gnu.org Message-ID: <3D1894A6.5020707@ihs.com> References: <86adpur35d.fsf@jidanni.org> <200206180810.g5I8A6o14818@aztec.santafe.edu> <87sn3kfqe8.fsf@jidanni.org> <200206201433.g5KEXsr18580@aztec.santafe.edu> <87fzzhtlgg.fsf@jidanni.org> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1025021164 12621 127.0.0.1 (25 Jun 2002 16:06:04 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 25 Jun 2002 16:06:04 +0000 (UTC) Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17MspP-0003HS-00 for ; Tue, 25 Jun 2002 18:06:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17Mspf-0006AZ-00; Tue, 25 Jun 2002 12:06:19 -0400 Original-Received: from ashd1-2.relay.mail.uu.net ([199.171.54.246]) by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian)) id 17MsoJ-00062g-00 for ; Tue, 25 Jun 2002 12:04:55 -0400 Original-Received: from mail.fu-berlin.de by mr1.ash.ops.us.uu.net with ESMTP (peer crosschecked as: mail.fu-berlin.de [160.45.11.165]) id QQmuui02378 for ; Tue, 25 Jun 2002 16:04:53 GMT Original-Received: by mail.fu-berlin.de (Smail3.2.0.98) from Curry.ZEDAT.FU-Berlin.DE (160.45.10.36) with esmtp id ; Tue, 25 Jun 2002 18:04:53 +0200 (MEST) Original-Received: by Curry.ZEDAT.FU-Berlin.DE (Smail3.2.0.98) from news.fu-berlin.de with bsmtp id ; Tue, 25 Jun 2002 18:04:52 +0200 (MEST) Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: 170.207.51.80!not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 28 X-Orig-NNTP-Posting-Host: 170.207.51.80 X-Orig-X-Trace: fu-berlin.de 1025021092 13257559 170.207.51.80 (16 [82742]) User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 X-Accept-Language: en-us Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:2269 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:2269 Dan Jacobson wrote: > Dan> er, um, Checkmate: how come C-x C-r in the same situation will not let > Dan> the user get away with a RET here, and instead does the comfy cosy > Dan> coaxing thing, whereas C-x d does the parental punishment thing. > > RMS> I don't follow what you are saying about C-x C-r. > RMS> Would you please be more explicit? > > $ ls -d /var/lo* > /var/local /var/lock /var/log /var/lost+found > > C-x d / v a r / l o C-x C-r / v a r / l o > > Consider the treatment one gets on the first vs. the second > and third. The former is like tough luck bub, whereas the latter is > VIP helping environment warm & fuzzy. I believe this all comes back to the fact that there is only a single `interactive' character code for reading a directory ("D"), and so there isn't a way to distinguish between an existing directory and a possibly nonexistent directory (cf. "f" and "F" for files). Neither is there a read-directory-name analogue for read-file-name, which accepts an optional MUSTMATCH argument. -- Kevin Rodgers