summaryrefslogtreecommitdiffstats
path: root/Doc/tools/fixinfo.el
blob: 75baf34beb380441fff1e7482bf65181409f27ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
(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")
  (progn
    (mark-whole-buffer)
    (texinfo-master-menu 'update-all-nodes)
    )
  (save-buffer)
  )	;; fix-python-texinfo

;; now really do it:
(find-file (car command-line-args-left))
(fix-python-texinfo)
(kill-emacs)