From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Boruch Baum Newsgroups: gmane.emacs.bugs Subject: bug#43375: 26.1: file-directory-p returns t for empty string Date: Sun, 13 Sep 2020 12:29:00 -0400 Message-ID: <20200913162900.rhsfskhrdqi5odao@E15-2016.optimum.net> References: <20200913124737.bnsdbrhkfb7xpesj@E15-2016.optimum.net> <87een5g72d.fsf@igel.home> <20200913143943.6u5zt4wyxney5wlh@E15-2016.optimum.net> <83tuw1bu00.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18954"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: NeoMutt/20180716 Cc: schwab@linux-m68k.org, 43375@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 13 18:30:56 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kHUu0-0004s6-HL for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 13 Sep 2020 18:30:56 +0200 Original-Received: from localhost ([::1]:58852 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kHUtz-0007Bt-2T for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 13 Sep 2020 12:30:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58882) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kHUt9-0007Bl-9p for bug-gnu-emacs@gnu.org; Sun, 13 Sep 2020 12:30:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39940) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kHUt8-0004JC-Vh for bug-gnu-emacs@gnu.org; Sun, 13 Sep 2020 12:30:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kHUt8-0007FA-Rf for bug-gnu-emacs@gnu.org; Sun, 13 Sep 2020 12:30:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Boruch Baum Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 13 Sep 2020 16:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43375 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed Original-Received: via spool by 43375-submit@debbugs.gnu.org id=B43375.160001455427769 (code B ref 43375); Sun, 13 Sep 2020 16:30:02 +0000 Original-Received: (at 43375) by debbugs.gnu.org; 13 Sep 2020 16:29:14 +0000 Original-Received: from localhost ([127.0.0.1]:51486 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kHUsM-0007Dp-3v for submit@debbugs.gnu.org; Sun, 13 Sep 2020 12:29:14 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:41239) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kHUsJ-0007Da-Ct for 43375@debbugs.gnu.org; Sun, 13 Sep 2020 12:29:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1600014543; bh=0OdyNgiLTw3pOAG01srp5ehD9+nAWBJ9t40T246oy/Y=; h=X-UI-Sender-Class:Date:From:To:Cc:Subject:References:In-Reply-To; b=WINm1OsFltrPlDM2LIJFR8pwMCGUexmnxwu+UGU6C5pvPv8L38SKyMEdp5D7uYFN0 oR0T0ym2OHkKR0qPP87Pxq9cVTvDlPRdEtV+ZUQlsTH8TRsvqAOnuZ8E5mXJOVGj7z NPDZH2TTQkHyAOTWACQ8kLqAFYHUIpLkubUrDhXM= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from E15-2016.optimum.net ([72.89.170.172]) by mail.gmx.com (mrgmx005 [212.227.17.184]) with ESMTPSA (Nemesis) id 1MStCe-1k4oLZ1oB4-00UFt7; Sun, 13 Sep 2020 18:29:03 +0200 Content-Disposition: inline In-Reply-To: <83tuw1bu00.fsf@gnu.org> X-Provags-ID: V03:K1:UoVqpEEWKFoljBJvzUFmRyej5YcTc0nfnH4Ga+LSFD4Lfe0FxeD m48cbuknyt6xCZCU6AxajGTxUZysL1XXG8vTdrTUFZprl0gECOm1v/1E7vJxCchfRu8JG6S cycwZYjssWoJqfS4ZITQIaXtWkSfCrsn9tGYW04ZWCbRVYydpOtXIfWrWRO3Xgyfe8NqKis eTw5vwsXmo79gRAGM3pgw== X-UI-Out-Filterresults: notjunk:1;V03:K0:ty3tNCU0lDA=:qJDvq3pBUSZnOvgNuLlgit V+tjF7BrGz4NZlzjM0T/+0xefAjDzU4z23r2cxh5oaWmCR+tn9Ljx7aROR6QkB5eP2GE2tE/U fRWWWM4vpbLbkx7AhexNnohwPDdi/cLBJMD9MGc8aWBQIh0EiKZJjtaYrUfyUcESnvzLSzZGP tfRrW188PQo2VL0GXKBv4wSwMBxUA3kHScQtXvT67jRuBzTeZDn8VClXDNwW+H0Aav65nPQAM asfwzqOeLXT1qaGz1+B+hP3/m9XFUySAfbK7m/mz5d8J52oOvvMFt1g+txNvtnJyk1XQUBOCi a7ikXg2yCwGV2b6qIOejPMKvV579DH1nySUMCeMHClb+DT6EHYSmOT89GZi3ZZ3DYY0VtTt81 jLWGXgLa+6OtMndA0hxLfgRIQglMJO4nVAKuBu/YLxj9jXP7OeNq0s3NE71jIBXzfYwlJUFjX NLnnZFWb348wShNfNCmSjrXmo+bGQI/4AAhKgnNgdEmra4AYfjGrUmR2MQ6Hek5e5cOFUk/od a1aT9DqXxsNi/OpNHLmg6YfzwFr8rh2PnvMZwMRTeqOvrwyJ35bomzgKEXuNVqpqWLYR5mS/V dCKpKCr4gil6nIZ4EMujv7Vtox5MC5Wke+wgvrWRWoKF6LIbN4tXRaMqL0vYGPCiTRs6CZYP2 NPls3dkrQbDIewQsVihp+8v7i8pDx4oB0kcNnzzZ0284Czr7pYJxlI0uuTIkmtBkyCosgiqLN zJwyxm0ZyLs0zAExgt17hvt3GuTGraWRNFmibrcyqxMxb3FpNVKCdnVa27juwCsFja6cXu0m X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:187978 Archived-At: On 2020-09-13 18:01, Eli Zaretskii wrote: > > Date: Sun, 13 Sep 2020 10:39:43 -0400 > > From: Boruch Baum > > Cc: 43375@debbugs.gnu.org > > > > > > (file-directory-p "") > > > > > > This is not a bug, as Emacs always works with expanded and canonical= ized > > > file names (the result of applying expand-file-name). > > > > Then the docstring could be clearer and say "Return t if the expansion > > of FILENAME names an existing directory" > > That's not a useful doc string, because "expansion of FILENAME" is not > well defined, and is not easy to describe. > > I'm okay with making the doc string more clear, but let's please think > about a more useful amendment. A doc string should help the user > understand what will/did happen, it shouldn't present puzzles. How about: Return t if evaluating `expand-file-name' on FILENAME names an existing directory. =2D- hkp://keys.gnupg.net CA45 09B5 5351 7C11 A9D1 7286 0036 9E45 1595 8BC0