From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#6273: dired-current-directory with `t' arg returns empty string in top-level mount-point "/" Date: Fri, 08 Jan 2016 12:43:50 +0200 Message-ID: <83poxcpd09.fsf@gnu.org> References: <87ziwiq3g6.fsf@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1452249928 18178 80.91.229.3 (8 Jan 2016 10:45:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 8 Jan 2016 10:45:28 +0000 (UTC) Cc: 6273-done@debbugs.gnu.org, monkey@sandpframing.com To: Alexis Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jan 08 11:45:17 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aHUXf-0002C7-8e for geb-bug-gnu-emacs@m.gmane.org; Fri, 08 Jan 2016 11:45:11 +0100 Original-Received: from localhost ([::1]:35004 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHUXe-0003s3-Pn for geb-bug-gnu-emacs@m.gmane.org; Fri, 08 Jan 2016 05:45:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50649) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHUXa-0003rI-M5 for bug-gnu-emacs@gnu.org; Fri, 08 Jan 2016 05:45:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aHUXW-0002P7-Qb for bug-gnu-emacs@gnu.org; Fri, 08 Jan 2016 05:45:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54087) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHUXW-0002Op-Lz for bug-gnu-emacs@gnu.org; Fri, 08 Jan 2016 05:45:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aHUXW-0000He-IO for bug-gnu-emacs@gnu.org; Fri, 08 Jan 2016 05:45:02 -0500 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Fri, 08 Jan 2016 10:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 6273 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 6273@debbugs.gnu.org, eliz@gnu.org, monkey@sandpframing.com Original-Received: via spool by 6273-done@debbugs.gnu.org id=D6273.1452249843998 (code D ref 6273); Fri, 08 Jan 2016 10:45:02 +0000 Original-Received: (at 6273-done) by debbugs.gnu.org; 8 Jan 2016 10:44:03 +0000 Original-Received: from localhost ([127.0.0.1]:42306 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aHUWZ-0000G2-HZ for submit@debbugs.gnu.org; Fri, 08 Jan 2016 05:44:03 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:59270) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aHUWX-0000FP-MS for 6273-done@debbugs.gnu.org; Fri, 08 Jan 2016 05:44:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aHUWP-000203-Qe for 6273-done@debbugs.gnu.org; Fri, 08 Jan 2016 05:43:56 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41193) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHUWP-0001zz-Nd; Fri, 08 Jan 2016 05:43:53 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1261 helo=HOME-C4E4A596F7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aHUWO-0005QE-Vc; Fri, 08 Jan 2016 05:43:53 -0500 In-reply-to: <87ziwiq3g6.fsf@gmail.com> (message from Alexis on Wed, 06 Jan 2016 23:48:09 +1100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:111367 Archived-At: > From: Alexis > Date: Wed, 06 Jan 2016 23:48:09 +1100 > Cc: 6273@debbugs.gnu.org > > Since the documentation for `dired-current-directory' states: > > "Optional argument means return a file name relative to > `default-directory'" > > and there is no file name to return in the case that > `dired-current-directory' and `default-directory' are the same, > an empty string seems to be a reasonable return value here. Actually, the value returned by dired-current-directory is always an empty string of default-directory is the same one as the directory where the file on the current line lives. IOW, the issue is not limited to "/" as the current directory of the Dired buffer. I think this is just something that needs to be clarified in the doc string, so I just pushed such a change, and I'm marking this bug done. Thanks for looking into it.