现象:
Linux:完全正常
Windows/OS X (mountain lion): 无法正确处理pass行
示例:
代码: 全选
def foo():
print 'bar'
pass # press 'Enter'
|<-- auto indent to here in Linux
|<-- indent to here in Windows/OS X
按回车就会自动对齐到不正确的地方。
暂时没搞懂是怎么回事。有时间看下electric.el
代码: 全选
def foo():
print 'bar'
pass # press 'Enter'
|<-- auto indent to here in Linux
|<-- indent to here in Windows/OS X