ref: 6184a4ef2eba1d49f0386e9ce94f4877d3d9edb2
dir: /sys/src/cmd/python/Doc/tools/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)