Aha, found the modline at the top of the file that was causing the strangeness.