Mercurial > laserkard
comparison kill-comments @ 102:8ed3394e6b73 laserkard
wrote comment-killer
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Tue, 27 Jul 2010 22:23:13 -0400 |
parents | |
children | 52297178e0eb |
comparison
equal
deleted
inserted
replaced
101:2bec541ef58f | 102:8ed3394e6b73 |
---|---|
1 #!/usr/bin/env python | |
2 | |
3 import subprocess | |
4 import sys | |
5 | |
6 target_file = sys.argv[1] | |
7 | |
8 command = "emacs -batch " + \ | |
9 target_file + \ | |
10 " --eval '(kill-comment (point-min) (point-max) nil)' -f save-buffer" | |
11 | |
12 print command | |
13 subprocess.call(command, shell=True) |