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 22:04:15 +0300 Message-ID: References: <83fts9kyay.fsf@gnu.org> <83va15jchs.fsf@gnu.org> Mime-Version: 1.0 (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="160602"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 27 20:04:40 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 1gz4VT-000ffd-OW for ged-emacs-devel@m.gmane.org; Wed, 27 Feb 2019 20:04:39 +0100 Original-Received: from localhost ([127.0.0.1]:49341 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gz4VS-0002bM-I4 for ged-emacs-devel@m.gmane.org; Wed, 27 Feb 2019 14:04:38 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:48227) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gz4VE-0002ZV-P9 for emacs-devel@gnu.org; Wed, 27 Feb 2019 14:04:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gz4VD-0001aN-Tx for emacs-devel@gnu.org; Wed, 27 Feb 2019 14:04:24 -0500 Original-Received: from mail-lf1-x12a.google.com ([2a00:1450:4864:20::12a]:35463) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gz4V9-0001Ve-Kp; Wed, 27 Feb 2019 14:04:19 -0500 Original-Received: by mail-lf1-x12a.google.com with SMTP id m73so7700254lfa.2; Wed, 27 Feb 2019 11:04:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=7p233B/IM1nPrwxjC5rl9WcsxtU7qu3HjX9NStECfKg=; b=bVQjxW9PFIS9gOKNEG6JXOitDgWllgcsfVGHWQNQiJ68+ESnMlhJ98jriWY0tElb7t /VhOyPU+33ITkzBwQcU1J5pz3I4EOuXjxvR51q8Cy+LO4cgSyEdNn3ODHnKJhqmoA9LO XlRQJZSSe+Ij/Ov2t+lxiRePurqAp71qAOqKfCXdhTlfEY0wxJEtkBycfJWqyIley8qT J3vv9BLHvNpesmVvur3HFWjuCRccUMxdUUPlcN4iJ/YtBMIhoMw5PUKRMQ10vIAMEb0p mORlbcLQEmnC+D0X2OYYCxrI6j8ZyCwpe2xfQhMH+kjhZVPRf1rb+3yqvySK7SJ9/FI7 Inqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=7p233B/IM1nPrwxjC5rl9WcsxtU7qu3HjX9NStECfKg=; b=c35QldLdvQdAqCf29+sGL4MccLWUxOdygC8HvBbFihra0yTZnXjEL5gVL9GP0O8hS7 CGSsqnU7ivcEwOSEqJkdcw3lVfM1W0z64HpslPXVPHP9HiMkLYDplw3SEVam57dL9C3l ybbW74t9nh872CF8Gi5FuhnJSN/C3sOP3p0wie5TQwEhqy8jrGN/on3ezcNTO+PbNYuQ DoUQUbjUgm1fznyLPa78yJ8cC4FLAtWfShOkzbnTiJzuqUN0sNB+MtWOxjmLU3LShy7y eqGTfQU6wJbXqvPZyVSvASgq3G+Msi+PCv92gjcPz1s7ZUfdRqZPqvTjmyhs9iHfqWeP oO3Q== X-Gm-Message-State: AHQUAub04t0ksCUxOgtfM/Av/BKh4KvOhELTN0at8VK0DvdCFN+ZG8ox MHbZo/OVB6TuaWsypKRQL2UPiYNS X-Google-Smtp-Source: AHgI3IZw0XqMZNlBhTG+sUqmgfOKa3FRAaarWgw+4IS2exhVRxy/FQ7WfvZ8WxMp6VOKsJGMCsAukA== X-Received: by 2002:a19:9a47:: with SMTP id c68mr1817348lfe.139.1551294257879; Wed, 27 Feb 2019 11:04:17 -0800 (PST) Original-Received: from [100.67.164.232] ([31.173.81.184]) by smtp.gmail.com with ESMTPSA id n11sm3507221ljg.55.2019.02.27.11.04.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Feb 2019 11:04:16 -0800 (PST) X-Mailer: iPad Mail (16A404) In-Reply-To: <83va15jchs.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::12a 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:233670 Archived-At: 27 =D1=84=D0=B5=D0=B2=D1=80. 2019 =D0=B3., =D0=B2 21:46, Eli Zaretskii =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB(=D0=B0): >> From: lg.zevlg@gmail.com >> Date: Wed, 27 Feb 2019 21:42:46 +0300 >> Cc: emacs-devel@gnu.org >>=20 >> I use `(and (not (string-empty-p fn)) (file-exists-p fn))` at the moment,= but its kind of ugly > Why do you need to reject empty strings? Filenames are generated externally, and the tool uses empty string notion fo= r no-file semantic =E2=80=94 lg=