unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Michael Albinus <michael.albinus@gmx.de>
Cc: "Basil L. Contovounesios" <contovob@tcd.ie>, emacs-devel@gnu.org
Subject: Re: master 5183123: Add Tramp recompilation
Date: Fri, 23 Apr 2021 16:47:15 -0400	[thread overview]
Message-ID: <jwvbla468od.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87eef0n4ce.fsf@gmx.de> (Michael Albinus's message of "Fri, 23 Apr 2021 22:17:05 +0200")

>> I think we should treat this is a bug in package.el: we already have
>> code to try and avoid such problems, so apparently it doesn't do its job
>> in this case.
> The point is that simply unloading Tramp didn't work.

The way package.el tries to deal with it currently is not by unloading
the package (which we consider as too risky) but by force-loading the
new files over the old ones.  E.g. we load ~/.emacs.d/elpa/.../tramp-compat.el
before starting the compilation if we see that `tramp-compat` is in the
load-history.

I recommend you open a bug report for the current problem, and we can
try and figure out what's the root cause of the miscompilation.
That will help us figure out how to better avoid such problems.

> That's why I start a new Emacs instance via "emacs -Q" for
> recompilation. Maybe we could use this approach in package.el?

The `async` package provides such a solution indeed.  It'd be good to
integrate it into Emacs proper.

> I'll happily remove tramp-recompile-elpa from Tramp once recompilation
> is fixed in package.el. But since Tramp is backwards compatible (down to
> Emacs 25.1 ATM), this will take years.

I'm not bothered by the existence of `tramp-recompile-elpa` (interactive
or not).  I just saw that "a lot of effort" was expanded trying to make
it work smoothly whereas I thought we should spend more time making
it unnecessary.

>>>> [ Also, I don't see why we need `tramp-recompile-elpa`.
>>>>   I do see a need for `M-x package-recompile`, OTOH.  ]
>>> D'accord.
>> Patches warmly welcome,
> I'll have a look at it. No promise for a working patch, of course.

If you take the first step, I can probably help take the second.


        Stefan




  reply	other threads:[~2021-04-23 20:47 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20210419095256.30298.23862@vcs0.savannah.gnu.org>
     [not found] ` <20210419095259.0651220FD4@vcs0.savannah.gnu.org>
2021-04-23 16:23   ` master 5183123: Add Tramp recompilation Basil L. Contovounesios
2021-04-23 17:00     ` Stefan Monnier
2021-04-23 18:02       ` Michael Albinus
2021-04-23 20:02         ` Stefan Monnier
2021-04-23 20:17           ` Michael Albinus
2021-04-23 20:47             ` Stefan Monnier [this message]
2021-04-25 13:08               ` Michael Albinus
2021-04-23 17:58     ` Michael Albinus

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=jwvbla468od.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=contovob@tcd.ie \
    --cc=emacs-devel@gnu.org \
    --cc=michael.albinus@gmx.de \
    /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).