Here are my steps:
1- Switch to Shell C-c C-z
2- Click enter to accept
3- Eval-Buffer C-c C-c
to run the script
I just got the following message:
sent: #!/usr/bin/env python...
Running Eval-File
works fine. It's just Eval-Buffer
what doesn't work.
Have I miss anything?
UPDATE:
I've just noticed that before running the script I get the following line printed in my messages buffer:
Can't guess python-indent-offset, using defaults: 4
Which is very strange because C-h-v python-indent-offset
shows me that it's already set to 4 spaces...
python-shell-send-region
.python-shell-send-region
gives me the following errorWrong type of argument: keymapp, "^C^C"
M-x report-emacs-bug
. If you don't have Emacs set up to send mail, it's still useful for collecting the important info. Once it produced the message, you can send it using mail agent of your choice.