all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Heime <heimeborgia@protonmail.com>
To: Heime <heimeborgia@protonmail.com>
Cc: Drew Adams <drew.adams@oracle.com>,
	Heime via Users list for the GNU Emacs text editor
	<help-gnu-emacs@gnu.org>
Subject: Re: [External] : Re: Implement subfeatures in packages
Date: Mon, 05 Aug 2024 11:09:00 +0000	[thread overview]
Message-ID: <Kwg4doxe0CgipQUItfL-irnIMmB11VXfxECL5Jf3OTUD1zhgnsnNfrIWSLx3MqELgJrVFS6GhbWX-lxnTut9tIiGnx2jIxm9l2DZs0YnNm0=@protonmail.com> (raw)
In-Reply-To: <P2banmvfcHS6vtrY9wwqm5H34zAxi2Q1enDi5X5HRSIoWI89ApvYAsudsQw-XU9RItYmOF5hJS-4casaPf8fLI7RZCqsdP1HRnuW2rfYHnk=@protonmail.com>






Sent with Proton Mail secure email.

On Monday, August 5th, 2024 at 9:50 PM, Heime <heimeborgia@protonmail.com> wrote:

> 
> 
> 
> 
> 
> Sent with Proton Mail secure email.
> 
> 
> On Monday, August 5th, 2024 at 8:44 AM, Drew Adams drew.adams@oracle.com wrote:
> 
> > > > > 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.
> > > > > 
> > > > > What would the provide clause look like ?
> > > > 
> > > > In lumi.el:
> > > > (provide 'tema '(lumi))
> > > > 
> > > > In tema.el:
> > > > (provide 'tema '(mast))
> > > > 
> > > > Elsewhere:
> > > > (require 'tema)
> > > 
> > > Would it be correct for "tema.el" to end with the clause
> > > (provide 'tema '(lumi mast))
> > 
> > Correct? You can do anything you want to.
> > 
> > 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.
> 
> 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".
 
> Currently I have
> 
> ;; code of tema.el
> (provide 'tema '(lumi mast))
> 
> ;; code of lumi.el
> (provide 'tema '(lumi))
> 
> ;; code of mast.el
> (provide 'tema '(mast))



  reply	other threads:[~2024-08-05 11:09 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-04 12:09 Implement subfeatures in packages Heime
2024-08-04 13:20 ` Heime
2024-08-04 16:33   ` [External] : " Drew Adams
2024-08-04 18:53     ` Heime
2024-08-04 20:44       ` Drew Adams
2024-08-05  9:50         ` Heime
2024-08-05 11:09           ` Heime [this message]
2024-08-05 19:39   ` Heime

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='Kwg4doxe0CgipQUItfL-irnIMmB11VXfxECL5Jf3OTUD1zhgnsnNfrIWSLx3MqELgJrVFS6GhbWX-lxnTut9tIiGnx2jIxm9l2DZs0YnNm0=@protonmail.com' \
    --to=heimeborgia@protonmail.com \
    --cc=drew.adams@oracle.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.