Hi,

I'm trying to create a function that compiles *and* runs my java
program. I've created a hook that executes another function at the end
of a compilation.


;; To be used as a hook at the end of a java compilation
(defun end-of-java-compile (bufname msg)
  "To be used as a hook at the end of a java compilation"
  (if (not (eq (string-match "finished" msg) nil))
      (progn
        (message "This works here.")
        (jde-run)
        )
    )
  )

;; Set function to be called at end of java compilation
(setq compilation-finish-function 'end-of-java-compile)



The output at the end of the compilation is:

This works here.
error in process sentinel: Wrong type argument: stringp, nil [2 times]


Does anybody have an idea what the problem might be?

Thanks.
Daniel
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

Reply via email to