From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Heime Newsgroups: gmane.emacs.help Subject: Re: [External] : Re: Implement subfeatures in packages Date: Mon, 05 Aug 2024 11:09:00 +0000 Message-ID: References: <6Bcta3NoZ9mjz-meefRWzlUq18Jxbzbqs929x3IQpx1H-F6zGSh_XnJ8Lt9U-YjewgLQmo5uyrcnbDDxLXRBkwC5Y-y8jVrDScnBBnP3aRI=@protonmail.com> <7twB2gr1NrfA2wOVt441EyEiZIObroiV84vivRai3IruG7w_Pqiysk9zjPpY_2aK0He2MMQcU58miGayRiKn8xrMNXRREl-587YdGymbN14=@protonmail.com> <1Cif1BLZhNxeoB23HWlx7Hr40FGzrCUn5w_HHa15pk-9yWCtNBqnpDEDjmL2ysb50FfABlwGAZaejuQC_5cssCUgotxUipyKvINgK2v__ks=@protonmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5007"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Drew Adams , Heime via Users list for the GNU Emacs text editor To: Heime Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 05 13:09:54 2024 Return-path: Envelope-to: geh-help-gnu-emacs@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 1savb8-00015z-1w for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 05 Aug 2024 13:09:54 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1savaS-000487-9D; Mon, 05 Aug 2024 07:09:12 -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 1savaP-00047w-US for help-gnu-emacs@gnu.org; Mon, 05 Aug 2024 07:09:09 -0400 Original-Received: from mail-40135.protonmail.ch ([185.70.40.135]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1savaO-0005IX-3L for help-gnu-emacs@gnu.org; Mon, 05 Aug 2024 07:09:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1722856145; x=1723115345; bh=Bvax+4G2jrxbL/AdlHSCS04XlmHVKEkXFZ3Q1VLWWjM=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=W7ca08+2hzhbmflhH8NuEMHJ2ldSb3+6VNBX1XjMr9bq2JBVM633E3gW3VF6GJ/iF LBVFFoBclV+UeoAvYekhWSzjoqpbIZWC16FxbHboX55OkwCRSw7H7Mx5XZfkGxtnFD nVmgCr+bHk2dbmNoo+tuD9LuF2bFHCAPPoj77muBzcGPaUxgkklKnKoD6cZTnchAUT 8Q0VFRT1bGWS32zOSG22MxzIZu76XJlUxcUvGsDFAfjA2hEJGBaoA0hQLSdgALVOUl +t6aHqCL4/lFVwUiDkBb283eyCcpTdCu/ZvHGKVW/lgoK+aohiXOfkH0iiO8qOXQl9 A/JLOa1dM3f2Q== In-Reply-To: Feedback-ID: 57735886:user:proton X-Pm-Message-ID: 92089cc1d3c19fe9782789a5e079ebfd575ef476 Received-SPF: pass client-ip=185.70.40.135; envelope-from=heimeborgia@protonmail.com; helo=mail-40135.protonmail.ch 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, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TO_EQ_FM_DIRECT_MX=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:147516 Archived-At: Sent with Proton Mail secure email. On Monday, August 5th, 2024 at 9:50 PM, Heime = wrote: >=20 >=20 >=20 >=20 >=20 > Sent with Proton Mail secure email. >=20 >=20 > On Monday, August 5th, 2024 at 8:44 AM, Drew Adams drew.adams@oracle.com = wrote: >=20 > > > > > I want a package "tema" to provide subfeatures "lumi" and "mast" > > > > > (provide 'tema '(lumi mast)) > > > > > And set up files "lumi.el" and "mast.el" for the subfeatures. > > > > > Each of the two will include a "provide" clause at the end. > > > > >=20 > > > > > What would the provide clause look like ? > > > >=20 > > > > In lumi.el: > > > > (provide 'tema '(lumi)) > > > >=20 > > > > In tema.el: > > > > (provide 'tema '(mast)) > > > >=20 > > > > Elsewhere: > > > > (require 'tema) > > >=20 > > > Would it be correct for "tema.el" to end with the clause > > > (provide 'tema '(lumi mast)) > >=20 > > Correct? You can do anything you want to. > >=20 > > Using that says that the file it's in provides > > feature tema and subfeatures lumi and mast. > > If that's what you want to convey, then do it. >=20 > Yes, I want to provide feature "tema" and subfeatures "lumi" and "mast". > I want to know the way to include the subfeatures in "lumi" and "mast". > in "tema.el". Does one use the "include" clause, and how should it look > like? A problem that occurs is the error when using (require 'mast) in "tema.el". I would need a different command to include the code in "mast.el" into "tema.el". =20 > Currently I have >=20 > ;; code of tema.el > (provide 'tema '(lumi mast)) >=20 > ;; code of lumi.el > (provide 'tema '(lumi)) >=20 > ;; code of mast.el > (provide 'tema '(mast))