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: master daea9b3 1/2: Read mailcaps again only when necessary Date: Mon, 01 Nov 2021 20:31:49 +0200 Message-ID: <83ilxblobu.fsf@gnu.org> References: <20211101135344.25800.81476@vcs0.savannah.gnu.org> <20211101135346.2EBEB20B72@vcs0.savannah.gnu.org> <87tugvrerf.fsf@gnus.org> <83sfwflrox.fsf@gnu.org> <87fssfrdul.fsf@gnus.org> <83o873lrg2.fsf@gnu.org> <8735ofrdhz.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4853"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, gregory@heytings.org, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Nov 01 20:43:16 2021 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 1mhdDA-00018G-Bh for ged-emacs-devel@m.gmane-mx.org; Mon, 01 Nov 2021 20:43:16 +0100 Original-Received: from localhost ([::1]:35598 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mhdD9-0004F9-Bu for ged-emacs-devel@m.gmane-mx.org; Mon, 01 Nov 2021 15:43:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52968) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mhc69-0000LS-Uq for emacs-devel@gnu.org; Mon, 01 Nov 2021 14:31:58 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:39058) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mhc67-0003IA-N5; Mon, 01 Nov 2021 14:31:55 -0400 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=pzXHVPhTRNUYYP02Z3Hxglk/JnuqrUzzvLeQ+N/B6IY=; b=Jr1PAdKasVUN qDjX0SIU047k4DX+SMDpVNbCiZppFliR/uPTLbl8Va7t0fYoap3PzRCqPt4rneRytcCIwjabP9sPN GZ4yQccr0pazFmWqQWCrycPQ6oMf0Fsvv44ARlq3AKZxysfx8oOGMFSaVf7VYz0o9oZq7pTF92D0C zVeNJyd2d/TkbYpVJUXi+AOzL8X2/5Ikr+1WKS9+SZiy2PfTrqu55jdom4vM4CDjdWXL3HnZrEn1E RByaXNv7KR4d4/KYvGQArWRNAK1RWNeYHPfFTWVKvb9BZopga1T2j49H0B15PcDN098t6/ldGCHNl l0LJzqquC4JhdxagstqgAg==; Original-Received: from [87.69.77.57] (port=1826 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 1mhc67-0006FL-7q; Mon, 01 Nov 2021 14:31:55 -0400 In-Reply-To: (message from Stefan Monnier on Mon, 01 Nov 2021 14:20:41 -0400) 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" Xref: news.gmane.io gmane.emacs.devel:278420 Archived-At: > From: Stefan Monnier > Cc: Eli Zaretskii , gregory@heytings.org, emacs-devel@gnu.org > Date: Mon, 01 Nov 2021 14:20:41 -0400 > > Lars Ingebrigtsen [2021-11-01 18:29:12] wrote: > > Eli Zaretskii writes: > >> What if we have the same file name in several different directories -- > >> how will you record the files so they all get different hash slots? > > Oh, you mean relative file names? I think it's up to the caller to > > decide. If they don't want that, then give an absolute file name, and > > if they do want that, then don't. > > To avoid disappointment, it makes sense to pass the filename through > `expand-file-name` or to signal an error if the file name is not > absolute. Why signal an error when the function can make the file name absolute so easily? It makes no sense. No other API that accepts file names does that, AFAIK.