This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Emacs auto-detect J/Python mode
Type: Stage:
Components: Demos and Tools Versions: Python 2.3
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: barry Nosy List: barry, kevinbutler
Priority: normal Keywords: patch

Created on 2002-01-29 19:13 by kevinbutler, last changed 2022-04-10 16:04 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
python-mode.el.dff kevinbutler, 2002-01-29 19:13 context diff against 4.6
python-mode.el.413.dff kevinbutler, 2002-04-23 19:17 Diff against 4.13, non-reversed
Messages (4)
msg38811 - (view) Author: Kevin J. Butler (kevinbutler) Date: 2002-01-29 19:13
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!
msg38812 - (view) Author: Barry A. Warsaw (barry) * (Python committer) Date: 2002-04-22 23:15
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).
msg38813 - (view) Author: Kevin J. Butler (kevinbutler) Date: 2002-04-23 19:17
Logged In: YES 
user_id=117665

Woops.

Fixed & ported to 4.13.

msg38814 - (view) Author: Barry A. Warsaw (barry) * (Python committer) Date: 2002-04-25 16:34
Logged In: YES 
user_id=12800

Thanks, that one applied cleanly.  I'll probably make some
changes, but it looks decent enough that I'll probably add it.
History
Date User Action Args
2022-04-10 16:04:55adminsetgithub: 35994
2002-01-29 19:13:23kevinbutlercreate