File: fixinfo.el

package info (click to toggle)
python2.4-doc 2.4.4-2
  • links: PTS
  • area: contrib
  • in suites: etch, etch-m68k
  • size: 6,860 kB
  • ctags: 2,455
  • sloc: python: 5,194; perl: 3,666; sh: 1,605; makefile: 1,174; xml: 836; lisp: 836; ansic: 718; sed: 2
file content (15 lines) | stat: -rw-r--r-- 441 bytes parent folder | download | duplicates (25)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
(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)