From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: file-equal-p Date: Sat, 18 Feb 2023 14:25:00 +0200 Message-ID: <83a61byxcz.fsf@gnu.org> References: <87a61es8fh.fsf.ref@yahoo.com> <87a61es8fh.fsf@yahoo.com> <87v8k06247.fsf@igel.home> <83ilg01nst.fsf@gnu.org> <87r0uo5t37.fsf@igel.home> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14829"; mail-complaints-to="usenet@ciao.gmane.io" Cc: rms@gnu.org, luangruo@yahoo.com, emacs-devel@gnu.org To: Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Feb 18 13:26:25 2023 Return-path: Envelope-to: ged-emacs-devel@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 1pTMIK-0003dW-Ka for ged-emacs-devel@m.gmane-mx.org; Sat, 18 Feb 2023 13:26:24 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pTMHQ-0005Wz-8U; Sat, 18 Feb 2023 07:25:28 -0500 Original-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 ) id 1pTMHO-0005Wq-NJ for emacs-devel@gnu.org; Sat, 18 Feb 2023 07:25:26 -0500 Original-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 ) id 1pTMHN-000661-B2; Sat, 18 Feb 2023 07:25:25 -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=29+wNOW6X7pNF9hkQQ9ruOMuKA3hzWJiHJEroH0dcRU=; b=LN7yNIXWgUjW Et4FWYtTLsAL3vDjxMYTlJ85nS1pBJ73mLz0t97FJfLZof1r+B2+Lk3aHswh03nMyraG3SWUWCQF7 AJSMDS5aUN0ROw+sPEUDClNGF3ukEoW00o9lA+ud6fCsC1OEjTPNUC9+lMcgFK+sQW2KKbkYoJGm9 o4gS0rLSpFXyIHTANhKPC7rciDaxUH06yH05Yoe2lYeRmlkFzTWq0JL45x51JMI0gCdmpI9COys2m UsL06/KYepYhhsvS546aUBQwarzHkDDRJyjYAZbyHxyuVp+FaLb3oAiq5bVG0EaWIk3t+ZkkVCxsN pXhs1YMCn23xKmfJ4g++Vg==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pTMGx-0007oj-2l; Sat, 18 Feb 2023 07:24:59 -0500 In-Reply-To: <87r0uo5t37.fsf@igel.home> (message from Andreas Schwab on Fri, 17 Feb 2023 14:17:48 +0100) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:303528 Archived-At: > From: Andreas Schwab > Cc: rms@gnu.org, luangruo@yahoo.com, emacs-devel@gnu.org > Date: Fri, 17 Feb 2023 14:17:48 +0100 > > On Feb 17 2023, Eli Zaretskii wrote: > > > That depends on the semantics of "files are equal". If the issue is > > only whether two file names point to the same file's data, then yes, > > using file-attribute-file-identifier is TRT. But that is not the only > > possible semantics of these tests. > > What are those other semantics? The simplest one is when the caller wants to check whether all of the attributes of two sets are identical, for example in order to see if the file was accessed since the last check.