Comment 3 for bug 1519859

Revision history for this message
Andreas Roehler (a-roehler) wrote : Re: [Bug 1519859] Re: py-execute-line breaks sometimes giving an error trace in emacs

On 13.01.2016 17:39, <email address hidden> wrote:
> 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?
>

No, works as expected. As "indent-rigidly--pop-undo" is said missing,
this is delivered by indent.el here.
Seems you got a version, which has that bug. Maybe upgrade?