From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.devel Subject: Re: user-directory: New library to find user {conf, data, state, ...} files Date: Fri, 5 Nov 2021 19:56:29 -0700 Message-ID: References: <83sfwp1c27.fsf@gnu.org> <83sfwnyi65.fsf@gnu.org> <83k0hzydcg.fsf@gnu.org> <87bl2ycaof.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14072"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , Stefan Monnier , emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Nov 06 03:57:29 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 1mjBtZ-0003RV-G9 for ged-emacs-devel@m.gmane-mx.org; Sat, 06 Nov 2021 03:57:29 +0100 Original-Received: from localhost ([::1]:33350 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mjBtY-0006mz-7u for ged-emacs-devel@m.gmane-mx.org; Fri, 05 Nov 2021 22:57:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51126) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mjBsf-00061F-TR for emacs-devel@gnu.org; Fri, 05 Nov 2021 22:56:33 -0400 Original-Received: from mail-pl1-f171.google.com ([209.85.214.171]:42817) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mjBsd-0001EY-M3; Fri, 05 Nov 2021 22:56:33 -0400 Original-Received: by mail-pl1-f171.google.com with SMTP id u17so12181503plg.9; Fri, 05 Nov 2021 19:56:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:in-reply-to:references:mime-version:date :message-id:subject:to:cc; bh=M/OPhUi53YXWpZS28RWYcWE/Jz5FeDVdZIRphldBVJ0=; b=PJ1QInE8qEV1qrdrn6HI+yLghinaF6BpBiYbSpp8VMCaXn5xU0z+wWQ36PRBtcQpHP OVfz3tLMbs/SWrR5KsEqgHY79sXBWsl1AaFGE12FSRDAWe/2aLTfKA8AtwH2fY9OxIB3 9uGbJpWRsw2BuTfj/1yKHMg9kQkBidJtelOrPOHC/VO7w759kCCGywUjGOCQpH2MAqNZ AG2kxCK+r1FaJIzMFu6CjiK9lsJghPMfVLrUVA/ugqPcSHKwz+cW7v+3fjciZyMgZLSn UtB8D7zjGaJHTXFE1/IAOhB9ouad/c4U/czaqTJX/XK06W1fKulD0XzV6QacMN3KTt6P L0LA== X-Gm-Message-State: AOAM5303/UhDDq27gAu8CGXBb/2rv6pBUr9uzgHtG6lMjq7Fn/ZqoLNz KubrNdHnYqbfwGgCqcD4tEjHE5pSeYOLG53R7R0= X-Google-Smtp-Source: ABdhPJyw2OsBswDEO4B/uVmH+CVkV5R7BkSItOE0kSE1+/SOJpcev+DbkAM+girxgddujOTUjsNFBgU1zwdFme2PO6s= X-Received: by 2002:a17:902:a410:b0:141:be1a:53d1 with SMTP id p16-20020a170902a41000b00141be1a53d1mr44694026plq.71.1636167390090; Fri, 05 Nov 2021 19:56:30 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Fri, 5 Nov 2021 19:56:29 -0700 In-Reply-To: <87bl2ycaof.fsf@gnus.org> Received-SPF: pass client-ip=209.85.214.171; envelope-from=stefankangas@gmail.com; helo=mail-pl1-f171.google.com X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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:278834 Archived-At: Lars Ingebrigtsen writes: > Looks nice to me. Thanks. > So it would be nice if we could just say > > (user-file 'cache "foo" :legacy "~/Groovy/foo") > > and it'd return the legacy file name if it exists, but otherwise use the > new one. Or something like that -- the :legacy should probably also be > allowed to be a list of names for things that have moved around a lot. I forgot to mention it, but `user-file' is supposed to support an OLD-NAME argument just like `locate-user-emacs-file' does. Making it accept either a string or a list sounds like a good addition.