From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: MON KEY Newsgroups: gmane.emacs.bugs Subject: bug#6273: dired-current-directory with `t' arg returns empty string in top-level mount-point "/" Date: Tue, 25 May 2010 17:18:40 -0400 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: dough.gmane.org 1274822851 30629 80.91.229.12 (25 May 2010 21:27:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 25 May 2010 21:27:31 +0000 (UTC) To: 6273@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue May 25 23:27:30 2010 connect(): No such file or directory Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OH1er-0001EZ-H9 for geb-bug-gnu-emacs@m.gmane.org; Tue, 25 May 2010 23:27:29 +0200 Original-Received: from localhost ([127.0.0.1]:34040 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OH1eq-0002fl-T0 for geb-bug-gnu-emacs@m.gmane.org; Tue, 25 May 2010 17:27:28 -0400 Original-Received: from [140.186.70.92] (port=60906 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OH1el-0002e3-9j for bug-gnu-emacs@gnu.org; Tue, 25 May 2010 17:27:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OH1ei-0006zW-FV for bug-gnu-emacs@gnu.org; Tue, 25 May 2010 17:27:23 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49514) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OH1ei-0006zS-D4 for bug-gnu-emacs@gnu.org; Tue, 25 May 2010 17:27:20 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OH1Wg-0008QY-9L; Tue, 25 May 2010 17:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: MON KEY Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 25 May 2010 21:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 6273 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.127482233132384 (code B ref -1); Tue, 25 May 2010 21:19:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 25 May 2010 21:18:51 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OH1WU-0008QH-RF for submit@debbugs.gnu.org; Tue, 25 May 2010 17:18:51 -0400 Original-Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OH1WS-0008QC-NQ for submit@debbugs.gnu.org; Tue, 25 May 2010 17:18:49 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:59740) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1OH1WO-0001Fb-JN for submit@debbugs.gnu.org; Tue, 25 May 2010 17:18:44 -0400 Original-Received: from [140.186.70.92] (port=39837 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OH1WM-00008K-H2 for bug-gnu-emacs@gnu.org; Tue, 25 May 2010 17:18:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OH1WL-0005f6-Gk for bug-gnu-emacs@gnu.org; Tue, 25 May 2010 17:18:42 -0400 Original-Received: from mail-gw0-f41.google.com ([74.125.83.41]:50102) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OH1WL-0005es-EW for bug-gnu-emacs@gnu.org; Tue, 25 May 2010 17:18:41 -0400 Original-Received: by gwb19 with SMTP id 19so1755630gwb.0 for ; Tue, 25 May 2010 14:18:40 -0700 (PDT) Original-Received: by 10.151.3.25 with SMTP id f25mr8112440ybi.183.1274822320491; Tue, 25 May 2010 14:18:40 -0700 (PDT) Original-Received: by 10.151.143.21 with HTTP; Tue, 25 May 2010 14:18:40 -0700 (PDT) X-Google-Sender-Auth: nwjptLzZleLPmCZL7gvPeGU_ZbM X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 25 May 2010 17:19:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:37279 Archived-At: (dired-current-directory t) returns the empty string when in a `top-level' mount point, e.g. "/" (progn (dired "/" ) (dired-current-directory t)) => "" ,---- (documentation 'dired-current-directory) | {...} | This returns a string with trailing slash, like `default-directory'. | Optional argument means return a file name relative to `default-directory'. `---- In the case at hand it does not return a string with trailing slash... and appears in contrast to the return value of following forms: (progn (dired "/") (file-relative-name default-directory)) => "./" (progn (dired "/") (file-relative-name (dired-default-directory))) => "./" which are likewise at odds with each of the following: (progn (dired "/") (dired-make-relative (dired-default-directory))) => "" (progn (dired "/") (dired-make-relative (dired-make-absolute default-directory))) => "/" So which is the correct return value? Relatively speaking... GNU Emacs 23.2.1 (i686-pc-linux-gnu, GTK+ Version 2.20.0) of 2010-05-10 -- /s_P\