ob-lilypond: Code cleanup
commit64821bd967828ed33463987a60d947157c86a30c
authorAchim Gratz <Stromeko@Stromeko.DE>
Sun, 17 Aug 2014 08:29:24 +0000 (17 10:29 +0200)
committerAchim Gratz <Stromeko@Stromeko.DE>
Wed, 20 Aug 2014 20:24:01 +0000 (20 22:24 +0200)
tree5a24129cfbccb8433733ba5f779862d683234d52
parentb03ce7fc8d8e40ef5589979e3f70d50891a5ff40
ob-lilypond: Code cleanup

* lisp/ob-lilypond.el (org-babel-lilypond-OSX-ly-path,
  org-babel-lilypond-OSX-pdf-path, org-babel-lilypond-OSX-midi-path,
  org-babel-lilypond-nix-ly-path, org-babel-lilypond-nix-pdf-path,
  org-babel-lilypond-nix-midi-path, org-babel-lilypond-w32-ly-path,
  org-babel-lilypond-w32-pdf-path, org-babel-lilypond-w32-midi-path,
  org-babel-lilypond-determine-ly-path,
  org-babel-lilypond-determine-pdf-path,
  org-babel-lilypond-determine-midi-path): Remove.
  (org-babel-lilypond-ly-command, org-babel-lilypond-midi-command,
  org-babel-lilypond-pdf-command): Replacement for removed variables
  and functions.  Adapt all calls to the removed functions to use
  these variables instead.
  (org-babel-lilypond-commands): New defcustom for setting up
  the *-command variables.  Keep different defaults for different
  systems as the original code did to avoid tripping up unsuspecting
  users.
  (org-babel-lilypond-execute-tangled-ly,
  org-babel-lilypond-check-for-compile-error): Revert conditions to
  avoid superfluous forms.  Remove unused return values.
* testing/lisp/test-ob-lilypond.el: Do test for new variables and
  replace removed function calls with the appropriate variable
  content.  Exercise the new defcustom thoroughly.
lisp/ob-lilypond.el
testing/lisp/test-ob-lilypond.el