Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: f7adf2f473966ef33f6079ceb7115cb6cde3b521 authored by cvs2svn on 08 September 2001, 21:38:26 UTC
This commit was manufactured by cvs2svn to create tag 'r22a3'.
Tip revision: f7adf2f
fixinfo.el
(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")
  (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)
back to top