Matthieu Moy | 26 Apr 22:23
Picon
Picon
Favicon

Re: [DVC] DVC unloading and reloading

"Daniel 'NebuchadnezzaR' Dehennin" <nebuchadnezzar@...>
writes:

> Hello,
>
> I try to improve package-maint.el to automatically generate the unload and
> reload functions, based on source files and their reverse dependencies.
>
> I wonder if it's necessary to make the unload dependencies aware
> if we use (unload-feature feature t), just walking through the list of
> files and forcing unload seems sufficient.

There's probably a better way, but when I wrote dvc-reload, I didn't
find a way to unload a feature and its dependancies at the same time
(I don't remember the exact reason which made the FORCE argument
insuficient, but IIRC there was one).

At that time, we had 5 to 10 source files, so it was completely
reasonable to have a hardcoded list, but it would make sense to have
something better now.

Be carefull to write portable code (XEmacs and Emacs 21 in
particular).

Indeed, I think it's possible to write a 'unload-feature-recursive'
completely genericly and dynamically (by replacing the error by a
recursive call in unload-feature).

--

-- 
Matthieu
(Continue reading)

[DVC] Re: DVC unloading and reloading

Le 4620 Septembre 1993, Matthieu Moy a tapoté:
> There's probably a better way, but when I wrote dvc-reload, I didn't
> find a way to unload a feature and its dependancies at the same time
> (I don't remember the exact reason which made the FORCE argument
> insuficient, but IIRC there was one).

[...]

> Indeed, I think it's possible to write a 'unload-feature-recursive'
> completely genericly and dynamically (by replacing the error by a
> recursive call in unload-feature).

It's possible to recursively unload features with dependencies but
there is an issue I think, what about the feature 'something' I use
which require dvc, reloading dvc should not unload 'something'.

What do you think about this ?

Regards.
--

-- 
Daniel 'NebuchadnezzaR' Dehennin
Récupérer ma clef GPG:
gpg --keyserver pgp.mit.edu --recv-keys 0x2A408F69

Gmane