On Wed, Mar 26, 2008 at 11:20:53AM +1100, Kevin Ryde wrote:
> Agustin Martin <[EMAIL PROTECTED]> writes:
> >
> > (defun debian-sanitized-emacs-load-path ( &optional exclude )
> 
> I think you may be reversing the elements in the lists on each call,
> which is probably not what you meant (though may be harmless).

Thanks for your reply,

Things like (add-to-list 'local-load-path path t) should append each new
element to the end of the list (note that the optional APPEND (t) argument
is not present in emacs20, where there is no optional argument and so, new
elements are always added to the beginning of the list).

There are some other things this function does not care about, like putting
parent directories before the packages ones, I intended it more as a joy
about making things differently.

> Overall it strikes me as a little aggressive, but I suppose it ensures
> the desired ordering.  You might consider "sanitizing" after each
> run-parts file too, to pick up old packages which just add to load-path
> instead of calling debian-pkg-add-load-path-item.

I currently did that only after startup files are loaded, so load-path
remains as expected. 

Doing as you propose may have an additional advantage, may allow to keep
(debian-pkg-add-load-path-item) as a simple (add-to list ..), since the
result will become sanitized after (run-parts) is run on each file.

Thanks a lot for the sugestions, but note that I do not maintain
emacsen-common. 

Best wishes,

-- 
Agustin



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to