"Daniel 'NebuchadnezzaR' Dehennin" <[EMAIL PROTECTED]>
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

_______________________________________________
Dvc-dev mailing list
[email protected]
https://mail.gna.org/listinfo/dvc-dev

Reply via email to