I have bound the
eval-region function to
I would like to use this to simply highlight selected code and evaluate - simple.
Working in a Python script I have the following code:
def test(this, that):
output = this * that
When I highlight it and press
H-x, I get the error message: "Symbols' value as variable is void: def"
Still having the same code highlighted, in the Python dropdown in the menu bar I click on "eval region" and I get the expected output (i.e.
I have seen an explanation of void variables, but I don't really understand it all - I just want
H-x to perform
eval-region as clicking on the menu-bar version does.
Does anyone know a fix, work-around or the required setup?