emacs-devel
[Top][All Lists]
Advanced

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

Re: user-controlled load-path extension: load-dir


From: Stefan Monnier
Subject: Re: user-controlled load-path extension: load-dir
Date: Thu, 17 Mar 2011 22:21:33 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

> OK. I've attached the library (now called load-dir.el, which I think is
> much better than user-load-*, especially since the function names are

The mapcar call should be replaced by mapc or dolist.
As mentioned, you may want to add an autoload cookie on the
`loadirs' function.  Also you'll want to replace `ignore-errors' with
`with-demoted-errors'.
More importantly, if it's an ELPA package, it can hook itself via
autoload cookies so the user doesn't even need to call load-dirs and can
just set load-dirs instead.  E.g.

   ;;;###autoload
   (add-hook 'after-init-hook 'load-dirs)


        Stefan



reply via email to

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