blob: 267a7e3c93253529c290ab7cfdeea29342c4e6da [file] [log] [blame]
Fred Drakec58f3461999-01-08 15:27:17 +00001(defun fix-python-texinfo ()
2 (goto-char (point-min))
3 (replace-regexp "\\(@setfilename \\)\\([-a-z]*\\)$"
4 "\\1python-\\2.info")
5 (replace-string "@node Front Matter\n@chapter Abstract\n"
6 "@node Abstract\n@section Abstract\n")
Fred Drakeffc48111999-01-27 18:40:36 +00007 (mark-whole-buffer)
8 (texinfo-master-menu 'update-all-nodes)
Fred Drakec58f3461999-01-08 15:27:17 +00009 (save-buffer)
10 ) ;; fix-python-texinfo
11
12;; now really do it:
13(find-file (car command-line-args-left))
14(fix-python-texinfo)
15(kill-emacs)