Closed dmwelch closed 9 years ago
Hi, I can't reproduce this neither. Could you try this script? It just needs 2 files (test.py and orig.py) with your example code. If py-autopep fails, you will see a diff.
#! /bin/bash
for i in `seq 4`; do
echo $i
emacs -nw test.py -f py-autopep8-before-save -f save-buffer -f save-buffers-kill-terminal
diff orig.py test.py
done
I installed autopep8 two weeks ago and I'm plagued by autopep8 removing valid code from my scripts. I use docopt and nipype, which have unique syntax but I'm stumped. Here's an example of code that is auto-removed:
Removing the
#emacs ...
and#vi:...
lines stops this behavior, but I can't reproduce it now. It appears randomly!?! >:(