unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Sam Steingold <sds@gnu.org>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 19146@debbugs.gnu.org
Subject: bug#19146: 25.0.50; RFE: non-interactive package upgrade
Date: Mon, 16 May 2022 10:18:17 -0400	[thread overview]
Message-ID: <CAFsbZ7YjgHMMnGXkByaoSE0Odcjk=R4WwRe1n-e9HVVR_GWx+g@mail.gmail.com> (raw)
In-Reply-To: <87mtfn1o7p.fsf@gnus.org>

package.el is now broken.
"emacs" fails on startup with `Wrong type argument: stringp, nil`.
"emacs -q" works, when I load `package-quickstart.el` manually, I get
`(void-variable package-activated-list)`.
When I manually do `M-x package-initialize`, I can compile and load
`package-quickstart.el`.

When I try to evaluate .emacs, `load-path` does _not_ contain any
paths to any installed package.

Also, `emacs --batch --load package -funcall package-update-all`
prints `No packages to update` while interactively it _does_ find
packages to update.
I suspect that this is because `--batch` implies `-q` which means that
batch emacs does not know about my local packages?

On Wed, 11 May 2022 at 22:25, Lars Ingebrigtsen <larsi@gnus.org> wrote:
>
> Sam Steingold <sds@gnu.org> writes:
>
> > Thank you!
> > So, does
> > emacs --funcall package-update-all
> > work now?
>
> It defaults to querying, so you should say --eval '(package-update-all t)'.
>
> But I haven't actually tested.
>
> --
> (domestic pets only, the antidote for overdose, milk.)
>    bloggy blog: http://lars.ingebrigtsen.no



-- 
Sam Steingold <http://sds.podval.org> <http://www.childpsy.net>
<http://steingoldpsychology.com>





  reply	other threads:[~2022-05-16 14:18 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-21 19:23 bug#19146: 25.0.50; RFE: non-interactive package upgrade Sam Steingold
2022-05-12  1:59 ` Lars Ingebrigtsen
2022-05-12  2:23   ` Sam Steingold
2022-05-12  2:25     ` Lars Ingebrigtsen
2022-05-16 14:18       ` Sam Steingold [this message]
2022-05-17  9:08         ` Lars Ingebrigtsen

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='CAFsbZ7YjgHMMnGXkByaoSE0Odcjk=R4WwRe1n-e9HVVR_GWx+g@mail.gmail.com' \
    --to=sds@gnu.org \
    --cc=19146@debbugs.gnu.org \
    --cc=larsi@gnus.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 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).