all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Kangas <stefankangas@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Emacs developers <emacs-devel@gnu.org>
Subject: Re: [Emacs-diffs] master 4449301: * etc/NEWS: Improve documentation of 'package-initialize'.
Date: Mon, 18 Nov 2019 15:58:06 +0100	[thread overview]
Message-ID: <CADwFkm=uVvRwB8gnHgZJ0uxJfLNuQ-Bye3Gs82WK+2X97CaEzw@mail.gmail.com> (raw)
In-Reply-To: <jwvsgmtcddu.fsf-monnier+emacs@gnu.org>

Stefan Monnier <monnier@iro.umontreal.ca> writes:

> I'm not sure if there's much harm in keeping it as a defcustom, so I'll
> let someone else decide whether we should change it.  But if we do want
> to change it, the patch looks OK to me in this respect.

OK, I must have misunderstood you above and believed you agreed that
it should be changed into a defvar.

Thinking a bit more about this, maybe we should add some general
machinery to specify that particular variables gets placed in the
early init file by default?  It could be a new property ':early-init
t', where Emacs inserts these particular variables into the early init
file instead of the init file.  Perhaps we could also add a new
variable 'custom-file-early' analogous to 'custom-file'.  Would that
make sense?

> > I've also added documentation to package-load-list and
> > package-user-dir to explain the above quirks.
>
> But this doesn't mention the fact that it still works if they use
> `package-quickstart`.

Please expect a new patch once I find the time to work on it.

> > Perhaps it would make sense to create a new node "initialization of
> > packages" which could describe all this.
>
> Yes.  Maybe it should be a bit more general and include discussion of
> customize settings.  IOW it could talk about dependencies and ordering
> between package.el, custom.el, and "manual Elisp settings".

Agreed, to make it more general was my thinking too.  I'll get to work
on such a section, which I'll add in packages.texi and name
"Initialization of Packages".

> > 2. Should package-quickstart have a :set attribute with a value of
> > 'package-quickstart-refresh?
>
> I don't think so: the refresh should happen when the set of
> installed/activated packages changes, whereas what you suggest would
> cause a refresh to happen at every Emacs startup.
>
> But I guess it does deserve a :set function, which should take care to
> run `package-quickstart-refresh` if there's no quickstart file yet, or
> to delete the quickstart file when set to nil (in both cases it should
> maybe prompt the user before actually doing it?).

Makes sense.  I could probably work on that too, if no one beats me to
it.  I haven't thought about the prompting, so I don't have an opinion
about that yet.

Best regards,
Stefan Kangas



  reply	other threads:[~2019-11-18 14:58 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20191022021600.2389.91268@vcs0.savannah.gnu.org>
     [not found] ` <20191022021602.B41B3209DE@vcs0.savannah.gnu.org>
2019-10-22 12:28   ` [Emacs-diffs] master 4449301: * etc/NEWS: Improve documentation of 'package-initialize' Stefan Monnier
2019-10-23 12:12     ` Stefan Kangas
2019-10-23 12:49       ` Stefan Monnier
2019-11-02  4:57         ` Stefan Kangas
2019-11-04 17:53           ` Stefan Monnier
2019-11-11 16:07             ` Stefan Kangas
2019-11-12 15:50               ` Stefan Monnier
2019-11-18 14:58                 ` Stefan Kangas [this message]
2019-11-14 11:16               ` Eli Zaretskii
2019-11-18 15:05                 ` Stefan Kangas
2019-11-02  3:34       ` Stefan Kangas

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='CADwFkm=uVvRwB8gnHgZJ0uxJfLNuQ-Bye3Gs82WK+2X97CaEzw@mail.gmail.com' \
    --to=stefankangas@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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.