From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: file-exists-p on empty string Date: Wed, 27 Feb 2019 17:00:45 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="159759"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 27 17:03:25 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gz1fz-000fLI-Ic for ged-emacs-devel@m.gmane.org; Wed, 27 Feb 2019 17:03:19 +0100 Original-Received: from localhost ([127.0.0.1]:46571 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gz1fy-000408-JZ for ged-emacs-devel@m.gmane.org; Wed, 27 Feb 2019 11:03:18 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:60377) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gz1fE-0003zz-BX for emacs-devel@gnu.org; Wed, 27 Feb 2019 11:02:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gz1f1-0006oL-V4 for emacs-devel@gnu.org; Wed, 27 Feb 2019 11:02:22 -0500 Original-Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]:34203) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gz1ex-0006Fd-Jy for emacs-devel@gnu.org; Wed, 27 Feb 2019 11:02:15 -0500 Original-Received: by mail-wr1-x42b.google.com with SMTP id f14so18579831wrg.1 for ; Wed, 27 Feb 2019 08:00:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:mail-followup-to:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:mime-version :content-transfer-encoding; bh=xGOYT1bkKFaHPtZHSi0RYgIVJRqCq5QkBiAFfluxq5g=; b=WbmKqWKnEVNBAuAGfBe5BoIuCefKRRWagKuGaY/A4xKcUa4z3VXuq7kwL7T1PcXThj Khxc+hfb1U0MOUMldwdVfW8Yqwcf+XCh2qOW+P0ue0SYX/lQaUCmO+/ILKhDSh9FYf+o 8BCd4n1GLuNgU07XrE4yZd6YGNoEJURbj3jbZrXUvrO2+HMxaUA8KbE6Vp0T9BFqHWB1 EO1opGYg2V+I2piMWiNZqXaaKW80HKNeFnHSpCq7h1SJjXFNBdaQIPos7KgBnrly5q6k tZZlN9ivd5i08r51PHfTwyb+R/SIJBWwhZqz7ozXl5sREGIbtmSMNUiVnZ5YKLP08BUM gjyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:mail-followup-to :mail-copies-to:gmane-reply-to-list:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=xGOYT1bkKFaHPtZHSi0RYgIVJRqCq5QkBiAFfluxq5g=; b=W9g1hLYjIPoJKAJUSzsN7eo22qW4n/7TO2imrIFnnNg1ofiJzhQU0OLPLDTzW2jndf z5frr6uOhbfJLOVH/9DgQz9NIoPMZd21iJZb0RVSOvle0CIcVo8tO2vIrp6znGWbIqn3 C1IWLlGVjXxR7z9SN8gZhHae2UyvJSjWKRKmtEoJtLlYE2XfrhIM6zbd6rVR4mCmlwPk x5cZR73kYZH4bYKYs9cMMgOujfnmb0zZF8Gl9IPPhjobD4VkOWqJw5+y5n0zKAxqbjRn EQSSdGPHc6CjXX9fibRrSSBTYObyLDwX72WIbbr37pvS1nkWOsFvrXtrjGadYxoDiZXL tLAA== X-Gm-Message-State: APjAAAVxTPQ24sUp4/44Q4a6hXlwj90fCMpXM0Wnd3RUZ1XL9EyPG7Fn 9LHFFhdhbemCazWXRcg7tmme9WcK X-Google-Smtp-Source: APXvYqyo3muDNKLvcoDO8wS2GBZG++hsBzHcj5F0mP83tikO3chiaAC645591DVOiB6Oia7Dka0h7w== X-Received: by 2002:a5d:5544:: with SMTP id g4mr2884712wrw.269.1551283247150; Wed, 27 Feb 2019 08:00:47 -0800 (PST) Original-Received: from rpluim-mac ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id n130sm3608079wma.48.2019.02.27.08.00.45 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 27 Feb 2019 08:00:46 -0800 (PST) Mail-Followup-To: emacs-devel@gnu.org Mail-Copies-To: never Gmane-Reply-To-List: yes In-Reply-To: (Stefan Monnier's message of "Wed, 27 Feb 2019 10:53:59 -0500") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::42b X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:233652 Archived-At: Stefan Monnier writes: >> (file-exists-p "") >> =3D=3D> t > > Elisp doesn't handle file names quite like POSIX, indeed. > > I don't think we can change the above behavior without introducing other > odd behaviors. E.g. currently (file-name-nondirectory "/a/b/") return "", > which is consistent with the above behavior. ? file-name-nodirectory doesn=CA=BCt use expand-file-name anywhere, and we can fix file-exists-p without changing expand-file-name, so I don=CA=BCt follow you here. Robert