Ok sorry it took me so long to reproduce this, but I finally figured out when the bug occurs. Consider the following script:
def main():
print 'this is a test'
print 'this is another test'
if __name__ == '__main__':
main()
Executing this script will work as expected. If both the print statements are highlighted using the mark (or manually selecting line 2 and 3, and then invoking M-x py-execute-region I get the following error:
indent-rigidly-left: Symbol's function definition is void: indent-rigidly--pop-undo
Note that if the print statements are on their own (outside a function declaration, the py-execute-region works as expected, as well as any indented code.
The thing that causes it to break if it's wrapped in a function, in this case the main()
Ok sorry it took me so long to reproduce this, but I finally figured out when the bug occurs. Consider the following script:
def main():
print 'this is a test'
print 'this is another test'
if __name__ == '__main__':
main()
Executing this script will work as expected. If both the print statements are highlighted using the mark (or manually selecting line 2 and 3, and then invoking M-x py-execute-region I get the following error:
indent- rigidly- left: Symbol's function definition is void: indent- rigidly- -pop-undo
Note that if the print statements are on their own (outside a function declaration, the py-execute-region works as expected, as well as any indented code.
The thing that causes it to break if it's wrapped in a function, in this case the main()
Can you reproduce?