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: Thu, 16 Feb 2023 10:18:17 +0200 Message-ID: <83fsb681me.fsf@gnu.org> References: <87a61es8fh.fsf.ref@yahoo.com> <87a61es8fh.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29766"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Feb 16 09:19:19 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 1pSZU7-0007br-Sh for ged-emacs-devel@m.gmane-mx.org; Thu, 16 Feb 2023 09:19:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pSZTR-0004nZ-2t; Thu, 16 Feb 2023 03:18:37 -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 1pSZTO-0004n5-9D for emacs-devel@gnu.org; Thu, 16 Feb 2023 03:18:34 -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 1pSZTN-0005bM-Ur; Thu, 16 Feb 2023 03:18:33 -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=wp6AeS8mu/nOu4zeg0YKsfQp0gPruLJW76cUKYfAKMA=; b=L0WkBP4weKAm t1MEmJuXFqNH2kaE1BPFExCFaRsLX5JGaEnsLubcN7sVg/iiAnTLHNEe61EeiO2gTcx6ppsxCfLY4 ML4EIMzppbIr/pxWE8wD6pTpyZCDma6yqPS/Xa/UAyPu4bIlqMffaUptXHCXHL4yStW+OOyv1Oikx wfZUYcJAda4Ued7AfCag/MvHdaQDX8pbOpD6Wo3JmJ8f6+GolDk1oyN8ya9Lf/zak5vi+zDT+fDXb +xnvGhQZ5RSP0Zu/S3KGkLFmHg9Mg6iydbl4cSr9uEKSXeX8L8nQuls+6D4yvP1CVT81fZXBsUdyE gh418NeRnTgeHHSHwp9Bjw==; 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 1pSZTN-0005r1-Da; Thu, 16 Feb 2023 03:18:33 -0500 In-Reply-To: <87a61es8fh.fsf@yahoo.com> (message from Po Lu on Thu, 16 Feb 2023 09:30:58 +0800) 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:303379 Archived-At: > From: Po Lu > Date: Thu, 16 Feb 2023 09:30:58 +0800 > > Someone says that Haiku changes the file access time every time `stat' > is called on a file, and as a result `file-equal-p' doesn't work, as it > compares the file attributes of both operands. > > Ideas? Thanks. Fix Haiku? A 'stat' call accesses the directory and file's meta-data, not the file itself, so what Haiku does makes no sense, IMO. But if you cannot fix Haiku, a suitable haiku-only change in file-equal-p, whereby the access times are exempt from comparison, is a possibility.