GNU bug report logs - #76033
file-equal-p should accept nil arguments

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Ship Mints <shipmints@HIDDEN>; Keywords: wontfix; Done: Michael Albinus <michael.albinus@HIDDEN>; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Added tag(s) wontfix. Request was from Michael Albinus <michael.albinus@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 76033-done <at> debbugs.gnu.org:


Received: (at 76033-done) by debbugs.gnu.org; 4 Feb 2025 10:47:53 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 04 05:47:53 2025
Received: from localhost ([127.0.0.1]:42823 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tfGTA-0005KP-Lr
	for submit <at> debbugs.gnu.org; Tue, 04 Feb 2025 05:47:52 -0500
Received: from mout.gmx.net ([212.227.17.20]:49225)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <michael.albinus@HIDDEN>)
 id 1tfGT7-0005Ju-4O
 for 76033-done <at> debbugs.gnu.org; Tue, 04 Feb 2025 05:47:49 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de;
 s=s31663417; t=1738666063; x=1739270863; i=michael.albinus@HIDDEN;
 bh=DWqeVflaWZv0E5UzI01iAXLcCpdoP2xDT12ZxP/wd48=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date:
 Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding:
 content-type:date:from:message-id:mime-version:reply-to:subject:
 to;
 b=lDytliI0D6US6aFw33EXgNlmMpFRy093ikQVOavkz53dh2rVPj/G8KtnWe5wXmnE
 mPqy4QAVIRrnTgyqYRNtwMuJjCT8mb55l/buN6llsSz8/X190NSJNu4ImSbsavBLx
 j355q8qsMA2FsqbSf4o0mE9vEXxO8RIXkvyyTIIuJv8V1sJzqove+tzAcmyzDpGIx
 U4rdnk8HcNebX0V0/B8KOFe8MWTcWyXPWBujYbcM25xP8aTe2LTCn6yWlTlRc8tgQ
 4Q0G90+URfFhwqYObQ15WTvA1nJtHVJS0pDbE0cOxA+5yaHTdJ225lEXY6DBGd8Jo
 bbxYDKXagJUplKwqkQ==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from gandalf.gmx.de ([185.89.38.155]) by mail.gmx.net (mrgmx104
 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MZCfJ-1ts4Mx436H-00N9NW; Tue, 04
 Feb 2025 11:47:43 +0100
From: Michael Albinus <michael.albinus@HIDDEN>
To: Ship Mints <shipmints@HIDDEN>
Subject: Re: bug#76033: file-equal-p should accept nil arguments
In-Reply-To: <CAN+1HbpZad-T-OCp98UFk3Q+Nf3N-GHXeX0F_sonJXB6kdKKew@HIDDEN>
 (Ship Mints's message of "Tue, 4 Feb 2025 05:32:01 -0500")
References: <CAN+1HbrD0aT+C71-ZT1636beJ0hYDr2-gFPay56u1wENUZyhJQ@HIDDEN>
 <87r04eyw29.fsf@HIDDEN>
 <CAN+1HbpZad-T-OCp98UFk3Q+Nf3N-GHXeX0F_sonJXB6kdKKew@HIDDEN>
Date: Tue, 04 Feb 2025 11:47:42 +0100
Message-ID: <87ldumx9yp.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:7GhKbtf6CZzcVAKtWm7g3WTsEZ5b8PsNx3qw9tFXDKHqUrWcn1P
 4zJ9ZkQYpCTk+DdgmHXLdTUMQqh6i96+PJgXhZFehaU2RGKHVkbXb9vGXfG7JedwrCwip8/
 FbUFdo9aWP+TLTJQOx3RjTP+FMqgu1I3fnTqqyhgpcR5OSPqzvhrXi3HF7YinzDU4SuKp2i
 0PiMLkczn13CMiEdbIGrg==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:7R9Bo5Rh2ME=;FhBnIYQ3HX65Hdt6Tot6Ixsu/1e
 7eOsLaqSHEHZ8oqN+tXcwCed/3xsdI40WHfl49L4BxvIpGxJ9lbnt3NTL0cdd/K2/CrBc0c8Z
 UXcnJEt2EjTTOCTIkZm7tGP/VRtn/9v1Pev7nSNuD1z1qiEteYnaEA8WxQf8HyLLvdrdLNWbJ
 8vLkxMhK+R4i/IVSxB1CUlMV7RtzLkr1MBgp3cxt3Gyg1CiaeMJkhVVCQHwMJpbLDDmOgeS90
 76VoERukMPBdsBDP56RhNVO2bwGpNukXVra1omxM11sZaZA2RIwSuJXAWNOWEpdntVtSXxVQE
 tIBclsGTohNGcGsMn1WynsOvDtJQqtm5lURnlc8hmhvzN0dtorje44gOK/WghDCGubkppcHyd
 vQGowZsZ8DG/vs2UH57415EIj8myi43t58wof9FrJnYXn0bWYSIUjlRI2ZPUsEW1yQxPazhn2
 qSug23C0dJ/2ceHebfd1NTDh4CFhCImV9rz6BKt6uUcGZu3Uhvmn9pX38YTAM5Xs4DgB45uyD
 na5NfMu+/XwUnydf38ZVqtElqssEUpMMVp1nvCZyzt5+ef1rrk2VLg6/S/HuHCprrzw1BJve5
 jZ/PwY7xOGgZqUKVP5+v3rbfKgiXJEisR92YZg41RsEL+IyZU4eWa2Bx6LdgcSECpcqG/Fq5u
 YnLVmKFD/m4wX02kZF7Cc4fttHdRFZvYCEh83RXd6fLUiorr8jvuQiTItB77o1uEfT6LPvuQe
 cU/LxqWHYBYDA3DEHrl0FRfoADw1ULuuWN/+G2sGDGYqTDGdl25lFR8yw/vBId4CUKsQrY2is
 2ReLlpgGhtuuNYrWd4UrBXyjjlw5lafBj/aWweWzzhHs898OqQe5oniuPNLvI5+R6K1aSeQQO
 dI+p+Xukq7HcYBmHKIGw5BhHcAdNe9M2E4G1OO+nl//GMVdpisx+UgCqPxosa/l4Whlekrs6T
 /1jLsVFRxACYt/lPK+X+eYFUBqNcZy2elvxP0We2cOVdJqQ6RwA9zbP3u3klzjtOHBH7gpoHL
 rnSc4daFsSoHyv5X9HwzKdPI4/ux5zQe8acoFfB/KTxEoP8J9361vd1pJ3w3eReqC1fF2DWnP
 wDY6Um8vKpZ4f4/P5vErl6+IxDN01yfamvkkfrHAEL0ZP6MZxUV4xKLbCHGYQ+Pn3iLZ/7qpM
 DkhIk1w+70svrsqyWOjkBZJC6gq9tE75Q8qn5gEq7OqUZ9EheS+sn9oOCEHWBAS0KeDMNdiAZ
 S6jmSN7mp1HMlhEZY95n167P7NpQOGtreu/Inq/aHg64ZZ4FUQ6rjlBolCp6R3xepI9XF6Vyy
 0QLpMptkISa26OB/GUJ8oJld9liKoSOhh5SsPBrb6HMn9c=
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 76033-done
Cc: 76033-done <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Ship Mints <shipmints@HIDDEN> writes:

Hi Ship,

> I am also against writing sloppy code, of course, but if a change like
> this can help avoid error signals for cases as I illustrated, I
> figured it was worth a discussion. Of course, the docstring could be
> changed to say that the arguments need to resolve to files and, if
> not, the return value is unspecified.
>
> I will offer patches related to calling file-equal-p with incorrect
> arguments as I've been doing, like to project.el.
>
> Please close this issue.

Done.

> -Stephane

Best regards, Michael.




Notification sent to Ship Mints <shipmints@HIDDEN>:
bug acknowledged by developer. Full text available.
Reply sent to Michael Albinus <michael.albinus@HIDDEN>:
You have taken responsibility. Full text available.

Message received at 76033 <at> debbugs.gnu.org:


Received: (at 76033) by debbugs.gnu.org; 4 Feb 2025 10:34:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 04 05:34:08 2025
Received: from localhost ([127.0.0.1]:42794 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tfGFr-0004ej-PA
	for submit <at> debbugs.gnu.org; Tue, 04 Feb 2025 05:34:08 -0500
Received: from mail-vs1-xe2a.google.com ([2607:f8b0:4864:20::e2a]:46200)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <shipmints@HIDDEN>)
 id 1tfGFp-0004dx-3J
 for 76033 <at> debbugs.gnu.org; Tue, 04 Feb 2025 05:34:05 -0500
Received: by mail-vs1-xe2a.google.com with SMTP id
 ada2fe7eead31-4affbb7ef2dso4328516137.0
 for <76033 <at> debbugs.gnu.org>; Tue, 04 Feb 2025 02:34:05 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1738665239; x=1739270039; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=GwmGHI77rDsloB756X5H8B0cYQ+2+WBgP68ZiPQCmls=;
 b=mNefPfowCSOLwfUur/Q1QiOWl0vpYdD8Oi4cGrj6db3Zcv2wNSDRk7PlFjGiYO5IO/
 6eSn3IegL3xzr3HB/UWORoLRaAmKI1wSg7LpMn19dLFxx+EoEL65QokgjKtcJyGjInwC
 ItoOXKRCZT5jYeRikZO4YQSM/tV8Nbg45xHZhGgjeZzwiiYGf6U8F/YuE4rJqzJTm4tI
 yYLa3rUsCAt6Q1u52Iu640EFr5IqDpVPTLI93ttUZfOLpzFjRcCj+VmATj/Jk8cUIVD8
 lYx7V2Y/oFFr5ptXD6gnwwtZHwpJnyAcVwAbQUJyFElF0qXIXj1G+RaDSJeEysb+E6kJ
 Hd9Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1738665239; x=1739270039;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=GwmGHI77rDsloB756X5H8B0cYQ+2+WBgP68ZiPQCmls=;
 b=VWaJgTw6tO2ZwyQzDZA8d76sw9N8EE/9cIRtfHV/HTooYIKySmJ0W3UQSjUxqMqciZ
 CIQ9xUYrQKdhauWWa9V82lEoLAfQM5Ejafk8HVLD5VUhtucuHGXBoM0rJX0I5ZxNNC+h
 8VesUnlTTsExIbJtbMM/WvXFAJx5b51maybHGRZOCoEvA4p7oAWIiwgGiU4XLbDf2CVX
 ZCeoaUH0laJeFjeAjzeDhGWeEr9ZQ5WawQvOsamoWTLc07R/KfW4DaC0qOQk025rWOQw
 cbm6nvN+cjHu4RgsdOBIRGWnCQj3DRzIceQg8JTkHy5H2oC9Hwarm0UyyBo1Z3TyHX65
 Lt9w==
X-Gm-Message-State: AOJu0YzZaLPChgF/T8Vm3Bg9fFDa212/2mrt6kM8/wgHx/QrJ2IcIEgw
 lM0O58oCwb0+r5d+ZE+owFzVo3GmFcWdDenSL/KgLuN59UHE4ii3iCc3cdq3HJcJHhI6+nCSb6K
 UHwYT+EXUdWQPJkTaTRuX1CTijCd4BYdj
X-Gm-Gg: ASbGncs4e9lBodVaE2dhCZAjPEmyCOoOOeB8F3QlX2eQp6WY0nYATZust96hsbk47uE
 FK8Hb/PDmeZnFvxlmFg4oF1/G9awgPd+etNh6lGS6Lx3fijfXcdTb1fQoQfXOeksGyFObswKy
X-Google-Smtp-Source: AGHT+IFKD/W79wxlivrY4kZh0BQMBzp4BpNucVoawfvG1v5N/CGbrF4fKXt+BI766vxFONfmpR+b0wz5xcwzCBYA/mo=
X-Received: by 2002:a05:6102:3f04:b0:4b6:15fa:565e with SMTP id
 ada2fe7eead31-4b9a4f86ba0mr20947048137.11.1738665239346; Tue, 04 Feb 2025
 02:33:59 -0800 (PST)
MIME-Version: 1.0
References: <CAN+1HbrD0aT+C71-ZT1636beJ0hYDr2-gFPay56u1wENUZyhJQ@HIDDEN>
 <87r04eyw29.fsf@HIDDEN>
In-Reply-To: <87r04eyw29.fsf@HIDDEN>
From: Ship Mints <shipmints@HIDDEN>
Date: Tue, 4 Feb 2025 05:32:01 -0500
X-Gm-Features: AWEUYZlGg4r4lEMEOsRCtxTjBtooHmEvucUyMiQY7tURaK1r7EHa9m9sjkFMP9Q
Message-ID: <CAN+1HbpZad-T-OCp98UFk3Q+Nf3N-GHXeX0F_sonJXB6kdKKew@HIDDEN>
Subject: Re: bug#76033: file-equal-p should accept nil arguments
To: Michael Albinus <michael.albinus@HIDDEN>
Content-Type: multipart/alternative; boundary="000000000000f985c8062d4e8b2b"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 76033
Cc: 76033 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--000000000000f985c8062d4e8b2b
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

I am also against writing sloppy code, of course, but if a change like this
can help avoid error signals for cases as I illustrated, I figured it was
worth a discussion. Of course, the docstring could be changed to say that
the arguments need to resolve to files and, if not, the return value is
unspecified.

I will offer patches related to calling file-equal-p with incorrect
arguments as I've been doing, like to project.el.

Please close this issue.

-Stephane

On Tue, Feb 4, 2025 at 3:05=E2=80=AFAM Michael Albinus <michael.albinus@gmx=
.de>
wrote:

> Ship Mints <shipmints@HIDDEN> writes:
>
> Hi,
>
> > I think file-equal-p should accept nil arguments and consider the
> > result unspecified as in its docstring: "If FILE1 or FILE2 does not
> > exist, the return value is unspecified."
>
> This is against the docstring. file-equal-p has two arguments, "files
> FILE1 and FILE2". nil is not a file.
>
> > Currently, file-equal-p signals an error when nil file names are
> > specified.
>
> As specified. We should not support to write too sloppy code. Getting an
> error is often an indication, that the code using file-equal-p is not in
> its best shape.
>
> > -Stephane
>
> Best regards.
>

--000000000000f985c8062d4e8b2b
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-family:monospac=
e">I am also against writing sloppy code, of course, but if a change like t=
his can help avoid error signals for cases as I illustrated, I figured it w=
as worth a discussion. Of course, the docstring could be changed to say tha=
t the arguments need to resolve to files and, if not, the return value is u=
nspecified.</div><div class=3D"gmail_default" style=3D"font-family:monospac=
e"><br></div><div class=3D"gmail_default" style=3D"font-family:monospace"><=
div class=3D"gmail_default">I will offer patches related to calling file-eq=
ual-p with incorrect arguments as I&#39;ve been doing, like to project.el.<=
/div><div class=3D"gmail_default"><br></div><div class=3D"gmail_default">Pl=
ease close this issue.</div><div class=3D"gmail_default"><br></div><div cla=
ss=3D"gmail_default">-Stephane</div></div></div><br><div class=3D"gmail_quo=
te gmail_quote_container"><div dir=3D"ltr" class=3D"gmail_attr">On Tue, Feb=
 4, 2025 at 3:05=E2=80=AFAM Michael Albinus &lt;<a href=3D"mailto:michael.a=
lbinus@HIDDEN">michael.albinus@HIDDEN</a>&gt; wrote:<br></div><blockquote c=
lass=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px soli=
d rgb(204,204,204);padding-left:1ex">Ship Mints &lt;<a href=3D"mailto:shipm=
ints@HIDDEN" target=3D"_blank">shipmints@HIDDEN</a>&gt; writes:<br>
<br>
Hi,<br>
<br>
&gt; I think file-equal-p should accept nil arguments and consider the<br>
&gt; result unspecified as in its docstring: &quot;If FILE1 or FILE2 does n=
ot<br>
&gt; exist, the return value is unspecified.&quot;<br>
<br>
This is against the docstring. file-equal-p has two arguments, &quot;files<=
br>
FILE1 and FILE2&quot;. nil is not a file.<br>
<br>
&gt; Currently, file-equal-p signals an error when nil file names are<br>
&gt; specified.<br>
<br>
As specified. We should not support to write too sloppy code. Getting an<br=
>
error is often an indication, that the code using file-equal-p is not in<br=
>
its best shape.<br>
<br>
&gt; -Stephane<br>
<br>
Best regards.<br>
</blockquote></div>

--000000000000f985c8062d4e8b2b--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#76033; Package emacs. Full text available.

Message received at 76033 <at> debbugs.gnu.org:


Received: (at 76033) by debbugs.gnu.org; 4 Feb 2025 08:05:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 04 03:05:14 2025
Received: from localhost ([127.0.0.1]:42477 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tfDvl-0005vp-Tq
	for submit <at> debbugs.gnu.org; Tue, 04 Feb 2025 03:05:14 -0500
Received: from mout.gmx.net ([212.227.15.15]:60627)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <michael.albinus@HIDDEN>)
 id 1tfDvj-0005sO-AB
 for 76033 <at> debbugs.gnu.org; Tue, 04 Feb 2025 03:05:11 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de;
 s=s31663417; t=1738656304; x=1739261104; i=michael.albinus@HIDDEN;
 bh=eepmnvU5phWQxtMxoCU39ZftBDdQhS+oNY9C10XaREA=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date:
 Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding:
 content-type:date:from:message-id:mime-version:reply-to:subject:
 to;
 b=dj5eQdcPevSljFNyO5SbOxJUDK2eDaXDy+S4TgtnB4a6Fom54Rgh4hMyo3V/OF5n
 tz4fIRNFHPU+qxmAoC2LvN6N6+amP8bd1V6tVfhiME61mROsqGLyr7AwpDpQJFGus
 3TgPgxGUbWp2M8ggd2smFIMzivdDqiYapYFiBMQJtom3wQgOWnUx8LrTSgXAYWpJn
 Dlqmq6ORMb1svTu73PbF0mhkjrD3I3MmLyC26mRwOCLkHMxpobmoywKnQdiaS5R/Q
 aHpvztbAop33rLHjFOkCduZxyzNHhK4xJqQeMkXBTuew+fBQ7v5WgPMVjWtS8wxBK
 VeOtkZL4MohL2nX9iw==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from gandalf.gmx.de ([185.89.38.155]) by mail.gmx.net (mrgmx004
 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MvsIv-1tOnVX1UHv-010tQL; Tue, 04
 Feb 2025 09:05:04 +0100
From: Michael Albinus <michael.albinus@HIDDEN>
To: Ship Mints <shipmints@HIDDEN>
Subject: Re: bug#76033: file-equal-p should accept nil arguments
In-Reply-To: <CAN+1HbrD0aT+C71-ZT1636beJ0hYDr2-gFPay56u1wENUZyhJQ@HIDDEN>
 (Ship Mints's message of "Mon, 3 Feb 2025 13:12:08 -0500")
References: <CAN+1HbrD0aT+C71-ZT1636beJ0hYDr2-gFPay56u1wENUZyhJQ@HIDDEN>
Date: Tue, 04 Feb 2025 09:05:02 +0100
Message-ID: <87r04eyw29.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:IeqmOCRMb0pv/0MymyTD55Iomb/MrXMJAvG0gYGVmpx4FfnoCYx
 IX1lskLNnjzbZrrsPiX1GpEYiYIoUR10HSFkdVNjmkqWKNmn6C+cjjFA0bJiHRlHv6lOA30
 W99ihEFhXabqNVdlBtUgihTgtwXxKJm7DhG10/P8HfQZWskMcCZ39cryXJzCJ8v8j+Q2IPK
 3C8yzaLQQDmowtgPr6Olg==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:t3C60+coteY=;PwBfwXP/AtDGXdZONui9DY5LAZ8
 wJxNxwQSMm3+iwLi0RziSqyE2x9pQz2cYcOxeQgruszID9Rp1/Dtp6kKk9CnvTu/3O+NIXqF3
 7bhzUZ4EaKZhftLukca9dQWk7mcpRLKRL67h/c6hEonJ3ZOqGMogvtQzAMn7taIfK4ocMSY1j
 DBR5qJ+Lk9GVtXRgl7wBUH6jPKPPOSfgScMO9A0VfRue+tKSqzBW5pNj5ISUUPqtmlGRyPloI
 PaGBT+NfMuK9r+sXPdeTEnZftMu9SUS6SYCxT5EWIa3maCwZZ55SPzFtxqwJ9Z8TEiIAGlTs3
 E/lv7tYtIR8NMdK3ukiUeluLHowoFqTF+waQ8X9adozKoqoGPGgH4ZaYiXR3j1tWg9pGalGQ7
 1foUm/4qm6PATWO3dLmQBQpGzfb6fKi4pbpEg1JY4kIxjIt/vKcQ0Unxc9AWQCVsS6WAWZCgt
 xmv2LBherBRpTgRrLAUrnOF84XFkfwjeY4lfFFykKWdJCHUvTlZo+b2gKA9FZCPJ4UR5ZNRb0
 9+W9BeB6uXoSdBPSdVfZzLHImyO1Gz3kQsxTqWGVS9N19dgWOwFdifj8tT63r73f36+dwAbcC
 FJVNXnI6m79N/rDQV0J5wa0/+UzRT9/topqt1ATwt6mWNsx2AY+KN+lHUnifC3PQvqI9FQuXY
 5Ec60/PNp4Q99BeYQhg6wWLjIEGF8+SDt93MopPu8zmBru+kcK28GnTJ7AgectuTpqhUwJ6P0
 FXKVBbZT6bLEMIFgirj6bMTNIxjfeRXsG4rEJzB3KEQs6sRPp7i3QvpxDo0Y3+Q+J9iWpG01x
 IWsMW5QcNl5+jzvLgLIGwo3CC5+jIJcaAHshmcSDWIJWxuTxHT0sAo5MArQ7W8QLv9Uw0Xq0S
 W2kLpaw+NQ5PO03bBvqajQUcPUQPBEkiw+WC+LSOhJNlL9eo/fuxl3cCy0dDAbYzsYe++R05U
 MqewawrU3tq/8kuN1wpLS9fdIqRhELnpaAhLmY6FCKpR0WIARt4SMne/KeDKgg7T4640jSkZ1
 NoElTmncZhlrbeR1DanqwU0ODxn4qcRKiCSE1HfDAwtWfeQukyWtppwBnxtA/1M7mgFZ/349g
 IQQ6i10bQxqITSCax5cgKfrI8d5f6SBZ7acQTUH6FxGUMXAaSLTpK4+ogi6iZcqeHLnBafA7W
 pbBZEd/O00pPixdh+3HiavbY/D98kc8RIDYqm4Pb8RC5BMr4hfKWKgzr6WsFXEIEu6nZ/BHdL
 +sw3Xfd+dlVe5+uVw4Sj37j1Ja6eRWXyoI7lEj6OfR/IZ4WRB6vJ/5A6ZrlhwXPF0Ulpm3HO0
 vsZRedg82jWEj+p57brR+8azv/8Bf8qtjtj2OAJI9DEuRU=
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 76033
Cc: 76033 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Ship Mints <shipmints@HIDDEN> writes:

Hi,

> I think file-equal-p should accept nil arguments and consider the
> result unspecified as in its docstring: "If FILE1 or FILE2 does not
> exist, the return value is unspecified."

This is against the docstring. file-equal-p has two arguments, "files
FILE1 and FILE2". nil is not a file.

> Currently, file-equal-p signals an error when nil file names are
> specified.

As specified. We should not support to write too sloppy code. Getting an
error is often an indication, that the code using file-equal-p is not in
its best shape.

> -Stephane

Best regards.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#76033; Package emacs. Full text available.

Message received at 76033 <at> debbugs.gnu.org:


Received: (at 76033) by debbugs.gnu.org; 3 Feb 2025 20:03:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 03 15:03:35 2025
Received: from localhost ([127.0.0.1]:41390 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tf2fP-0005Vz-1m
	for submit <at> debbugs.gnu.org; Mon, 03 Feb 2025 15:03:35 -0500
Received: from mail-qk1-x72d.google.com ([2607:f8b0:4864:20::72d]:46377)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <shipmints@HIDDEN>)
 id 1tf2fM-0005Vj-Ob
 for 76033 <at> debbugs.gnu.org; Mon, 03 Feb 2025 15:03:33 -0500
Received: by mail-qk1-x72d.google.com with SMTP id
 af79cd13be357-7b6e9586b82so433311885a.1
 for <76033 <at> debbugs.gnu.org>; Mon, 03 Feb 2025 12:03:32 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1738613007; x=1739217807; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=6PCBEPXDc2fI9m9hcIDUytMF87BxRrN9WBhebmtpkxc=;
 b=QsByZW2abLPcEAcT2ruMnR4cBMJRi4RKvdQuNI5E9Vxzi7BbNN2fvkj8l04J64J/UQ
 96taYot+7d2FLtosQuEvBY5cBJvJyQ5Dp3lhJ4TQIP2eRyr1Mvpudizp2lD7pOXc8cHW
 PXZLhEgahNcpqHsB3JgaT6jn/S90VhpNKUs0CIU9va39cJGYgKIIFynUe7pcQAw1fAiW
 VZyLp1AoimXF/7dyTidIsdsy4e8MP1W8aOpbEoNqkDwWLFSvbeulsz0pK343EPzhimL1
 Alu1SD/1JGaIqTMokM4g2y6wtl0Dt2w59NP8mqnHzw1Ak7yHCZ3K626piXfg6OfTUOWx
 gLkA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1738613007; x=1739217807;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=6PCBEPXDc2fI9m9hcIDUytMF87BxRrN9WBhebmtpkxc=;
 b=gT10K6+8mGHmFCS8QtbM+9+mbe19GrdWLacQ+8r2t2h2ML42am56TyUWc+Tep6Wblu
 h4rEGcF+l5/dk7Tj0WxhDos0QJUuyXTxHV2KLoC5uQx79P6ZKXFkBDa1VXUX7Kcrk2j0
 Y3pCYOqA9mQmrRG4LtNCzr8Atk77inDJvIRunWMrfiojGtnYyP2li+5JL39OJwn/cUHy
 nJ+QeF9nLvaW9XDEgeLGTQFLgThoArd05NMPad6KGfmCiGXUTqTZNAHRxzCbQrscj/xa
 C/9ojvPrkl9068VdkgTqtGt3CTuJlZJIC5/7uqNe5DiFP8O6s/A43HttiRO8Y5fWfYCJ
 kFHA==
X-Gm-Message-State: AOJu0YyAaxzWyugH2C2CBk7CefhOq2eagnGYMz5zGqEJasldVLFiIoaF
 xjxk7o1aHq0jk0JvGzcZmxPtW7kB6GhqvorL7XSQC386Le4uZEQyADnNPDfJuyPPfu//eJETt67
 2kFX4YvU08bazoeJFixMrMkMXc32bOA==
X-Gm-Gg: ASbGncsXZgnYEWAveqEk1fSke1gvfw4Xv//rgV0Y4+H2IUABTnSEAsPTOWSu8fLbBOJ
 via4lByjC5TVGEPZ2mOs6BamCG8aRuW6ZV6QTjBnNFypCQHvizCV8wSQwEUh7AJQNyJ850naK
X-Google-Smtp-Source: AGHT+IE5QRWRMdlVug6v92j6ywUvXtdKiHtjMrhBGh2qvbOZZV3jWgxgBY/p+UEvHOz9wnKVjWCEViZuJHzBcnlhclw=
X-Received: by 2002:a05:620a:3190:b0:7b6:f557:a840 with SMTP id
 af79cd13be357-7bffcd427f0mr2761204485a.26.1738613002161; Mon, 03 Feb 2025
 12:03:22 -0800 (PST)
MIME-Version: 1.0
References: <CAN+1HbrD0aT+C71-ZT1636beJ0hYDr2-gFPay56u1wENUZyhJQ@HIDDEN>
 <86h65abxym.fsf@HIDDEN>
In-Reply-To: <86h65abxym.fsf@HIDDEN>
From: Ship Mints <shipmints@HIDDEN>
Date: Mon, 3 Feb 2025 15:01:24 -0500
X-Gm-Features: AWEUYZmeQk3jxV4rLmEN4vqFBIjd9-ZwHuIY6Yi6BL4JluIzKHeoG9AYSUZO-9I
Message-ID: <CAN+1HbqPgdQ1ZrJ7gDkVed3aUZYEWG3TFu70fvX1PCx_UCcnhA@HIDDEN>
Subject: Re: bug#76033: file-equal-p should accept nil arguments
To: Eli Zaretskii <eliz@HIDDEN>
Content-Type: multipart/alternative; boundary="000000000000655895062d4262ec"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 76033
Cc: 76033 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--000000000000655895062d4262ec
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

If the file can't be opened based on the arguments, then it will fail as it
should. I'd simply add a stringp test and the result is unspecified, per
the docstring, if the arguments aren't strings.

On Mon, Feb 3, 2025 at 3:00=E2=80=AFPM Eli Zaretskii <eliz@HIDDEN> wrote:

> > From: Ship Mints <shipmints@HIDDEN>
> > Date: Mon, 3 Feb 2025 13:12:08 -0500
> >
> > I think file-equal-p should accept nil arguments and consider the resul=
t
> unspecified as in its docstring: "If
> > FILE1 or FILE2 does not exist, the return value is unspecified."
> >
> > Currently, file-equal-p signals an error when nil file names are
> specified.
>
> Yes, because nil is not a valid file name.  So it neither exists nor
> does not exist.  It simply doesn't name a file.
>
> If we accept nil, then why not t or any other symbol or a number?
>

--000000000000655895062d4262ec
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-family:monospac=
e">If the file can&#39;t be opened based on the arguments, then it will fai=
l as it should. I&#39;d simply add a stringp test and the result is unspeci=
fied, per the docstring, if the arguments aren&#39;t strings.</div></div><b=
r><div class=3D"gmail_quote gmail_quote_container"><div dir=3D"ltr" class=
=3D"gmail_attr">On Mon, Feb 3, 2025 at 3:00=E2=80=AFPM Eli Zaretskii &lt;<a=
 href=3D"mailto:eliz@HIDDEN">eliz@HIDDEN</a>&gt; wrote:<br></div><blockqu=
ote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px=
 solid rgb(204,204,204);padding-left:1ex">&gt; From: Ship Mints &lt;<a href=
=3D"mailto:shipmints@HIDDEN" target=3D"_blank">shipmints@HIDDEN</a>&g=
t;<br>
&gt; Date: Mon, 3 Feb 2025 13:12:08 -0500<br>
&gt; <br>
&gt; I think file-equal-p should accept nil arguments and consider the resu=
lt unspecified as in its docstring: &quot;If<br>
&gt; FILE1 or FILE2 does not exist, the return value is unspecified.&quot;<=
br>
&gt; <br>
&gt; Currently, file-equal-p signals an error when nil file names are speci=
fied.<br>
<br>
Yes, because nil is not a valid file name.=C2=A0 So it neither exists nor<b=
r>
does not exist.=C2=A0 It simply doesn&#39;t name a file.<br>
<br>
If we accept nil, then why not t or any other symbol or a number?<br>
</blockquote></div>

--000000000000655895062d4262ec--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#76033; Package emacs. Full text available.

Message received at 76033 <at> debbugs.gnu.org:


Received: (at 76033) by debbugs.gnu.org; 3 Feb 2025 20:00:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 03 15:00:28 2025
Received: from localhost ([127.0.0.1]:41378 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tf2cN-0005QG-Px
	for submit <at> debbugs.gnu.org; Mon, 03 Feb 2025 15:00:28 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:49068)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tf2cL-0005Q2-SF
 for 76033 <at> debbugs.gnu.org; Mon, 03 Feb 2025 15:00:26 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1tf2cF-0003cV-W3; Mon, 03 Feb 2025 15:00:20 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=hIUuOHyjA3BEOAP86xFz4pL6IQlbfYgUi3QuO89ZvrI=; b=kETOGux2S3i2
 0LfIww0TslX62oORbYP4KSwzdrpMAX+tmHNZhoupFO59XZg2v/80PYkzViWguaPpx7g6srDWtnIHz
 6poj5xZCZOLgimcTjaBQEBadFVayYKH3WOQ6C4jcIdTuJJPIx68KZ7/yGNhO+lmDm4MOC6NwyqweZ
 yZu2dbpLSPn9i126JgoqWYcirRnMOoxmnepQXHHkKkESJQxG/uMbUYF1M7nx8LbM2u9ThalfXEen4
 KI4ljJLdaocleBxm5Xxgd0B7xNgyZq/73znB0puqBslo2YudQ29H2CZo4LAYSAduQQIRe83rNnvV0
 Pv2O7VVCXmBeG6b6No7vLg==;
Date: Mon, 03 Feb 2025 22:00:17 +0200
Message-Id: <86h65abxym.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Ship Mints <shipmints@HIDDEN>
In-Reply-To: <CAN+1HbrD0aT+C71-ZT1636beJ0hYDr2-gFPay56u1wENUZyhJQ@HIDDEN>
 (message from Ship Mints on Mon, 3 Feb 2025 13:12:08 -0500)
Subject: Re: bug#76033: file-equal-p should accept nil arguments
References: <CAN+1HbrD0aT+C71-ZT1636beJ0hYDr2-gFPay56u1wENUZyhJQ@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 76033
Cc: 76033 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Ship Mints <shipmints@HIDDEN>
> Date: Mon, 3 Feb 2025 13:12:08 -0500
> 
> I think file-equal-p should accept nil arguments and consider the result unspecified as in its docstring: "If
> FILE1 or FILE2 does not exist, the return value is unspecified."
> 
> Currently, file-equal-p signals an error when nil file names are specified.

Yes, because nil is not a valid file name.  So it neither exists nor
does not exist.  It simply doesn't name a file.

If we accept nil, then why not t or any other symbol or a number?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#76033; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 3 Feb 2025 18:14:18 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 03 13:14:18 2025
Received: from localhost ([127.0.0.1]:41138 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tf0xd-0005fK-T3
	for submit <at> debbugs.gnu.org; Mon, 03 Feb 2025 13:14:18 -0500
Received: from lists.gnu.org ([2001:470:142::17]:36390)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <shipmints@HIDDEN>)
 id 1tf0xb-0005f2-P6
 for submit <at> debbugs.gnu.org; Mon, 03 Feb 2025 13:14:16 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <shipmints@HIDDEN>)
 id 1tf0xW-0004Pr-3B
 for bug-gnu-emacs@HIDDEN; Mon, 03 Feb 2025 13:14:10 -0500
Received: from mail-vs1-xe33.google.com ([2607:f8b0:4864:20::e33])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <shipmints@HIDDEN>)
 id 1tf0xU-0001NZ-9b
 for bug-gnu-emacs@HIDDEN; Mon, 03 Feb 2025 13:14:09 -0500
Received: by mail-vs1-xe33.google.com with SMTP id
 ada2fe7eead31-4aff31b77e8so1842785137.1
 for <bug-gnu-emacs@HIDDEN>; Mon, 03 Feb 2025 10:14:07 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1738606446; x=1739211246; darn=gnu.org;
 h=to:subject:message-id:date:from:mime-version:from:to:cc:subject
 :date:message-id:reply-to;
 bh=WGdWTTE3th1LvpGttq5bulITZHW6yPH43wRPJ26tqh0=;
 b=AUh1Ql/TiAOwv7Pu2I0k7jMK+dNcqtDAzxEls8gHuZacdB5ZoXUEo6Gteqy0F5tzBF
 7R1wmpcd8GLGpKJIOjs0s1W4mZLDVdZtNUEyn70GpkVsTcvNaCX+pXnRV8SaePQJhfrS
 dF6vjlbgCNwxQsDnYcci2DL++BQRQPSy3uxjNupsPSts1tAgu2PC0QU4Rp+ygN4rKTry
 14y/Pa7DMGkTTaP87piQ6OMODo9hKS54Q4Pu/i2yk2ig42GYr8K7gqAjmNBNChx2bV5q
 24W2yVyjK4pfvAi0pnOE7LdN3n0jKbmOiG9dl0kNufkPHIBz9LZbVJOZAumQUW5oJWOf
 gcmQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1738606446; x=1739211246;
 h=to:subject:message-id:date:from:mime-version:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=WGdWTTE3th1LvpGttq5bulITZHW6yPH43wRPJ26tqh0=;
 b=Ux9H6jJ7Fo3qSQC5uH5nzth+KEi8AX4I0+FuU8Ob8vw6MGL0TCkRV1WPpNdge4fyFa
 Aw1cVuoS/L08eJWNTnNET0G+xlEWmmckoL5YUUKT4bSss9SXuRMzN4Q7WCUTx5+Sho6U
 lKHKzuKdl+M3enQzTXQJRrJBCuUNDGtr+TcDvXuGCRRucAX7xHbBf+Ydj4Gg+mJpmKCV
 fg9Wul4Mi7dkdNvBqBb6E6uH4/aaHG3hb+o6Lhsq7QwHZ9mcqKPgNWKidEFhrDA/xXns
 F65ANf6/1zSYbo7R61Pks0OGaEcJGFuTLNmEZ3SNWTQ9w3ljP74dg7cP7HTRVFsWWHGw
 QKpA==
X-Gm-Message-State: AOJu0Yzg3kHSMPICi/O9st0jdhXaEw7qSBkbr6deR+SrK8LqCuCiYZiR
 dOcqsB/IuOuE9gdOGUZpS6gKpHiq3OnVVpQBBZDsMbUn6lGIbnf91OOSKgbjN4h+SxKI8D+4eFq
 ueO/DLTLv6ZQ+BpSsr9etXwuL+yoCiafv
X-Gm-Gg: ASbGncsRB4q/ZcgdD8YpFiYOU0PCOj4PUJ+bIfqlyS4WDPN9kqg8z/m8VWzImBUhV8/
 TSxbApfqJsKZIMrkeFtXhunDCmdQr6q/lVMic+2/hXN/DHhHcPmK8YE0hOr8X97TG8P0tpgKq
X-Google-Smtp-Source: AGHT+IHUiZgImkKiA6az7J4pAs75D12Gf4WcXddri4Rsf29uktECr55rDLVBTBmnL1FF4oiZ5t9+d1E7Up02lDCQn4I=
X-Received: by 2002:a05:6102:6cc:b0:4b2:5c4b:b0aa with SMTP id
 ada2fe7eead31-4b9a5238a47mr14489888137.17.1738606446098; Mon, 03 Feb 2025
 10:14:06 -0800 (PST)
MIME-Version: 1.0
From: Ship Mints <shipmints@HIDDEN>
Date: Mon, 3 Feb 2025 13:12:08 -0500
X-Gm-Features: AWEUYZmzN0PHXD4luMNh1YJCUX_0MsTRlutUaAtMZ7UM9almI008TiQ8oVqSKN4
Message-ID: <CAN+1HbrD0aT+C71-ZT1636beJ0hYDr2-gFPay56u1wENUZyhJQ@HIDDEN>
Subject: file-equal-p should accept nil arguments
To: bug-gnu-emacs@HIDDEN
Content-Type: multipart/alternative; boundary="0000000000009fc367062d40db8b"
Received-SPF: pass client-ip=2607:f8b0:4864:20::e33;
 envelope-from=shipmints@HIDDEN; helo=mail-vs1-xe33.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

--0000000000009fc367062d40db8b
Content-Type: text/plain; charset="UTF-8"

I think file-equal-p should accept nil arguments and consider the result
unspecified as in its docstring: "If FILE1 or FILE2 does not exist, the
return value is unspecified."

Currently, file-equal-p signals an error when nil file names are specified.

-Stephane

--0000000000009fc367062d40db8b
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-family:monospac=
e"><div class=3D"gmail_default">I think file-equal-p should accept nil argu=
ments and consider the result unspecified as in its docstring: &quot;If FIL=
E1 or FILE2 does not exist, the return value is unspecified.&quot;</div><di=
v class=3D"gmail_default"><br></div><div class=3D"gmail_default">Currently,=
 file-equal-p signals an error when nil file names are specified.</div><div=
 class=3D"gmail_default"><br></div><div class=3D"gmail_default">-Stephane</=
div></div></div>

--0000000000009fc367062d40db8b--




Acknowledgement sent to Ship Mints <shipmints@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#76033; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Tue, 4 Feb 2025 11:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.