From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Subdirectories in package .tar archives Date: Sat, 15 May 2021 15:40:51 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24852"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Emacs developers To: Paul Pogonyshev Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat May 15 21:42:40 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 1li0BL-0006Eo-J7 for ged-emacs-devel@m.gmane-mx.org; Sat, 15 May 2021 21:42:39 +0200 Original-Received: from localhost ([::1]:48126 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1li0BK-0000fM-K6 for ged-emacs-devel@m.gmane-mx.org; Sat, 15 May 2021 15:42:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41552) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1li09i-0007g8-AK for emacs-devel@gnu.org; Sat, 15 May 2021 15:40:58 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:43916) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1li09f-0008LV-RN for emacs-devel@gnu.org; Sat, 15 May 2021 15:40:57 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id A645D10028A; Sat, 15 May 2021 15:40:53 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 3F3A2100091; Sat, 15 May 2021 15:40:52 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1621107652; bh=eLXM7PYhP3KKGPt2Qh2/Uf/5yk+gx2CjVYYcUvWg4TA=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=i7od66lEm8l7z/bTvHJWcQoujMvAMnKcCWXIZLGGPHvp1bWqw5jTdnCHgoBK1gMNw 0djlukOcOblCrQWMGF9jQVBm6FUyEbP6ke6ASVGey76/oaYmhFXxCVfeZWnm7FRZh+ pQeFImGMhUWt1e/k9q0IvbsnlnOley62dGv4riGtGNLNWYg2lPcrlV4i4g3OyABjYi DWdHzH7Zy25ALeWbYdHvcD3VZOIPCgLUstpI8zoMnbpjSTq60M5itZQmkvw10D9Jhx EATMyiG9kNx8NEIDQ/PNVq0Ka/ahXSv4KVbrlKdmhnku5lpeeQiuZXvUGh2FTlCRL6 /yuG184ti/CfA== Original-Received: from alfajor (76-10-140-76.dsl.teksavvy.com [76.10.140.76]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 0318F120470; Sat, 15 May 2021 15:40:51 -0400 (EDT) In-Reply-To: (Paul Pogonyshev's message of "Sat, 15 May 2021 20:02:36 +0200") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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:269316 Archived-At: > is it possible/well-defined to have subdirectories in Elisp packages? Yes. > E.g. in MELPA documentation I see that "Any file specified at any > path in the repository is copied to the root of the package". > Is there a good reason for it, or is it rather a limitation of MELPA? It's a limitation of MELPA linked to a limitation of ELPA. IIRC the main limitation in this respect in ELPA is that the `-autoloads.el` file created during installation only collects autoload cookies from .el files in the package's main directory. Another related one is that the package's Texinfo doc is expected to come with the `.info` and a `dir` files in the root dir. You can partly circumvent those issues if you create your own autoloads file somehow (either before packaging the tarball, or as part of the byte-compilation performed after installation) and/or set the `Info-directory-list` yourself (from the autoloads file, presumably). Stefan