* bug#65027: 30.0.50; [PATCH] Document .elpaignore behavior in the Emacs Lisp manual @ 2023-08-03 4:56 Jim Porter 2023-08-03 9:02 ` Eli Zaretskii 2024-01-10 21:49 ` Stefan Kangas 0 siblings, 2 replies; 31+ messages in thread From: Jim Porter @ 2023-08-03 4:56 UTC (permalink / raw) To: 65027; +Cc: philipk [-- Attachment #1: Type: text/plain, Size: 436 bytes --] X-Debbugs-Cc: philipk@posteo.net From the discussion in bug#64985, Eli mentioned that .elpaignore wasn't documented. (It turns out it's mentioned briefly in the GNU ELPA README, but that's the only place I could find.) Here's a small patch to document this in the Package section of the Emacs Lisp manual. This is just a first pass at documenting this feature, so I'm happy to add further details if anyone thinks it's warranted. [-- Attachment #2: 0001-doc-lispref-package.texi-Multi-file-Packages-Documen.patch --] [-- Type: text/plain, Size: 1062 bytes --] From a5dc5f63003aea4bda4f382ec46c0556edb14f1a Mon Sep 17 00:00:00 2001 From: Jim Porter <jporterbugs@gmail.com> Date: Wed, 2 Aug 2023 21:51:18 -0700 Subject: [PATCH] * doc/lispref/package.texi (Multi-file Packages): Document ".elpaignore". --- doc/lispref/package.texi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doc/lispref/package.texi b/doc/lispref/package.texi index 2952e7dfcfc..ce29b4be72a 100644 --- a/doc/lispref/package.texi +++ b/doc/lispref/package.texi @@ -284,6 +284,13 @@ Multi-file Packages (expand-file-name file superfrobnicator-base)) @end smallexample + If your project contains files that you don't wish to distribute to +users (e.g.@: regression tests), you can add them to an +@file{.elpaignore} file. In this file, each line lists a file or +wildcard matching files to ignore when producing your package's tar +file on ELPA. (ELPA will pass this file to @command{tar} with the +@code{-X} option.) + @node Package Archives @section Creating and Maintaining Package Archives @cindex package archive -- 2.25.1 ^ permalink raw reply related [flat|nested] 31+ messages in thread
* bug#65027: 30.0.50; [PATCH] Document .elpaignore behavior in the Emacs Lisp manual 2023-08-03 4:56 bug#65027: 30.0.50; [PATCH] Document .elpaignore behavior in the Emacs Lisp manual Jim Porter @ 2023-08-03 9:02 ` Eli Zaretskii 2023-08-03 13:36 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors 2024-01-10 21:49 ` Stefan Kangas 1 sibling, 1 reply; 31+ messages in thread From: Eli Zaretskii @ 2023-08-03 9:02 UTC (permalink / raw) To: Jim Porter, Stefan Monnier; +Cc: philipk, 65027 > Cc: philipk@posteo.net > Date: Wed, 2 Aug 2023 21:56:38 -0700 > From: Jim Porter <jporterbugs@gmail.com> > > From the discussion in bug#64985, Eli mentioned that .elpaignore wasn't > documented. (It turns out it's mentioned briefly in the GNU ELPA README, > but that's the only place I could find.) Here's a small patch to > document this in the Package section of the Emacs Lisp manual. > > This is just a first pass at documenting this feature, so I'm happy to > add further details if anyone thinks it's warranted. Thanks. Adding Stefan to the discussion. ^ permalink raw reply [flat|nested] 31+ messages in thread
* bug#65027: 30.0.50; [PATCH] Document .elpaignore behavior in the Emacs Lisp manual 2023-08-03 9:02 ` Eli Zaretskii @ 2023-08-03 13:36 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors 2023-08-03 17:24 ` Jim Porter 0 siblings, 1 reply; 31+ messages in thread From: Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-08-03 13:36 UTC (permalink / raw) To: Eli Zaretskii; +Cc: Jim Porter, philipk, 65027 >> From the discussion in bug#64985, Eli mentioned that .elpaignore wasn't >> documented. (It turns out it's mentioned briefly in the GNU ELPA README, >> but that's the only place I could find.) That's because it was the only place where `.elpaignore` was used/obeyed (until the introduction of `package-vc`). Stefan ^ permalink raw reply [flat|nested] 31+ messages in thread
* bug#65027: 30.0.50; [PATCH] Document .elpaignore behavior in the Emacs Lisp manual 2023-08-03 13:36 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-08-03 17:24 ` Jim Porter 2023-08-03 19:09 ` Philip Kaludercic ` (2 more replies) 0 siblings, 3 replies; 31+ messages in thread From: Jim Porter @ 2023-08-03 17:24 UTC (permalink / raw) To: Stefan Monnier, Eli Zaretskii; +Cc: philipk, 65027 On 8/3/2023 6:36 AM, Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors wrote: >>> From the discussion in bug#64985, Eli mentioned that .elpaignore wasn't >>> documented. (It turns out it's mentioned briefly in the GNU ELPA README, >>> but that's the only place I could find.) > > That's because it was the only place where `.elpaignore` was used/obeyed > (until the introduction of `package-vc`). Yeah, something more general that I've noticed is that as a package author, the documentation for how to make a package for GNU ELPA is split between the GNU ELPA README and the Emacs Lisp manual. I found this a bit confusing when I prepared my first package for submission to GNU ELPA, so (for example) I didn't learn about ".elpaignore" until after I sent my package submission to emacs-devel. Maybe it would make sense to put all the documentation in the Emacs Lisp manual, and then the GNU ELPA README can be the home for documentation about how to work with the GNU ELPA repository specifically (mainly as an administrator). What do you think? ^ permalink raw reply [flat|nested] 31+ messages in thread
* bug#65027: 30.0.50; [PATCH] Document .elpaignore behavior in the Emacs Lisp manual 2023-08-03 17:24 ` Jim Porter @ 2023-08-03 19:09 ` Philip Kaludercic 2023-08-03 21:21 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors 2023-08-05 1:58 ` Richard Stallman 2 siblings, 0 replies; 31+ messages in thread From: Philip Kaludercic @ 2023-08-03 19:09 UTC (permalink / raw) To: Jim Porter; +Cc: Eli Zaretskii, Stefan Monnier, 65027 Jim Porter <jporterbugs@gmail.com> writes: > On 8/3/2023 6:36 AM, Stefan Monnier via Bug reports for GNU Emacs, the > Swiss army knife of text editors wrote: >>>> From the discussion in bug#64985, Eli mentioned that .elpaignore wasn't >>>> documented. (It turns out it's mentioned briefly in the GNU ELPA README, >>>> but that's the only place I could find.) >> That's because it was the only place where `.elpaignore` was >> used/obeyed >> (until the introduction of `package-vc`). > > Yeah, something more general that I've noticed is that as a package > author, the documentation for how to make a package for GNU ELPA is > split between the GNU ELPA README and the Emacs Lisp manual. I found > this a bit confusing when I prepared my first package for submission > to GNU ELPA, so (for example) I didn't learn about ".elpaignore" until > after I sent my package submission to emacs-devel. > > Maybe it would make sense to put all the documentation in the Emacs > Lisp manual, and then the GNU ELPA README can be the home for > documentation about how to work with the GNU ELPA repository > specifically (mainly as an administrator). What do you think? When I find some time, I plan to write and add a package to ELPA that could help automatise some of the necessary steps for contributing to ELPA (explaining the difference between GNU and NonGNU, signing the CA, testing for common mistakes, clean byte-compiling, etc.). It would be possible to also suggest creating a .elpaignore file as well. Of course, this does not mean there shouldn't be any guidelines written down in the manual. ^ permalink raw reply [flat|nested] 31+ messages in thread
* bug#65027: 30.0.50; [PATCH] Document .elpaignore behavior in the Emacs Lisp manual 2023-08-03 17:24 ` Jim Porter 2023-08-03 19:09 ` Philip Kaludercic @ 2023-08-03 21:21 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors 2023-08-03 22:02 ` Jim Porter 2023-08-05 1:58 ` Richard Stallman 2 siblings, 1 reply; 31+ messages in thread From: Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-08-03 21:21 UTC (permalink / raw) To: Jim Porter; +Cc: Eli Zaretskii, philipk, 65027 > Maybe it would make sense to put all the documentation in the Emacs Lisp > manual, and then the GNU ELPA README can be the home for documentation about > how to work with the GNU ELPA repository specifically (mainly as an > administrator). FWIW, that's how it started. It's just that some of the conventions originally used only in (Non)GNU ELPA have now made their way into `package.el`. > What do you think? Any help cleaning this up is welcome. Stefan ^ permalink raw reply [flat|nested] 31+ messages in thread
* bug#65027: 30.0.50; [PATCH] Document .elpaignore behavior in the Emacs Lisp manual 2023-08-03 21:21 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-08-03 22:02 ` Jim Porter 2023-08-03 22:41 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors 2023-08-04 5:42 ` Eli Zaretskii 0 siblings, 2 replies; 31+ messages in thread From: Jim Porter @ 2023-08-03 22:02 UTC (permalink / raw) To: Stefan Monnier; +Cc: Eli Zaretskii, philipk, 65027 On 8/3/2023 2:21 PM, Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors wrote: >> Maybe it would make sense to put all the documentation in the Emacs Lisp >> manual, and then the GNU ELPA README can be the home for documentation about >> how to work with the GNU ELPA repository specifically (mainly as an >> administrator). > > FWIW, that's how it started. It's just that some of the conventions > originally used only in (Non)GNU ELPA have now made their way into > `package.el`. As a general guideline for documentation, I'm thinking that anything a package author puts in their own repository would get documented in the Emacs Lisp manual, whereas anything that goes in the (Non)GNU ELPA repository (e.g. in the elpa-packages file) goes in the ELPA README. That makes intuitive sense to me as a package author at least: then the Emacs Lisp manual would have everything I need to *prepare* my package for eventual inclusion in ELPA. ^ permalink raw reply [flat|nested] 31+ messages in thread
* bug#65027: 30.0.50; [PATCH] Document .elpaignore behavior in the Emacs Lisp manual 2023-08-03 22:02 ` Jim Porter @ 2023-08-03 22:41 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors 2023-08-04 3:11 ` Jim Porter 2023-08-04 5:42 ` Eli Zaretskii 1 sibling, 1 reply; 31+ messages in thread From: Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-08-03 22:41 UTC (permalink / raw) To: Jim Porter; +Cc: Eli Zaretskii, philipk, 65027 >>> Maybe it would make sense to put all the documentation in the Emacs Lisp >>> manual, and then the GNU ELPA README can be the home for documentation about >>> how to work with the GNU ELPA repository specifically (mainly as an >>> administrator). >> FWIW, that's how it started. It's just that some of the conventions >> originally used only in (Non)GNU ELPA have now made their way into >> `package.el`. > > As a general guideline for documentation, I'm thinking that anything > a package author puts in their own repository would get documented in the > Emacs Lisp manual, whereas anything that goes in the (Non)GNU ELPA > repository (e.g. in the elpa-packages file) goes in the ELPA README. That > makes intuitive sense to me as a package author at least: then the Emacs > Lisp manual would have everything I need to *prepare* my package for > eventual inclusion in ELPA. Historically, the difference was between the format of the repository (which only affected things like Melpa and (Non)GNU ELPA) and the format of ELPA tarballs (which is what `package.el` dealt with). `package-vc` makes the repository format relevant to `package.el`. But there might still be differences between what `package-vc` requires and what (Non)GNU ELPA requires, beside the data actually maintained in the (Non)GNU ELPA `elpa-packages`. Stefan ^ permalink raw reply [flat|nested] 31+ messages in thread
* bug#65027: 30.0.50; [PATCH] Document .elpaignore behavior in the Emacs Lisp manual 2023-08-03 22:41 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-08-04 3:11 ` Jim Porter 2023-09-03 11:18 ` Stefan Kangas 0 siblings, 1 reply; 31+ messages in thread From: Jim Porter @ 2023-08-04 3:11 UTC (permalink / raw) To: Stefan Monnier; +Cc: Eli Zaretskii, philipk, 65027 On 8/3/2023 3:41 PM, Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors wrote: > Historically, the difference was between the format of the repository > (which only affected things like Melpa and (Non)GNU ELPA) and the format > of ELPA tarballs (which is what `package.el` dealt with). > > `package-vc` makes the repository format relevant to `package.el`. > But there might still be differences between what `package-vc` requires > and what (Non)GNU ELPA requires, beside the data actually maintained in > the (Non)GNU ELPA `elpa-packages`. Yeah. I do think as a package author who once wasn't sure about exactly what I should do to make my Emacs package follow best-practices, the first place I'd look is in the Package section of the Emacs Lisp manual (regardless of where the implementations for package management live). But, like you say, now that 'package-vc' exists, Emacs itself now knows (some) about the repo format, too. In any case, if there are no objections in the next day or two, I'll merge my patch, and then look into whether there are any other things worth documenting. (For example, I'll try to turn my suggested documentation on package naming[1] into a patch.) [1] https://lists.gnu.org/archive/html/emacs-devel/2023-05/msg00452.html ^ permalink raw reply [flat|nested] 31+ messages in thread
* bug#65027: 30.0.50; [PATCH] Document .elpaignore behavior in the Emacs Lisp manual 2023-08-04 3:11 ` Jim Porter @ 2023-09-03 11:18 ` Stefan Kangas 2023-09-06 1:56 ` Jim Porter 0 siblings, 1 reply; 31+ messages in thread From: Stefan Kangas @ 2023-09-03 11:18 UTC (permalink / raw) To: Jim Porter; +Cc: philipk, Eli Zaretskii, Stefan Monnier, 65027 Jim Porter <jporterbugs@gmail.com> writes: > In any case, if there are no objections in the next day or two, I'll merge my > patch, and then look into whether there are any other things worth > documenting. (For example, I'll try to turn my suggested documentation on > package naming[1] into a patch.) > > [1] https://lists.gnu.org/archive/html/emacs-devel/2023-05/msg00452.html Was this installed? Otherwise, please go ahead. Your patch LGTM. ^ permalink raw reply [flat|nested] 31+ messages in thread
* bug#65027: 30.0.50; [PATCH] Document .elpaignore behavior in the Emacs Lisp manual 2023-09-03 11:18 ` Stefan Kangas @ 2023-09-06 1:56 ` Jim Porter 2023-09-06 2:22 ` Corwin Brust 2023-09-20 10:35 ` Protesilaos Stavrou 0 siblings, 2 replies; 31+ messages in thread From: Jim Porter @ 2023-09-06 1:56 UTC (permalink / raw) To: Stefan Kangas; +Cc: philipk, 65027, info, corwin, Stefan Monnier, Eli Zaretskii On 9/3/2023 4:18 AM, Stefan Kangas wrote: > Jim Porter <jporterbugs@gmail.com> writes: > >> In any case, if there are no objections in the next day or two, I'll merge my >> patch, and then look into whether there are any other things worth >> documenting. (For example, I'll try to turn my suggested documentation on >> package naming[1] into a patch.) >> >> [1] https://lists.gnu.org/archive/html/emacs-devel/2023-05/msg00452.html > > Was this installed? Otherwise, please go ahead. > > Your patch LGTM. In another subthread for this bug, we'd discussed making a *new* manual that discusses ELPA and/or creating packages for Emacs in general. If we want to create such a manual, I think that's the place my patch should go. However, I'm not sure what the status is on that; I have time to help out with it, but not enough time to write a whole manual myself. I CCed some of the people discussing this into this subthread too. ^ permalink raw reply [flat|nested] 31+ messages in thread
* bug#65027: 30.0.50; [PATCH] Document .elpaignore behavior in the Emacs Lisp manual 2023-09-06 1:56 ` Jim Porter @ 2023-09-06 2:22 ` Corwin Brust 2023-09-19 13:29 ` Corwin Brust 2023-09-20 10:35 ` Protesilaos Stavrou 1 sibling, 1 reply; 31+ messages in thread From: Corwin Brust @ 2023-09-06 2:22 UTC (permalink / raw) To: Jim Porter Cc: philipk, 65027, info, Stefan Kangas, Eli Zaretskii, Stefan Monnier On Tue, Sep 5, 2023 at 8:56 PM Jim Porter <jporterbugs@gmail.com> wrote: > > In another subthread for this bug, we'd discussed making a *new* manual > that discusses ELPA and/or creating packages for Emacs in general. If we > want to create such a manual, I think that's the place my patch should > go. However, I'm not sure what the status is on that; I have time to > help out with it, but not enough time to write a whole manual myself. > > I CCed some of the people discussing this into this subthread too. > I'm (still) interested in working on this. I haven't had another offline discussion on this since I last replied in. Key points I observed from that thread were (1) preference for Packaging (not ELPA) as central topic, (2) expectation that we clearly define rules for where to put things, especially WRT to moving things already within some existing manual. My thoughts are in the direction of working on a "mission statement" and outline, as next steps. I hope having an outline will help make it possible to combine efforts from several contributors, there probably are not many people with time to sit down and write a whole manual :) BTW, just in case Someone™ dies have time for this (and would find this easies to work on if left more greenfield), it won't hurt my feelings to have a "straw-dog" to discuss from, rather than starting from an outline and ground-rules, as I'm suggesting/assuming. ^ permalink raw reply [flat|nested] 31+ messages in thread
* bug#65027: 30.0.50; [PATCH] Document .elpaignore behavior in the Emacs Lisp manual 2023-09-06 2:22 ` Corwin Brust @ 2023-09-19 13:29 ` Corwin Brust 2023-09-19 13:53 ` Protesilaos Stavrou 0 siblings, 1 reply; 31+ messages in thread From: Corwin Brust @ 2023-09-19 13:29 UTC (permalink / raw) To: Jim Porter Cc: philipk, 65027, info, Stefan Kangas, Eli Zaretskii, Stefan Monnier On Tue, Sep 5, 2023 at 9:22 PM Corwin Brust <corwin@bru.st> wrote: > > I'm (still) interested in working on this. I haven't had another > offline discussion on this since I last replied in. > Prot and I have resumed the offline discussion we were having. He is catching up on a backlog of emails; I expect he will join this conversation on-list by-and-by. ^ permalink raw reply [flat|nested] 31+ messages in thread
* bug#65027: 30.0.50; [PATCH] Document .elpaignore behavior in the Emacs Lisp manual 2023-09-19 13:29 ` Corwin Brust @ 2023-09-19 13:53 ` Protesilaos Stavrou 0 siblings, 0 replies; 31+ messages in thread From: Protesilaos Stavrou @ 2023-09-19 13:53 UTC (permalink / raw) To: Corwin Brust, Jim Porter Cc: philipk, 65027, Eli Zaretskii, Stefan Kangas, Stefan Monnier > From: Corwin Brust <corwin@bru.st> > Date: Tue, 19 Sep 2023 08:29:03 -0500 > > On Tue, Sep 5, 2023 at 9:22 PM Corwin Brust <corwin@bru.st> wrote: >> >> I'm (still) interested in working on this. I haven't had another >> offline discussion on this since I last replied in. > > Prot and I have resumed the offline discussion we were having. > > He is catching up on a backlog of emails; I expect he will join this > conversation on-list by-and-by. Hello folks! I did not have electricity at home. Now I am back. Still need to read this thread though. All the best, Prot -- Protesilaos Stavrou https://protesilaos.com ^ permalink raw reply [flat|nested] 31+ messages in thread
* bug#65027: 30.0.50; [PATCH] Document .elpaignore behavior in the Emacs Lisp manual 2023-09-06 1:56 ` Jim Porter 2023-09-06 2:22 ` Corwin Brust @ 2023-09-20 10:35 ` Protesilaos Stavrou 2023-09-21 1:37 ` Stefan Kangas 1 sibling, 1 reply; 31+ messages in thread From: Protesilaos Stavrou @ 2023-09-20 10:35 UTC (permalink / raw) To: Jim Porter, Stefan Kangas Cc: corwin, philipk, 65027, Eli Zaretskii, Stefan Monnier > From: Jim Porter <jporterbugs@gmail.com> > Date: Tue, 5 Sep 2023 18:56:36 -0700 > > [... 14 lines elided] > > In another subthread for this bug, we'd discussed making a *new* manual > that discusses ELPA and/or creating packages for Emacs in general. If we > want to create such a manual, I think that's the place my patch should > go. However, I'm not sure what the status is on that; I have time to > help out with it, but not enough time to write a whole manual myself. > > I CCed some of the people discussing this into this subthread too. Sorry for the delay! I read the entire thread. I am willing to contribute towards the creation of a new manual. As Stefan Monnier noted earlier,[1] I think it is better to have it be about "Emacs packages" with relevant subsections for where those are stored and how they can be installed. How do we start? Perhaps someone can produce a draft to get things going? I am happy to volunteer towards that end. Should this be in .texi or can we do it in .org format? As always, we communicate with the maintainers before making any changes. Anything else we need to consider at this stage? -- Protesilaos Stavrou https://protesilaos.com ^ permalink raw reply [flat|nested] 31+ messages in thread
* bug#65027: 30.0.50; [PATCH] Document .elpaignore behavior in the Emacs Lisp manual 2023-09-20 10:35 ` Protesilaos Stavrou @ 2023-09-21 1:37 ` Stefan Kangas 0 siblings, 0 replies; 31+ messages in thread From: Stefan Kangas @ 2023-09-21 1:37 UTC (permalink / raw) To: Protesilaos Stavrou, Jim Porter Cc: corwin, philipk, 65027, Eli Zaretskii, Stefan Monnier Protesilaos Stavrou <info@protesilaos.com> writes: > Sorry for the delay! I read the entire thread. I am willing to > contribute towards the creation of a new manual. As Stefan Monnier > noted earlier,[1] I think it is better to have it be about "Emacs > packages" with relevant subsections for where those are stored and how > they can be installed. > > How do we start? Perhaps someone can produce a draft to get things > going? I am happy to volunteer towards that end. Sounds like a plan. Thanks for working on this. > Should this be in .texi or can we do it in .org format? We generally prefer .texi, but either way is fine for a first draft. It's not crucial at this stage, and we can always convert it to another format later. The biggest work is in writing it. ^ permalink raw reply [flat|nested] 31+ messages in thread
* bug#65027: 30.0.50; [PATCH] Document .elpaignore behavior in the Emacs Lisp manual 2023-08-03 22:02 ` Jim Porter 2023-08-03 22:41 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-08-04 5:42 ` Eli Zaretskii 1 sibling, 0 replies; 31+ messages in thread From: Eli Zaretskii @ 2023-08-04 5:42 UTC (permalink / raw) To: Jim Porter; +Cc: philipk, monnier, 65027 > Date: Thu, 3 Aug 2023 15:02:12 -0700 > Cc: Eli Zaretskii <eliz@gnu.org>, philipk@posteo.net, 65027@debbugs.gnu.org > From: Jim Porter <jporterbugs@gmail.com> > > As a general guideline for documentation, I'm thinking that anything a > package author puts in their own repository would get documented in the > Emacs Lisp manual, whereas anything that goes in the (Non)GNU ELPA > repository (e.g. in the elpa-packages file) goes in the ELPA README. > That makes intuitive sense to me as a package author at least: then the > Emacs Lisp manual would have everything I need to *prepare* my package > for eventual inclusion in ELPA. To have the best of both worlds, please have the ELisp manual mention the ELPA README file, and ELPA README file to mention specific nodes of the ELisp manual where this stuff is described. ^ permalink raw reply [flat|nested] 31+ messages in thread
* bug#65027: 30.0.50; [PATCH] Document .elpaignore behavior in the Emacs Lisp manual 2023-08-03 17:24 ` Jim Porter 2023-08-03 19:09 ` Philip Kaludercic 2023-08-03 21:21 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-08-05 1:58 ` Richard Stallman 2023-08-05 2:36 ` Corwin Brust 2023-08-05 6:43 ` Eli Zaretskii 2 siblings, 2 replies; 31+ messages in thread From: Richard Stallman @ 2023-08-05 1:58 UTC (permalink / raw) To: Jim Porter; +Cc: philipk, eliz, monnier, 65027 [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > Yeah, something more general that I've noticed is that as a package > author, the documentation for how to make a package for GNU ELPA is > split between the GNU ELPA README and the Emacs Lisp manual. It could be an improvement to merge all that documentation into one text and rewrite it for coherence and clarity. > Maybe it would make sense to put all the documentation in the Emacs Lisp > manual, That has a drawback: it would make the Emacs Lisp Reference Manual substantially bigger. Copies would be less convenient and more expensive. I think there is no need for this material to be in the Emacs Lisp Reference Manual. So I suggest making a separate short manual about adding a package to GNU ELPA. The Emacs Lisp Reference Manual can direct people to it. -- Dr Richard Stallman (https://stallman.org) Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org) ^ permalink raw reply [flat|nested] 31+ messages in thread
* bug#65027: 30.0.50; [PATCH] Document .elpaignore behavior in the Emacs Lisp manual 2023-08-05 1:58 ` Richard Stallman @ 2023-08-05 2:36 ` Corwin Brust 2023-08-05 6:03 ` Jim Porter ` (2 more replies) 2023-08-05 6:43 ` Eli Zaretskii 1 sibling, 3 replies; 31+ messages in thread From: Corwin Brust @ 2023-08-05 2:36 UTC (permalink / raw) To: rms, info; +Cc: Jim Porter, philipk, 65027, eliz, monnier On Fri, Aug 4, 2023 at 8:58 PM Richard Stallman <rms@gnu.org> wrote: > > [[[ To any NSA and FBI agents reading my email: please consider ]]] > [[[ whether defending the US Constitution against all enemies, ]]] > [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > > > Yeah, something more general that I've noticed is that as a package > > author, the documentation for how to make a package for GNU ELPA is > > split between the GNU ELPA README and the Emacs Lisp manual. > > It could be an improvement to merge all that documentation into one > text and rewrite it for coherence and clarity. I have been discussing a similar ideal with some others off list, of whom I'm tagging in (potentially sharing blame with ;) only prot. > That has a drawback: it would make the Emacs Lisp Reference Manual > substantially bigger. Copies would be less convenient and more > expensive. > > I think there is no need for this material to be in the Emacs Lisp > Reference Manual. So I suggest making a separate short manual about > adding a package to GNU ELPA. The Emacs Lisp Reference Manual can > direct people to it. My/our suggestion is to create a new manual ("ELPA: the missing manual") that should be provided with Emacs releases, with the current version available online via gnu.org. This new manual can start with some new (and/or moved, consolidated, expanded, ...) sections aimed at Emacs users wanting a deeper understanding of Emacs packaging. Following that, it can include some specifics ("best practices"?) especially for package authors, with the remainder being collected manuals for ELPA packages. A slight twist on this idea could be to frame more generally, for example "Emacs Features and Packaging" (instead of anything about ELPA). This might allow In any event, if this seems worth discussing further, I think work could begin with agreeing on the specific (and probably rather narrow) scope. I think we need, for example, to describe the criteria used to decide what goes into the proposed addition manual. We might also want to create a "rubric" (simple rule, or very simple flow chart) that helps us understand when a feature's documentation will be in the Emacs manual, the elisp manual, or this new manual, and so on, until the task beings to look ominously do-able or all volunteers are scared off >:) Prot, am I right that you (still, also) have energy for something like this? Other thoughts as you consider in the context of this thread? ^ permalink raw reply [flat|nested] 31+ messages in thread
* bug#65027: 30.0.50; [PATCH] Document .elpaignore behavior in the Emacs Lisp manual 2023-08-05 2:36 ` Corwin Brust @ 2023-08-05 6:03 ` Jim Porter 2023-08-05 6:45 ` Eli Zaretskii 2023-08-05 13:17 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors 2 siblings, 0 replies; 31+ messages in thread From: Jim Porter @ 2023-08-05 6:03 UTC (permalink / raw) To: Corwin Brust, rms, info; +Cc: philipk, eliz, monnier, 65027 On 8/4/2023 7:36 PM, Corwin Brust wrote: > On Fri, Aug 4, 2023 at 8:58 PM Richard Stallman <rms@gnu.org> wrote: >> >> I think there is no need for this material to be in the Emacs Lisp >> Reference Manual. So I suggest making a separate short manual about >> adding a package to GNU ELPA. The Emacs Lisp Reference Manual can >> direct people to it. > > My/our suggestion is to create a new manual ("ELPA: the missing > manual") that should be provided with Emacs releases, with the current > version available online via gnu.org. That makes sense to me. I'd be happy to help contribute to this new manual if others have interest in helping to share the load. ^ permalink raw reply [flat|nested] 31+ messages in thread
* bug#65027: 30.0.50; [PATCH] Document .elpaignore behavior in the Emacs Lisp manual 2023-08-05 2:36 ` Corwin Brust 2023-08-05 6:03 ` Jim Porter @ 2023-08-05 6:45 ` Eli Zaretskii 2023-08-05 13:17 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors 2 siblings, 0 replies; 31+ messages in thread From: Eli Zaretskii @ 2023-08-05 6:45 UTC (permalink / raw) To: Corwin Brust; +Cc: jporterbugs, philipk, rms, 65027, info, monnier > From: Corwin Brust <corwin@bru.st> > Date: Fri, 4 Aug 2023 21:36:45 -0500 > Cc: Jim Porter <jporterbugs@gmail.com>, philipk@posteo.net, eliz@gnu.org, > monnier@iro.umontreal.ca, 65027@debbugs.gnu.org > > My/our suggestion is to create a new manual ("ELPA: the missing > manual") that should be provided with Emacs releases, with the current > version available online via gnu.org. If this is a replacement for the ELPA README, that'd be fine. But if you intend to remove stuff from the ELisp manual into this new manual, please be sure to coordinate with me first. ^ permalink raw reply [flat|nested] 31+ messages in thread
* bug#65027: 30.0.50; [PATCH] Document .elpaignore behavior in the Emacs Lisp manual 2023-08-05 2:36 ` Corwin Brust 2023-08-05 6:03 ` Jim Porter 2023-08-05 6:45 ` Eli Zaretskii @ 2023-08-05 13:17 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors 2 siblings, 0 replies; 31+ messages in thread From: Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-08-05 13:17 UTC (permalink / raw) To: Corwin Brust; +Cc: Jim Porter, philipk, rms, 65027, info, eliz > My/our suggestion is to create a new manual ("ELPA: the missing > manual") that should be provided with Emacs releases, with the current > version available online via gnu.org. I tend to agree, and it shouldn't be about "ELPA" but about "Emacs packages". It could have a "generic" part and then specific subsections discussing details of specific cases such as ELPA tarballs, (Non)GNU ELPA, Melpa, straight, etc... Stefan ^ permalink raw reply [flat|nested] 31+ messages in thread
* bug#65027: 30.0.50; [PATCH] Document .elpaignore behavior in the Emacs Lisp manual 2023-08-05 1:58 ` Richard Stallman 2023-08-05 2:36 ` Corwin Brust @ 2023-08-05 6:43 ` Eli Zaretskii 1 sibling, 0 replies; 31+ messages in thread From: Eli Zaretskii @ 2023-08-05 6:43 UTC (permalink / raw) To: rms; +Cc: jporterbugs, philipk, monnier, 65027 > From: Richard Stallman <rms@gnu.org> > Cc: monnier@iro.umontreal.ca, eliz@gnu.org, philipk@posteo.net, > 65027@debbugs.gnu.org > Date: Fri, 04 Aug 2023 21:58:43 -0400 > > > Maybe it would make sense to put all the documentation in the Emacs Lisp > > manual, > > That has a drawback: it would make the Emacs Lisp Reference Manual > substantially bigger. Copies would be less convenient and more > expensive. I don't think there's a real danger here. The necessary additions to what is already in the ELisp manual are small. The reason the ELisp manual touches on these issues is because it describes package.el, which is a much more general facility, not limited to ELPA. The ELPA-specific stuff should not be described there, only mentioned with a reference to the ELPA README. ^ permalink raw reply [flat|nested] 31+ messages in thread
* bug#65027: 30.0.50; [PATCH] Document .elpaignore behavior in the Emacs Lisp manual 2023-08-03 4:56 bug#65027: 30.0.50; [PATCH] Document .elpaignore behavior in the Emacs Lisp manual Jim Porter 2023-08-03 9:02 ` Eli Zaretskii @ 2024-01-10 21:49 ` Stefan Kangas 2024-01-11 19:35 ` Jim Porter [not found] ` <87v8802yrp.fsf@protesilaos.com> 1 sibling, 2 replies; 31+ messages in thread From: Stefan Kangas @ 2024-01-10 21:49 UTC (permalink / raw) To: Jim Porter; +Cc: philipk, corwin, monnier, info, 65027 Jim Porter <jporterbugs@gmail.com> writes: > X-Debbugs-Cc: philipk@posteo.net > > From the discussion in bug#64985, Eli mentioned that .elpaignore wasn't > documented. (It turns out it's mentioned briefly in the GNU ELPA README, but > that's the only place I could find.) Here's a small patch to document this in > the Package section of the Emacs Lisp manual. > > This is just a first pass at documenting this feature, so I'm happy to add > further details if anyone thinks it's warranted. There was talk in this bug report about writing a new "package manual", and Protesilaos volunteered to write a first draft. But while we wait for that work to complete, is there any reason not to install the below patch? Because we currently don't have any documentation for .elpaignore, and it's kind of frustrating to have to tell people that it exists over and over. Thoughts/objections? Thanks in advance. > From a5dc5f63003aea4bda4f382ec46c0556edb14f1a Mon Sep 17 00:00:00 2001 > From: Jim Porter <jporterbugs@gmail.com> > Date: Wed, 2 Aug 2023 21:51:18 -0700 > Subject: [PATCH] * doc/lispref/package.texi (Multi-file Packages): Document > ".elpaignore". > > --- > doc/lispref/package.texi | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/doc/lispref/package.texi b/doc/lispref/package.texi > index 2952e7dfcfc..ce29b4be72a 100644 > --- a/doc/lispref/package.texi > +++ b/doc/lispref/package.texi > @@ -284,6 +284,13 @@ Multi-file Packages > (expand-file-name file superfrobnicator-base)) > @end smallexample > > + If your project contains files that you don't wish to distribute to > +users (e.g.@: regression tests), you can add them to an > +@file{.elpaignore} file. In this file, each line lists a file or > +wildcard matching files to ignore when producing your package's tar > +file on ELPA. (ELPA will pass this file to @command{tar} with the > +@code{-X} option.) > + > @node Package Archives > @section Creating and Maintaining Package Archives > @cindex package archive ^ permalink raw reply [flat|nested] 31+ messages in thread
* bug#65027: 30.0.50; [PATCH] Document .elpaignore behavior in the Emacs Lisp manual 2024-01-10 21:49 ` Stefan Kangas @ 2024-01-11 19:35 ` Jim Porter 2024-01-27 20:34 ` Jim Porter [not found] ` <87v8802yrp.fsf@protesilaos.com> 1 sibling, 1 reply; 31+ messages in thread From: Jim Porter @ 2024-01-11 19:35 UTC (permalink / raw) To: Stefan Kangas; +Cc: 65027, philipk, corwin, monnier, info On 1/10/2024 1:49 PM, Stefan Kangas wrote: > But while we wait for that work to complete, is there any reason not to > install the below patch? Because we currently don't have any > documentation for .elpaignore, and it's kind of frustrating to have to > tell people that it exists over and over. > > Thoughts/objections? Thanks in advance. Makes sense to me. If others agree, I can merge my patch. ^ permalink raw reply [flat|nested] 31+ messages in thread
* bug#65027: 30.0.50; [PATCH] Document .elpaignore behavior in the Emacs Lisp manual 2024-01-11 19:35 ` Jim Porter @ 2024-01-27 20:34 ` Jim Porter 2024-01-28 2:42 ` Stefan Kangas 2024-01-28 5:46 ` Eli Zaretskii 0 siblings, 2 replies; 31+ messages in thread From: Jim Porter @ 2024-01-27 20:34 UTC (permalink / raw) To: Stefan Kangas; +Cc: philipk, corwin, monnier, info, 65027 On 1/11/2024 11:35 AM, Jim Porter wrote: > On 1/10/2024 1:49 PM, Stefan Kangas wrote: >> But while we wait for that work to complete, is there any reason not to >> install the below patch? Because we currently don't have any >> documentation for .elpaignore, and it's kind of frustrating to have to >> tell people that it exists over and over. >> >> Thoughts/objections? Thanks in advance. > > Makes sense to me. If others agree, I can merge my patch. Since no one has had any further comments in the last couple weeks, I've now merged my patch to master as 744a10a4d72. Of course, we can work on a more elaborate packaging manual in the future. I'll leave this bug open for now to discuss that, but if maintainers prefer, we could always close this and open a new bug specifically about the packaging manual side of things. ^ permalink raw reply [flat|nested] 31+ messages in thread
* bug#65027: 30.0.50; [PATCH] Document .elpaignore behavior in the Emacs Lisp manual 2024-01-27 20:34 ` Jim Porter @ 2024-01-28 2:42 ` Stefan Kangas 2024-01-28 5:46 ` Eli Zaretskii 1 sibling, 0 replies; 31+ messages in thread From: Stefan Kangas @ 2024-01-28 2:42 UTC (permalink / raw) To: Jim Porter; +Cc: philipk, corwin, monnier, info, 65027 Jim Porter <jporterbugs@gmail.com> writes: > Since no one has had any further comments in the last couple weeks, I've > now merged my patch to master as 744a10a4d72. Of course, we can work on > a more elaborate packaging manual in the future. I'll leave this bug > open for now to discuss that, but if maintainers prefer, we could always > close this and open a new bug specifically about the packaging manual > side of things. Thanks. I think a new bug is better, indeed: It takes significant effort to sift through a bug like this one to uncover that it's not, in fact, about "[PATCH] Document .elpaignore behavior in the Emacs Lisp manual", but about some other related yet distinct change. It's fine to have one or two such bugs, but we have many hundreds. This makes using and maintaining the bug tracker harder than it needs to be. ^ permalink raw reply [flat|nested] 31+ messages in thread
* bug#65027: 30.0.50; [PATCH] Document .elpaignore behavior in the Emacs Lisp manual 2024-01-27 20:34 ` Jim Porter 2024-01-28 2:42 ` Stefan Kangas @ 2024-01-28 5:46 ` Eli Zaretskii 2024-01-28 5:49 ` Stefan Kangas 1 sibling, 1 reply; 31+ messages in thread From: Eli Zaretskii @ 2024-01-28 5:46 UTC (permalink / raw) To: Jim Porter; +Cc: philipk, 65027, info, corwin, stefankangas, monnier > Cc: philipk@posteo.net, corwin@bru.st, monnier@iro.umontreal.ca, > info@protesilaos.com, 65027@debbugs.gnu.org > Date: Sat, 27 Jan 2024 12:34:17 -0800 > From: Jim Porter <jporterbugs@gmail.com> > > On 1/11/2024 11:35 AM, Jim Porter wrote: > > On 1/10/2024 1:49 PM, Stefan Kangas wrote: > >> But while we wait for that work to complete, is there any reason not to > >> install the below patch? Because we currently don't have any > >> documentation for .elpaignore, and it's kind of frustrating to have to > >> tell people that it exists over and over. > >> > >> Thoughts/objections? Thanks in advance. > > > > Makes sense to me. If others agree, I can merge my patch. > > Since no one has had any further comments in the last couple weeks, I've > now merged my patch to master as 744a10a4d72. Thanks, I fixed it slightly. Btw, it is a bit strange in my eyes that this chapter talks about package organization conventions on ELPA without ever mentioning that those conventions are specific for ELPA, nor even describing what ELPA is until a later section. Perhaps the organization of the chapter should be rethought, given that it no longer describes only package.el, but also the conventions and requirements for submitting packages to ELPA. ^ permalink raw reply [flat|nested] 31+ messages in thread
* bug#65027: 30.0.50; [PATCH] Document .elpaignore behavior in the Emacs Lisp manual 2024-01-28 5:46 ` Eli Zaretskii @ 2024-01-28 5:49 ` Stefan Kangas 2024-01-28 7:08 ` Eli Zaretskii 0 siblings, 1 reply; 31+ messages in thread From: Stefan Kangas @ 2024-01-28 5:49 UTC (permalink / raw) To: Eli Zaretskii, Jim Porter; +Cc: 65027, philipk, corwin, monnier, info Eli Zaretskii <eliz@gnu.org> writes: > Thanks, I fixed it slightly. I cherry-picked it to emacs-29, so perhaps the fix should be cherry-picked there too. It seemed more natural for a documentation fix to be on the release branch. ^ permalink raw reply [flat|nested] 31+ messages in thread
* bug#65027: 30.0.50; [PATCH] Document .elpaignore behavior in the Emacs Lisp manual 2024-01-28 5:49 ` Stefan Kangas @ 2024-01-28 7:08 ` Eli Zaretskii 0 siblings, 0 replies; 31+ messages in thread From: Eli Zaretskii @ 2024-01-28 7:08 UTC (permalink / raw) To: Stefan Kangas; +Cc: jporterbugs, philipk, 65027, info, corwin, monnier > From: Stefan Kangas <stefankangas@gmail.com> > Date: Sat, 27 Jan 2024 21:49:23 -0800 > Cc: philipk@posteo.net, corwin@bru.st, monnier@iro.umontreal.ca, > info@protesilaos.com, 65027@debbugs.gnu.org > > Eli Zaretskii <eliz@gnu.org> writes: > > > Thanks, I fixed it slightly. > > I cherry-picked it to emacs-29, so perhaps the fix should be > cherry-picked there too. It seemed more natural for a documentation fix > to be on the release branch. I wasn't sure the description is valid for Emacs 29. If it is, then yes, please cherry-pick the fix as well. ^ permalink raw reply [flat|nested] 31+ messages in thread
[parent not found: <87v8802yrp.fsf@protesilaos.com>]
* bug#65027: 30.0.50; [PATCH] Document .elpaignore behavior in the Emacs Lisp manual [not found] ` <87v8802yrp.fsf@protesilaos.com> @ 2024-01-11 19:38 ` Stefan Kangas 0 siblings, 0 replies; 31+ messages in thread From: Stefan Kangas @ 2024-01-11 19:38 UTC (permalink / raw) To: Protesilaos Stavrou, Jim Porter; +Cc: philipk, corwin, monnier, 65027 Protesilaos Stavrou <info@protesilaos.com> writes: > I still want to do it, but there have been two major changes ever > since: > > 1. I have limited electricity, so I do not have as much computer time as > I want. > > 2. I have been suffering on and off from pain in my arms, which limits > how much I type. Thank you for persevering despite these difficulties. We are not in any kind of rush, and your contributions are appreciated. ^ permalink raw reply [flat|nested] 31+ messages in thread
end of thread, other threads:[~2024-01-28 7:08 UTC | newest] Thread overview: 31+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2023-08-03 4:56 bug#65027: 30.0.50; [PATCH] Document .elpaignore behavior in the Emacs Lisp manual Jim Porter 2023-08-03 9:02 ` Eli Zaretskii 2023-08-03 13:36 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors 2023-08-03 17:24 ` Jim Porter 2023-08-03 19:09 ` Philip Kaludercic 2023-08-03 21:21 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors 2023-08-03 22:02 ` Jim Porter 2023-08-03 22:41 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors 2023-08-04 3:11 ` Jim Porter 2023-09-03 11:18 ` Stefan Kangas 2023-09-06 1:56 ` Jim Porter 2023-09-06 2:22 ` Corwin Brust 2023-09-19 13:29 ` Corwin Brust 2023-09-19 13:53 ` Protesilaos Stavrou 2023-09-20 10:35 ` Protesilaos Stavrou 2023-09-21 1:37 ` Stefan Kangas 2023-08-04 5:42 ` Eli Zaretskii 2023-08-05 1:58 ` Richard Stallman 2023-08-05 2:36 ` Corwin Brust 2023-08-05 6:03 ` Jim Porter 2023-08-05 6:45 ` Eli Zaretskii 2023-08-05 13:17 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors 2023-08-05 6:43 ` Eli Zaretskii 2024-01-10 21:49 ` Stefan Kangas 2024-01-11 19:35 ` Jim Porter 2024-01-27 20:34 ` Jim Porter 2024-01-28 2:42 ` Stefan Kangas 2024-01-28 5:46 ` Eli Zaretskii 2024-01-28 5:49 ` Stefan Kangas 2024-01-28 7:08 ` Eli Zaretskii [not found] ` <87v8802yrp.fsf@protesilaos.com> 2024-01-11 19:38 ` Stefan Kangas
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.