1999-01-08 11:27:17 -04:00
|
|
|
(defun fix-python-texinfo ()
|
|
|
|
(goto-char (point-min))
|
|
|
|
(replace-regexp "\\(@setfilename \\)\\([-a-z]*\\)$"
|
|
|
|
"\\1python-\\2.info")
|
|
|
|
(replace-string "@node Front Matter\n@chapter Abstract\n"
|
|
|
|
"@node Abstract\n@section Abstract\n")
|
1999-01-27 14:40:36 -04:00
|
|
|
(mark-whole-buffer)
|
|
|
|
(texinfo-master-menu 'update-all-nodes)
|
1999-01-08 11:27:17 -04:00
|
|
|
(save-buffer)
|
|
|
|
) ;; fix-python-texinfo
|
|
|
|
|
|
|
|
;; now really do it:
|
|
|
|
(find-file (car command-line-args-left))
|
|
|
|
(fix-python-texinfo)
|
|
|
|
(kill-emacs)
|