emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Elpa packages and macro dependencies.


From: Stefan Monnier
Subject: Re: Elpa packages and macro dependencies.
Date: Sat, 18 Oct 2014 17:41:11 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

>> > Before upgrading a package, package.el could check if the package
>> > is already loaded and then force-reload it after the installation.
>> The question is how to do the "force-reload".  Once we know how to do
>> that, there are various options as to when to do this force-reload, and
>> I think this is an easier problem.
> Just calling (load "file") is what I had in mind.
> It's enough to redefine macros, which are the biggest issue IMO.

There are some issues to deal with:
- We shouldn't load "file" if it's not already loaded.
- Packages can include several files, so we have to figure out the set
  of files to load and (here's the rub) the order in which to load them.

> It won't redefine defcustom/var, but I'm not even convinced that it would
> be a good idea to redefine them.

It can be important in some cases, but admittedly, it's not clear how to
do it safely.


        Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]