Modify python-mode.el (v. 4.6) to auto-detect the interpreter based on: - #! line (a la 'get-auto-mode') - import of Java-specific packages (defaults to (java javax org com) - default to cpython (not py-default-interpreter, because the import test can only detect jpython packages) I'm not an elisp expert, so review and feedback is welcome!
Logged In: YES user_id=12800 There is a big problem with this patch: it's generated as a reverse patch so all the lines it should be adding, it's deleting instead. Do you think you could: - port your patch to python-mode.el 4.13 (the current CVS version). - regenerate your patch as a non-reversed patch? If so, I'll re-examine this for inclusion in python-mode. Also, I took assignment of this patch (I'd missed it the first time around).