From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: Re: dired-kill-tree Date: Sun, 6 Jun 2004 20:08:46 -0500 (CDT) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200406070108.i5718k108752@raven.dms.auburn.edu> References: <200406062119.i56LJ3E01005@raven.dms.auburn.edu> <20040606212706.GA10671@fencepost> NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1086570618 15424 80.91.224.253 (7 Jun 2004 01:10:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 7 Jun 2004 01:10:18 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Mon Jun 07 03:10:12 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BX8eS-0006uv-00 for ; Mon, 07 Jun 2004 03:10:12 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BX8eS-0003DJ-00 for ; Mon, 07 Jun 2004 03:10:12 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BX8ex-0000Cu-PU for emacs-devel@quimby.gnus.org; Sun, 06 Jun 2004 21:10:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BX8eq-0000Cm-S0 for emacs-devel@gnu.org; Sun, 06 Jun 2004 21:10:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BX8en-0000CV-B4 for emacs-devel@gnu.org; Sun, 06 Jun 2004 21:10:36 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BX8en-0000CS-3t for emacs-devel@gnu.org; Sun, 06 Jun 2004 21:10:33 -0400 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BX8eB-0005dl-3v; Sun, 06 Jun 2004 21:09:55 -0400 Original-Received: from raven.dms.auburn.edu (raven.dms.auburn.edu [131.204.53.29]) by manatee.dms.auburn.edu (8.12.10/8.12.10) with ESMTP id i5719suE023436; Sun, 6 Jun 2004 20:09:54 -0500 (CDT) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.6+Sun/8.11.6) id i5718k108752; Sun, 6 Jun 2004 20:08:46 -0500 (CDT) X-Authentication-Warning: raven.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: miles@gnu.org In-reply-to: <20040606212706.GA10671@fencepost> (message from Miles Bader on Sun, 6 Jun 2004 17:27:06 -0400) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:24629 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:24629 Actually, there is a third (much more general) way to view the anomaly. The first way to deal with the problem was to quite simply make the behavior into a feature by documenting it into the docstring. The second is to change: (setq dirname (expand-file-name dirname)) into: (setq dirname (file-name-as-directory (expand-file-name dirname))) thereby getting rid of the feature. The third way is that maybe the behavior of the "D" interactive code, usd by `dired-kill-tree' is anomalous: >>From (elisp)Interactive Codes: `D' A directory name. The default is the current default directory of the current buffer, `default-directory' (*note File Name Expansion::). Existing, Completion, Default, Prompt. If I have a directory ~/subdir, and no other subdirectory of ~/ starting with ~/subd, then if I enter ~/subd RET, then depending on my customizations, Emacs will, in various ways, tell me that the only possible completion is ~/subdir/. But if I type ~/subdir, it will accept that as is. That is, contrary to its documentation, the `D' interactive code does not only accept existing directory names, but also existing directory file names. The two are _only_ equivalent if the function using `D' makes them equivalent. The completions listed after say, ~/subd RET, do not interact very well with the first way to deal with the problem, because they only include ~/subdir/, not ~/subdir. Sincerely, Luc.