-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 ug... I noticed that in 3 places the JDE was looking at the value of 'mode-name' and if it wasn't equal to "JDE" then it would return an error. This wouldn't allow us to change the mode-name in the future :( What should be used is (equal major-mode 'jde-mode) This way no strings are used and I can change the mode-name if I want... here are the three updated methods. Sorry ... no patch... (defun jde-get-java-source-buffers () "Get a list of the Java source buffers open in the current session." (mapcan (lambda (buffer) (save-excursion (set-buffer buffer) (if (equal major-mode 'jde-mode) (list buffer)))) (buffer-list))) (defun jde-get-selected-source-buffer () (let ((selected-buffer (window-buffer (selected-window)))) (save-excursion (set-buffer selected-buffer) (if (equal major-mode 'jde-mode) selected-buffer)))) (defun jde-run () "Run the Java application specified by `jde-run-executable', if not the null string. Otherwise run the class specified by `jde-run-application-class', if non-null; otherwise the class in the current buffer. This command also creates a comint buffer to allow you to interacti with the program." (interactive) (if (equal major-mode 'jde-mode) (if (string= jde-run-executable "") (jde-run-main-class) (jde-run-executable)) (error "The jde-run command works only in a Java source buffer."))) - -- Kevin A. Burton ( [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] ) Cell: 408-910-6145 URL: http://relativity.yi.org ICQ: 73488596 Free Software. Join the conspiracy! -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (GNU/Linux) Comment: Get my public key at: http://relativity.yi.org/pgpkey.txt iD8DBQE6qztTAwM6xb2dfE0RAg7OAJ9sDl+N7FqWfdR7QmO+680H+bf3HgCgn/qA MfMt78xFaLjVGKt1c5OxLmE= =D6Ez -----END PGP SIGNATURE-----