From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: lg.zevlg@gmail.com Newsgroups: gmane.emacs.devel Subject: Re: file-exists-p on empty string Date: Wed, 27 Feb 2019 23:07:06 +0300 Message-ID: <6C8B93F1-4549-4223-AD3D-58A8CF28A97C@gmail.com> Mime-Version: 1.0 (1.0) Content-Type: multipart/alternative; boundary=Apple-Mail-9A8887A3-38A3-42E9-B0B4-142CA1CB144B Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="163450"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel@gnu.org To: monnier@iro.umontreal.ca Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 27 21:07:24 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 1gz5UA-000gP4-8M for ged-emacs-devel@m.gmane.org; Wed, 27 Feb 2019 21:07:22 +0100 Original-Received: from localhost ([127.0.0.1]:50010 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gz5U9-0003H3-6w for ged-emacs-devel@m.gmane.org; Wed, 27 Feb 2019 15:07:21 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:60431) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gz5Tz-0003Gi-Dq for emacs-devel@gnu.org; Wed, 27 Feb 2019 15:07:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gz5Ty-0006vE-L4 for emacs-devel@gnu.org; Wed, 27 Feb 2019 15:07:11 -0500 Original-Received: from mail-lj1-x22a.google.com ([2a00:1450:4864:20::22a]:40784) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gz5Ty-0006tv-9y for emacs-devel@gnu.org; Wed, 27 Feb 2019 15:07:10 -0500 Original-Received: by mail-lj1-x22a.google.com with SMTP id w6so15013438ljd.7 for ; Wed, 27 Feb 2019 12:07:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=content-transfer-encoding:from:mime-version:date:subject:message-id :cc:to; bh=VFjw+GFc3ww8RXJWi6vIjD7vCT7ULnvWyO+CYmk0Y/U=; b=VmVLc3lvOPOSTIytYeaiUkiLDgsGsCz2LdxdE9ciOF0r8SVV1rHggRVOEDN+7hqLTy FzRhGuOYQedGFcpjj2pAhDdihRBuYqQcwMZPpReh/I1G+4KUwcZX9HSK2kvgGMM5yqxf bcr+F9+Gf8iyVDVpMjOp6ookJxLK2IoKe18O6sKXNGKyYmbgw9OOS4AXyPSiJ4ef0Z5U gXIr9b/BopjvU0WEtLxjM3J25nIKmilX3Ndlo9HsBij1TgWP+rljcts/YgPETE6+emuR BOhCb9ZIyJbl4zXwmaNgzp7H32d9zvoSRIjFOy0T32GtV8W8Xki02SV7nuUQqGzKv4Jr 1j+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version:date :subject:message-id:cc:to; bh=VFjw+GFc3ww8RXJWi6vIjD7vCT7ULnvWyO+CYmk0Y/U=; b=UsU1x0qlXtmrh8SbQvVRHlhzTLP93zNLdcUebYjcXEF/ocJQIWh0up5EmF9LDfMrmh vaOX52aISQ/cdMJkUb+k6NwQNJiJFb9+pp8//LIKoKoQ9tsws9D7zrlHHfZMADUC7Qgm lg7sE+vX0HHVy79eb/QErk3/ptudeFbbzbnU3n7G/oFiftg9wxLUtPReMQw3xSVXkpL6 NlQffxZplm6ZEHjhLwEURq+O1N4jiEbFiX9lxo6QlwkTrnXC5A9pbbQCuRORFDqFPX3b sV9BPx+/5btQdTB2e/y5ak4CoNz4tIJeMWKrOvojR0xOCMAoVwzIMVAIDLMMHsy9I9lo SRrg== X-Gm-Message-State: AHQUAuaqtTheqm80zx7LNcsK5h3eBBzy2WaazQaxz6MhapHYWTjjzQRh XAJ1OkggUkdT4cqjP4NG0ok= X-Google-Smtp-Source: AHgI3Ia1ymX0ilRG9HVkSRTWxggN9BcDxBlTakdH81OiJ58Ltf0dXVjOd1E7AmDkZgTtzpTByV8FaA== X-Received: by 2002:a2e:9f0b:: with SMTP id u11mr2573107ljk.64.1551298028687; Wed, 27 Feb 2019 12:07:08 -0800 (PST) Original-Received: from [100.67.164.232] ([31.173.81.184]) by smtp.gmail.com with ESMTPSA id o7sm2383957lff.73.2019.02.27.12.07.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Feb 2019 12:07:07 -0800 (PST) X-Mailer: iPad Mail (16A404) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::22a 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:233675 Archived-At: --Apple-Mail-9A8887A3-38A3-42E9-B0B4-142CA1CB144B Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable > So the (not (string-empty-p fn)) test just reflects the tool's semantics a= nd is not an artifact of some suboptimal behavior of file-exists-p. I gree, but there is not a line about empty strings in doc-string. It is gr= eat that this is mentioned in documentation, but anyway behaviour was quite u= nexpected -- lg= --Apple-Mail-9A8887A3-38A3-42E9-B0B4-142CA1CB144B Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit
> So the (not (string-empty-p fn)) test just reflects the tool's semantics
and is not an artifact of some suboptimal behavior of file-exists-p.
I gree, but there is not a line about empty strings in doc-string.  It is great that this is mentioned in documentation, but anyway behaviour was quite unexpected

--
lg
--Apple-Mail-9A8887A3-38A3-42E9-B0B4-142CA1CB144B--