From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Xiyue Deng Newsgroups: gmane.emacs.devel Subject: Re: Question regarding load-path handling for ELPA packages Date: Sun, 26 May 2024 22:30:37 -0700 Message-ID: <87jzjfhldu.fsf@debian-hx90.lan> References: <878r0ifjmt.fsf@debian-hx90.lan> <87eda0765g.fsf@debian-hx90.lan> <87o794z6l8.fsf@web.de> <87a5ko6s64.fsf@debian-hx90.lan> <87bk53cfo2.fsf@web.de> <87h6eu5kfa.fsf@debian-hx90.lan> <87jzjpsgsw.fsf@web.de> <87ikz93tlh.fsf@debian-hx90.lan> <87bk4xvo5j.fsf@web.de> <87zfshxq0h.fsf@debian-hx90.lan> <87a5kcwudl.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5606"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Michael Heerdegen via "Emacs development discussions." To: Michael Heerdegen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon May 27 07:31:47 2024 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 1sBSxX-0001Hw-1u for ged-emacs-devel@m.gmane-mx.org; Mon, 27 May 2024 07:31:47 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sBSwq-0004Xu-FJ; Mon, 27 May 2024 01:31:04 -0400 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 1sBSwi-0004V1-SC for emacs-devel@gnu.org; Mon, 27 May 2024 01:30:57 -0400 Original-Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sBSwV-0003L1-5A for emacs-devel@gnu.org; Mon, 27 May 2024 01:30:51 -0400 Original-Received: by mail-pl1-x62f.google.com with SMTP id d9443c01a7336-1f48b825d8cso5596195ad.2 for ; Sun, 26 May 2024 22:30:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716787839; x=1717392639; darn=gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=nYvpgJV+Cmr9K11W1DKinOS6Y5FpfGfijQ74lj6kR/c=; b=CV0xK1Qw6xwJKTgR1YbbFnnFFWMCd5z6Ra4P7CeSMjv2ywfSpuIxdD/uj4RGn1vRZY MJ5nA1TbohSQ3MFHM0AnEtiE+SiJ0kLxaR1w0U4AsaMKRHbnCFkwmpbqPYMX4bE1DlFu mf1VlzGZq7wCYVXsO/0MrEkaTJctRItXjrC1gAiyOnsEz3IJR51fbpD83ZeqkW/LB/Pu x5V/GZEeOhVDteygFz5z+U3skY1IXVfBF/hOQklXm3BspKAHODQ8p4fgk+Rc5axw4D6Z EGAW8nReQWZmZXIaHBHXAfBsjhAtDO7nIW13n96pv/r7uRqnbGiiLmGOA0cKwA1V7pLc Lc8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716787839; x=1717392639; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=nYvpgJV+Cmr9K11W1DKinOS6Y5FpfGfijQ74lj6kR/c=; b=qwj1ACeqYmLFslaOAdQHbDDMr5ri2W5MI7pS7EqnBlfMmcKebMvgOXXxqrinLVmtIj +4t6csWoDbA7Qi/KI1cII7b7EBrtC+/7Q8uK4/DrYRtFyI0FLsgVRxdX00FyTJT71dlM 6dvGew0bHUJtUff+cdwlm6BKYFZT7kxLUJ8lWOGkdWmy3XwOdgYM1wskU6qROJfM88+e 4RAusC4/9mprrz97/L5Mq8qQoSfj6gvw2k7SIj96NCBhY8PYp9Z5G01o8U3IbuDXlgpC aryFdFtzd5j5pWUkgcgbJqojQO+yU6mP8Zisjm7pnqgoMWKBc6BfjvPE81qhRPgY7VD9 zGTA== X-Gm-Message-State: AOJu0YzgRquH+Z7Y3OiWozg/3hfSL2NpCw4LKYFpoUk0iU1k3p7IpgXl SZyQU0AjPlEtYPhzCdiGiXx+A0AIYWLnRk4YRZ7P0RDGdyEfPx9aDXaJPQ== X-Google-Smtp-Source: AGHT+IFlKo+NrnvKCS21Lnu3J/TjT9wf4+jfU4nwHUGVN6DVKZr/GWw7ptkqCnnPHSJNmjp//NFR4A== X-Received: by 2002:a17:902:ec8c:b0:1f4:913d:6f16 with SMTP id d9443c01a7336-1f4913d701emr30662625ad.13.1716787839003; Sun, 26 May 2024 22:30:39 -0700 (PDT) Original-Received: from debian-hx90 ([2603:8000:a400:cdc:51dd:6148:ca6a:d5bc]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f4724a47e1sm30380595ad.194.2024.05.26.22.30.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 May 2024 22:30:38 -0700 (PDT) In-Reply-To: <87a5kcwudl.fsf@web.de> (Michael Heerdegen's message of "Sun, 26 May 2024 15:55:02 +0200") Received-SPF: pass client-ip=2607:f8b0:4864:20::62f; envelope-from=manphiz@gmail.com; helo=mail-pl1-x62f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_HELO_TEMPERROR=0.01 autolearn=ham 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:319597 Archived-At: Hi Michael, Michael Heerdegen writes: > Xiyue Deng writes: > >> > [...] doesn't add subdirectories recursively. Or does it? >> This is the content of subdirs.el: >> >> ,---- >> | (if (fboundp 'normal-top-level-add-subdirs-to-load-path) >> | (normal-top-level-add-subdirs-to-load-path)) >> `---- > > Ok indeed - `normal-top-level-add-to-load-path' > vs. `normal-top-level-add-subdirs-to-load-path', I see. > > >> [...] With this support dh-elpa can keep the same directory layout as >> ELPA for package with source files in nested directories as well. > > I see. Then I think the more you mimic (or call) what package.el does > the saver you are. > >> > Any package still can add subdirectories explicitly. In sum I see >> > more disadvantages. >> >> I agree with you arguments here. My initial thoughts for adding >> subdirectories are mainly to give developer some flexibilities to >> organize the source code, but if subdirectories can be added explicitly >> then it's fine. Do you know where how that's done is documented for >> ELPA? > > Sorry, no, and I didn't find anything. Could be that it's undocumented. > At least I did not find an explicit description of how subdirectories of > the content directory are handled. Thanks for help checking! It's not urgent as we don't have an actual use case yet. Will revisit should the need comes up. > > > Michael. -- Xiyue Deng