rlm@102: #!/usr/bin/env python rlm@102: rlm@102: import subprocess rlm@102: import sys rlm@102: rlm@102: target_file = sys.argv[1] rlm@102: rlm@102: command = "emacs -batch " + \ rlm@102: target_file + \ rlm@102: " --eval '(kill-comment (point-min) (point-max) nil)' -f save-buffer" rlm@102: rlm@102: print command rlm@102: subprocess.call(command, shell=True)