Slight modification to Robert Bost's function which fixes the issue of forgetting the point in all buffers after rotating and also adds the addition feature whereby the prefix argument means rotate the other direction.
Fix the docstring to indicate that the prefix argument switched rotation direction.
Forgot to give myself credit.