From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nicolas Richard Newsgroups: gmane.emacs.bugs Subject: bug#21931: 25.0.50; behaviour of read-directory-name with double slashes Date: Mon, 23 Nov 2015 15:14:59 +0100 Message-ID: <86ziy4vm3g.fsf@members.fsf.org> References: <86bnaue9w8.fsf@members.fsf.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1448288208 2754 80.91.229.3 (23 Nov 2015 14:16:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 23 Nov 2015 14:16:48 +0000 (UTC) Cc: 21931-done@debbugs.gnu.org To: John Wiegley Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 23 15:16:34 2015 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 1a0ruc-0007ik-G4 for geb-bug-gnu-emacs@m.gmane.org; Mon, 23 Nov 2015 15:16:10 +0100 Original-Received: from localhost ([::1]:60789 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0rud-000244-4j for geb-bug-gnu-emacs@m.gmane.org; Mon, 23 Nov 2015 09:16:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47213) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0ruZ-000236-QF for bug-gnu-emacs@gnu.org; Mon, 23 Nov 2015 09:16:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a0ruU-0003II-Pl for bug-gnu-emacs@gnu.org; Mon, 23 Nov 2015 09:16:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59447) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0ruU-0003I7-Li for bug-gnu-emacs@gnu.org; Mon, 23 Nov 2015 09:16:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1a0ruU-0007X1-Cs for bug-gnu-emacs@gnu.org; Mon, 23 Nov 2015 09:16:02 -0500 Resent-From: Nicolas Richard Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Mon, 23 Nov 2015 14:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 21931 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 21931@debbugs.gnu.org, youngfrog@members.fsf.org, youngfrog@members.fsf.org Original-Received: via spool by 21931-done@debbugs.gnu.org id=D21931.144828811328880 (code D ref 21931); Mon, 23 Nov 2015 14:16:01 +0000 Original-Received: (at 21931-done) by debbugs.gnu.org; 23 Nov 2015 14:15:13 +0000 Original-Received: from localhost ([127.0.0.1]:49153 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a0rtg-0007Vk-M9 for submit@debbugs.gnu.org; Mon, 23 Nov 2015 09:15:12 -0500 Original-Received: from mailrelay111.isp.belgacom.be ([195.238.20.138]:13175) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a0rte-0007Vb-Dd for 21931-done@debbugs.gnu.org; Mon, 23 Nov 2015 09:15:11 -0500 X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2BhGAA0H1NW/2LHsltegzuBQqwGBAYFAYENk26GDwKBPzwRAQEBAQEBAYEKhDUBAQRWIxAIAw4TJQ8BKR4GE4gyAb4bAQEBAQEFAgEghg2FRYk5BY0eiTKIFoZ2h2WTCzcsghEdgVc9NIUrAQEB Original-Received: from 98.199-178-91.adsl-dyn.isp.belgacom.be (HELO Aurora) ([91.178.199.98]) by relay.skynet.be with ESMTP; 23 Nov 2015 15:14:59 +0100 User-agent: mu4e 0.9.15; emacs 25.1.50.2 In-reply-to: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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:109121 Archived-At: John Wiegley writes: >>>>>> Nicolas Richard writes: > >> ("/tmp/src/" "/" "src/" "/" "/src/" "/") >> Is this intended ? > > What list were you expecting to see? "//" has always meant "start at root" to > mean, ignoring whatever comes prior. This is how C-x C-f works, and it means > you don't have to delete any existing default text in order to begin at root. Indeed, but when constructing a path via (concat foo "/" bar), it can happen that the result contains //. If this is then used as arg to read-directory-name, this leads to an unexpected default. OTOH (info "(elisp) Directory Names") explicitly says that using concat for constructing paths in this way is wrong, so I guess that this bug report is void. Thanks for looking into it, I close it. Nico.