unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Philip Kaludercic <philipk@posteo.net>
To: Stefan Kangas <stefankangas@gmail.com>
Cc: Payas Relekar <relekarpayas@gmail.com>,
	 Stefan Monnier <monnier@iro.umontreal.ca>,
	 emacs-devel <emacs-devel@gnu.org>,  John Wiegley <johnw@gnu.org>
Subject: Re: Adding use-package to core
Date: Sat, 12 Nov 2022 14:04:42 +0000	[thread overview]
Message-ID: <874jv4z2th.fsf@posteo.net> (raw)
In-Reply-To: <CADwFkmkdipH-0n+-_YPrORWCuNgAcS+xF4KA52XLb-WTgD8Y+g@mail.gmail.com> (Stefan Kangas's message of "Sat, 12 Nov 2022 02:17:08 -0800")

Stefan Kangas <stefankangas@gmail.com> writes:

> Philip Kaludercic <philipk@posteo.net> writes:
>
>> Payas and I can up with the following list
>>
>>   1. Get use-package in ELPA
>>   2. Complete all documentation
>>   3. Prepare documentation in texinfo
>>      Will cross that bridge when 2 is done.
>>   4. Add all relevant files to emacs.git
>>      TBD when 3 is done.
>>   5. Ensure everything loads properly
>>
>> The first point has been done, but hasn't been finalised.
>
> I didn't follow the discussion, but it seems like adding it to GNU ELPA
> is being worked on.  That is good.

Actually it is done, but I advised Payas to postpone it until the
documentation is ready, which makes the package more useful.  Even if
use-package isn't added in time for 29, working on the issue would still
be useful for the ELPA initiative.

> But I think one question remains, unless I missed some important part of
> the discussion (and please forgive me if I did):

(None of this was discussed, to my recollection)

> We need to figure out how development will proceed after adding it to
> emacs.git.  I see three options:
>
> 1. Development will continue as before, in the old repository and forge
>    (currently GitHub).  This case is different from Eglot, and AFAIU
>    more like cc-mode, org-mode (or previously Gnus):
>
>    - Development mainly takes place externally.
>    - When a new version of use-package is released, it is manually
>      synched (a.k.a. copied) to emacs.git and committed as basically
>      "new version".  [So to read the full git log, one would need to
>      clone use-package.git -- we don't preserve it.]
>    - Someone needs to be in charge of (presumably manually) synching
>      changes in emacs.git back to use-package.git.
>
> 2. Development moves to emacs.git wholesale, along the same lines as we
>    did with eglot.  This would take more work, and I guess collaboration
>    and active interest from John.
>
> 3. We wait until we can include GNU ELPA packages in the Emacs
>    distribution.  AFAIK, this is not actively worked on, and would in
>    practice mean that we just wait until someone steps up to volunteer
>    for that (i.e. we effectively do nothing, for now).
>
> On balance, the first option (1) seems to me the best one here, as
> use-package development is already quite established externally and it
> seems smart to leverage that existing community to our advantage.  The
> main advantage we are looking for here is to ship use-package with
> Emacs, and we already get that with option 1.

FWIW I agree, and think this has worked well enough for a number of
larger packages (another example are the Modus Themes).  It is sad that
the revision history is broken, but that is a limitation of Git IMO.

> Perhaps, in this case, it also doesn't make sense to make use-package
> into a :core package.  We would then just need to worry about synching
> the latest version of use-package to emacs.git before releasing a new
> version of Emacs.  We would not have to update it all the time just to
> get it released on GNU ELPA.

I cannot evaluate this, but isn't use-package a relatively stable
package, that is mostly being bug-fixed?  There really aren't that many
new features being added all the time, so this might not be that
important.  Or am I mistaken?

> I've CC:ed John in case he has anything to add.
>
>>     Take a look at use-package.texi in the use-package repository.  There
>>     are currently two TODO that ought to be addressed.  And as the file is
>>     generated, the texinfo markup is probably not as idiomatic as it ought
>>     to be.  There are at least a few instances where @code is used instead
>>     of @kbd, @key or @var.  @ref where @xref/@pxref might be better.  Content-wise
>>     a few sections such as how to install the package will be outdated, and
>>     I'd rephrase the sections that mention MELPA to use ELPA examples.  I
>>     also notice that the spacing is inconsistent, and one should try to keep
>>     ensure that each full stop is followed by two spaces.
>
> Agreed.
>
>> My worry here are the TODO sections -- they either have to be removed or
>> expanded:
>>
>> --8<---------------cut here---------------start------------->8---
>> @node Getting Started
>> @chapter Getting Started
>>
>> TODO@. For now, see @code{README.md}.
>> --8<---------------cut here---------------end--------------->8---
>>
>> If the manual is pointing to the README, we might just have to convert
>> the Markdown document to Texi and clean it up.  My hunch is that the
>> README isn't written like a good manual, so it won't be that easy.
>>
>> ... On the other hand, if this TODO really just wants the "Getting
>> Started" section from the README, this should be trivial.  All one would
>> need is to clean up the following that I quickly converted using Pandoc:
>
> I think we should be able to just use the section "Getting started" from
> README.md.  I think we can just comment out the sections
> "Issues/Requests" and "Debugging Tools" until they are actually written.

Someone has to make that choice, and I am fine if you are the one who
decides to do so.

> However, the documentation seems to be currently written in Org-mode,
> from where it is exported using Hugo[1] to a website:
>
>     https://jwiegley.github.io/use-package/getting-started/
>
> If it is important to continue doing that, I think we should work with
> the org-mode sources rather than the texinfo ones.  It would be useful
> if John could let us know if he has any preferences in this regard.

No, we have recently decided to scrap that documentation source in
favour of the documentation generated on elpa.gnu.org -- that is if I
understood everything correctly.

> As for the formatting issues in the org->texinfo conversion, I believe
> that Org-mode has largely solved them.  With some luck, it should be a
> small matter of imitating what they did.  In any case, it should be
> possible to find solutions and/or workarounds.

Really?  How does Org-mode distinguish between @key, @kbd, @code and
@var?

> So all in all, the documentation will take some work, but nothing too
> crazy.

If you think so, that is great.

> The harder job going forward will be keeping use-package.{org,texi}
> up-to-date with README.md, if that will continue to be an important
> source of documentation.  Perhaps README.md should be restricted in
> scope to make that job easier.

I think this is a good idea in general.  Long READMEs are easy to get
lost in.  If a file asks you to read it, then it should at the very
least be kind enough to keep it short and only focus on pointing you to
the relevant information, that would ideally be found somewhere else.



  reply	other threads:[~2022-11-12 14:04 UTC|newest]

Thread overview: 118+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-25 12:06 [ELPA] New package: use-package Payas Relekar
2022-10-25 14:14 ` Philip Kaludercic
2022-10-25 14:34   ` Payas Relekar
2022-10-25 16:09     ` Philip Kaludercic
2022-10-26 19:57     ` John Wiegley
2022-10-27  3:46       ` Payas Relekar
2022-10-27  5:25         ` Payas Relekar
     [not found]         ` <jwv35b92ohk.fsf-monnier+emacs@gnu.org>
     [not found]           ` <87v8o52mkn.fsf@gmail.com>
     [not found]             ` <87v8o5w2c1.fsf@posteo.net>
     [not found]               ` <jwvfsf9qbe4.fsf-monnier+emacs@gnu.org>
     [not found]                 ` <877d0kbkfm.fsf@gmail.com>
     [not found]                   ` <jwv8rl0nmb1.fsf-monnier+emacs@gnu.org>
     [not found]                     ` <875yg4144y.fsf@gmail.com>
     [not found]                       ` <jwvczablieq.fsf-monnier+emacs@gnu.org>
     [not found]                         ` <87o7tv16xc.fsf@posteo.net>
     [not found]                           ` <jwvmt9eitgd.fsf-monnier+emacs@gnu.org>
     [not found]                             ` <87wn8i36v6.fsf@gmail.com>
     [not found]                               ` <jwva65eef2q.fsf-monnier+emacs@gnu.org>
     [not found]                                 ` <871qqqpabk.fsf@posteo.net>
2022-10-30  4:13                                   ` Payas Relekar
     [not found]                         ` <87h6zmj451.fsf@gmail.com>
     [not found]                           ` <5EE58F68-8B9E-4DE6-BA20-3A88FFDA6528@posteo.net>
     [not found]                             ` <jwvh6zmit8b.fsf-monnier+emacs@gnu.org>
     [not found]                               ` <87sfj636pd.fsf@gmail.com>
     [not found]                                 ` <jwv4jvmeewq.fsf-monnier+emacs@gnu.org>
2022-10-29 17:23                                   ` Payas Relekar
2022-10-29 17:35                                     ` Stefan Monnier
     [not found]                               ` <871qqkjwjj.fsf@gmail.com>
2022-11-03  8:06                                 ` Payas Relekar
     [not found]                                 ` <jwvr0ykw2ac.fsf-monnier+emacs@gnu.org>
2022-11-03 16:42                                   ` Payas Relekar
2022-11-03 16:57                                     ` Philip Kaludercic
2022-11-03 16:59                                       ` Payas Relekar
2022-11-03 17:15                                         ` Philip Kaludercic
2022-11-04 18:24                                           ` John Wiegley
2022-11-04 22:03                                             ` Philip Kaludercic
2022-11-05  8:06                                               ` Payas Relekar
2022-11-05  8:33                                                 ` Philip Kaludercic
2022-11-05  8:45                                                   ` Payas Relekar
2022-11-05  9:37                                                     ` Philip Kaludercic
2022-11-05 10:13                                                       ` Payas Relekar
2022-11-05 10:36                                                         ` Philip Kaludercic
2022-11-05 11:29                                                           ` Payas Relekar
2022-11-05 11:36                                                             ` Philip Kaludercic
2022-11-12  5:42                                                         ` Adding use-package to core Stefan Kangas
2022-11-12  7:25                                                           ` Philip Kaludercic
2022-11-12 10:17                                                             ` Stefan Kangas
2022-11-12 14:04                                                               ` Philip Kaludercic [this message]
2022-11-12 15:38                                                                 ` Stefan Kangas
2022-11-12 15:46                                                                   ` Philip Kaludercic
2022-11-12 15:53                                                                     ` Payas Relekar
2022-11-12 16:33                                                                       ` Philip Kaludercic
2022-11-13  4:43                                                                       ` John Wiegley
2022-11-13  5:25                                                                         ` Stefan Kangas
2022-11-13  7:07                                                                           ` Philip Kaludercic
2022-11-13  7:31                                                                             ` Eli Zaretskii
2022-11-13 14:09                                                                             ` Stefan Kangas
2022-11-13 15:22                                                                               ` Philip Kaludercic
2022-11-13 15:42                                                                                 ` Stefan Kangas
2022-11-15 17:25                                                                             ` Philip Kaludercic
2022-11-16  4:17                                                                               ` Stefan Kangas
2022-11-16  7:59                                                                                 ` Philip Kaludercic
2022-11-03 17:22                                     ` [ELPA] New package: use-package Stefan Monnier
2022-10-25 15:37 ` Stefan Monnier
2022-10-25 15:45   ` Payas Relekar
2022-10-25 16:50     ` Stefan Monnier
  -- strict thread matches above, loose matches on Subject: below --
2022-11-13  7:14 Adding use-package to core Payas Relekar
2022-11-13 11:55 Payas Relekar
2022-11-13 17:31 ` xenodasein--- via Emacs development discussions.
2022-11-13 17:40   ` Philip Kaludercic
2022-11-13 18:05   ` Stefan Kangas
2022-11-13 18:42     ` xenodasein--- via Emacs development discussions.
2022-11-13 18:24 ` John Wiegley
2022-11-13 16:11 xenodasein--- via Emacs development discussions.
2022-11-13 16:48 ` Eli Zaretskii
2022-11-13 17:53   ` John Wiegley
2022-11-13 18:13     ` Eli Zaretskii
2022-11-13 18:45       ` John Wiegley
2022-11-13 18:05 ` Stefan Kangas
     [not found] ` <838rkels13.fsf@gnu.org-NGltIw7----9>
2022-11-13 18:12   ` xenodasein--- via Emacs development discussions.
2022-11-13 18:22     ` Stefan Kangas
2022-11-13 18:31     ` Eli Zaretskii
2022-11-13 19:19       ` xenodasein--- via Emacs development discussions.
2022-11-13 20:08         ` Eli Zaretskii
2022-11-13 18:46     ` John Wiegley
2022-11-13 19:02       ` xenodasein--- via Emacs development discussions.
2022-11-13 19:48         ` John Wiegley
2022-11-13 20:04         ` Eli Zaretskii
2022-11-14 10:32           ` xenodasein--- via Emacs development discussions.
2022-11-14 13:30             ` Eli Zaretskii
2022-11-14  0:27 ` Po Lu
2022-11-14 10:12   ` xenodasein--- via Emacs development discussions.
2022-11-14 10:47     ` Po Lu
2022-11-14 11:52       ` xenodasein--- via Emacs development discussions.
2022-11-14 12:19         ` Po Lu
2022-11-15 15:39           ` Michael Albinus
2022-11-14 13:54         ` Eli Zaretskii
2022-11-14 14:47           ` xenodasein--- via Emacs development discussions.
2022-11-14 17:39             ` Eli Zaretskii
2022-11-15 15:38               ` xenodasein--- via Emacs development discussions.
2022-11-15 19:22                 ` Eli Zaretskii
2022-11-18 19:29   ` Sean Whitton
2022-11-18 19:33     ` Philip Kaludercic
2022-11-18 19:42     ` Eli Zaretskii
2022-11-18 20:43       ` Philip Kaludercic
2022-11-19  7:12         ` Eli Zaretskii
2022-11-19  7:33           ` Philip Kaludercic
2022-11-19  8:04             ` Eli Zaretskii
2022-11-19 10:09               ` Philip Kaludercic
2022-11-19 10:31                 ` Eli Zaretskii
2022-11-19 11:02                   ` Philip Kaludercic
2022-11-19 11:15                     ` Stefan Kangas
2022-11-19 11:58                     ` Eli Zaretskii
2022-11-19 12:15                       ` Philip Kaludercic
2022-11-19 15:28               ` Stefan Monnier
2022-11-19 15:36                 ` Philip Kaludercic
2022-11-19 15:46                 ` Eli Zaretskii
2022-11-19 15:26           ` Stefan Monnier
2022-11-16  8:28 Payas Relekar
2022-11-16  9:30 ` Stefan Kangas
2022-11-16 13:35 ` Eli Zaretskii
2022-11-16 14:18 Payas Relekar
2022-11-16 14:52 ` Eli Zaretskii
2022-11-16 19:35 ` John Wiegley
2022-11-16 15:29 Payas Relekar
2022-11-16 16:04 ` Philip Kaludercic
2022-11-16 16:51 ` Eli Zaretskii
2022-11-16 17:01   ` Philip Kaludercic
2022-11-16 19:29     ` Eli Zaretskii
2022-11-17  0:33       ` Stefan Kangas
2022-11-17  6:40         ` Eli Zaretskii
2022-11-17  7:17           ` Stefan Kangas
2022-11-17  7:24             ` Payas Relekar
2022-11-17 16:18               ` John Wiegley
2022-11-17  7:33             ` Eli Zaretskii
2022-11-17  7:58               ` Stefan Kangas
2022-11-18  0:32 Payas Relekar

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=874jv4z2th.fsf@posteo.net \
    --to=philipk@posteo.net \
    --cc=emacs-devel@gnu.org \
    --cc=johnw@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=relekarpayas@gmail.com \
    --cc=stefankangas@gmail.com \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).