[ < ] [ > ]   [ << ] [Plus haut] [ >> ]         [Top] [Table des matières] [Index] [ ? ]

14.1 Hacking: General Advice

  1. Pay attention to file names and contents. If you're making changes to mode-line related code, don't put it in core.lisp. If you're introducing some completely new featureset, consider putting all of the new code in a new file.
  2. Does a command need to be user-visible ("interactive") or is it just called by other commands?
  3. Note that all commands defined using the defcommand syntax are available both to be called with "C-t ;" and from within other lisp programs, as though they had been defun-ned (which, in fact, they have).
  4. Any code that depends on external libraries or programs that some users might not have installed should be placed in the contrib/ directory.
  5. Don't be afraid to submit your patches to the StumpWM mailing list! It may not immediately make it into the official git repository, but individual users might find it useful and apply it to their own setup, or might be willing to offer suggestions on how to improve the code.
  6. Remember: StumpWM is designed to run on both clisp and on SBCL. If you must use code specific to one or the other, at the very least warn people that it only works with one lisp implementation. Better yet, figure out how to do it in the other distribution and write a statement like this:
     
    #+clisp
    (your-clisp-code)
    #+sbcl
    (your-sbcl-code)
    

    ...to wrap the code for each lisp. Of course, the best option is to find a way to use the same code for clisp and SBCL.


[ < ] [ > ]   [ << ] [Plus haut] [ >> ]         [Top] [Table des matières] [Index] [ ? ]

Ce document a été généré par Eric Reinbold le 9 Octobre 2008 en utilisant texi2html 1.78.