[STUMP] [stumpwm/stumpwm] d09d29: Added load-path and asdf functions to module.lisp.

GitHub <[email protected]>
Newsgroups gmane.comp.window-managers.stumpwm.devel
Message-ID <5313f89ddd2ed_9e756fd389248d@hookshot-fe1-cp1-prd.iad.github.net.mail>
  Branch: refs/heads/load-module
  Home:   https://github.com/stumpwm/stumpwm
  Commit: d09d299fe1d02a02afdcb09a60c2ec265a6b7a5d
      https://github.com/stumpwm/stumpwm/commit/d09d299fe1d02a02afdcb09a60c2ec265a6b7a5d
  Author: David Bjergaard <[email protected]>
  Date:   2014-03-02 (Sun, 02 Mar 2014)

  Changed paths:
    R contrib/amixer.lisp
    R contrib/app-menu.lisp
    R contrib/aumix.lisp
    R contrib/battery-portable.lisp
    R contrib/battery.lisp
    R contrib/cpu.lisp
    R contrib/debian/menu-method
    R contrib/disk.lisp
    R contrib/g15-keysyms.lisp
    R contrib/maildir.lisp
    R contrib/mem.lisp
    R contrib/mpd.lisp
    R contrib/net.lisp
    R contrib/notifications.lisp
    R contrib/passwd.lisp
    R contrib/productivity.lisp
    R contrib/sbclfix.lisp
    R contrib/stumpish
    R contrib/stumptray.lisp
    R contrib/stumpwm-mode.el
    R contrib/surfraw.lisp
    R contrib/undocumented.lisp
    R contrib/wifi.lisp
    R contrib/window-tags.lisp
    M module.lisp

  Log Message:
  -----------
  Added load-path and asdf functions to module.lisp.
Deleted contrib folder
Added functions to initialize *load-path* from
stumpwm-contrib. *load-path* is now a list of pathnames where asdf
systems have been found.  In order to add a path to load-path the
function add-to-load-path checks if an asd file exists in the path, then
it checks if the path has been registered in asdf:*central-registry* and
in *load-path* it updates both accordingly.  If the path doesn't contain
an asd file, then it returns the old *load-path*.  The functions
find-module load-module and list-modules now operate across these paths
and list the stems of any asd files found in those paths.

To test this (assuming you've already setup and built stumpwm
with *contrib-dir* set to /path/to/stumpwm/contrib):
git pull
git checkout load-module
git clone [email protected]:stumpwm/stumpwm-contrib.git contrib
make

This branch breaks *contrib-dir* and (load "/path/to/contrib/blah.lisp")
calls in your .stumpwmrc!

In order to write you're own module:
(ql:quickload "quickproject")
(quickproject:make-project "/path/to/project" :depends '("stumpwm")
:license "GPLv3" :author "Anna Y. Mouse")
Then hackaway at project.lisp in project dir, probably need to add
:stumpwm to the package.lisp file.  When you're ready:
(add-to-load-path "/path/to/project")
(load-module "project")

_______________________________________________
Stumpwm-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/stumpwm-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.