Issue 451841: python-mode indentation bug (original) (raw)

Issue451841

Created on 2001-08-16 23:26 by barry, last changed 2022-04-10 16:04 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
451841.txt barry,2002-04-22 14:52
Messages (2)
msg6009 - (view) Author: Barry A. Warsaw (barry) * (Python committer) Date: 2001-08-16 23:26
In test_uu.py, python-mode starts indenting weirdly towards the bottom. I think it's a bug in XEmacs' 21.4's buffer-syntactic-context
msg6010 - (view) Author: Barry A. Warsaw (barry) * (Python committer) Date: 2002-04-22 14:52
Logged In: YES user_id=12800 Attached is a patch that fixes the problem, which was due to the ubiquitous "open-paren in column 0" bug/limitation in XEmacs. This simply removes the XEmacs-specific buffer-syntactic-context call in favor of using the slower parse-partial-sexp call. Computers are a lot faster now, so I think we can get away with just parsing the world. ;) I'm going to test this for a few days before I commit it.
History
Date User Action Args
2022-04-10 16:04:20 admin set github: 34985
2001-08-16 23:26:50 barry create